diff options
author | Rr42 | 2018-06-13 14:41:35 +0530 |
---|---|---|
committer | Rr42 | 2018-06-13 14:41:35 +0530 |
commit | 3503769c436686c3de9738c452ab364a72198392 (patch) | |
tree | 9d295e49d36ab7dc5dc0ac19dda2657eb7da01de /ldmicro/lib/linuxUI | |
parent | b85091137742e69ccce0d4d27a2fffb696ec38fa (diff) | |
download | LDMicroGtk-3503769c436686c3de9738c452ab364a72198392.tar.gz LDMicroGtk-3503769c436686c3de9738c452ab364a72198392.tar.bz2 LDMicroGtk-3503769c436686c3de9738c452ab364a72198392.zip |
Added draw window for printing ladder schematic
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 |