diff options
Diffstat (limited to 'ldmicro/lib/linuxUI')
-rw-r--r-- | ldmicro/lib/linuxUI/linuxUI.cpp | 9 | ||||
-rw-r--r-- | ldmicro/lib/linuxUI/linuxUI.h | 6 |
2 files changed, 11 insertions, 4 deletions
diff --git a/ldmicro/lib/linuxUI/linuxUI.cpp b/ldmicro/lib/linuxUI/linuxUI.cpp index 524046d..f0c9124 100644 --- a/ldmicro/lib/linuxUI/linuxUI.cpp +++ b/ldmicro/lib/linuxUI/linuxUI.cpp @@ -27,14 +27,19 @@ COLORREF RGB(int red, int green, int blue) return col; } -HBRUSH GetStockObject(int fnObject) +HANDLE GetStockObject(int fnObject) { switch(fnObject) { case BLACK_BRUSH: return new COLORREF(0, 0, 0); break; - + case WHITE_BRUSH: + return new COLORREF(255, 255, 255); + break; + case GREY_BRUSH: + return new COLORREF(128, 128, 128); + break; default: return new COLORREF(255, 255, 255); } diff --git a/ldmicro/lib/linuxUI/linuxUI.h b/ldmicro/lib/linuxUI/linuxUI.h index 7e2ea84..85b5fa8 100644 --- a/ldmicro/lib/linuxUI/linuxUI.h +++ b/ldmicro/lib/linuxUI/linuxUI.h @@ -39,7 +39,9 @@ #define OFN_OVERWRITEPROMPT 0x00000400L /// window brushes -#define BLACK_BRUSH 0x00000401L +#define BLACK_BRUSH 0x00000002L +#define WHITE_BRUSH 0x00000004L +#define GREY_BRUSH 0x00000008L /// EnableMenuItem variables extern const UINT MF_ENABLED; @@ -70,6 +72,6 @@ int MessageBox(HWID, char*, char*, UINT); BOOL GetSaveFileName(OPENFILENAME* ); void EnableMenuItem(HMENU, HMENU, UINT); void CheckMenuItem(HMENU, HMENU, UINT); -HBRUSH GetStockObject(int fnObject); +HANDLE GetStockObject(int fnObject); #endif
\ No newline at end of file |