Stroika Library 3.0d18
 
Loading...
Searching...
No Matches
ColorMenu.h
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4
5#ifndef __ColorMenu_h__
6#define __ColorMenu_h__ 1
7
8#include "Stroika/Foundation/StroikaPreComp.h"
9
10#if defined(WIN32)
11#include <afxwin.h>
12#endif
13
14#include "Stroika/Frameworks/Led/GDI.h"
15
16#include "LedItConfig.h"
17
18#if qStroika_Foundation_Common_Platform_Windows
19class ColorMenu : public CMenu {
20public:
21 ColorMenu ();
22
23public:
24 static COLORREF GetColor (UINT id);
25
26 static Color FontCmdToColor (UINT cmd);
27 static UINT FontColorToCmd (Color color);
28
29public:
30 virtual void DrawItem (LPDRAWITEMSTRUCT lpDIS) override;
31 virtual void MeasureItem (LPMEASUREITEMSTRUCT lpMIS) override;
32};
33#endif
34
35/*
36 ********************************************************************************
37 ***************************** Implementation Details ***************************
38 ********************************************************************************
39 */
40
41#endif /*__ColorMenu_h__*/