- Timestamp:
- Jul 1, 2008, 4:57:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/watcom_ant17_java141/src/plugins/org.eclipse.swt/Eclipse SWT PI/pm/library/editcol.h
r14 r127 2 2 #include <os2.h> 3 3 #endif 4 / /=========================================================================\4 /*=========================================================================\ 5 5 // edit color dialog based on the undocumented color wheel OS/2 control | 6 6 // from an idea of Paul Ratcliffe (E-mail: paulr@orac.clara.co.uk or | … … 8 8 // coded by Alessandro Cantatore (alexcant@tin.it | 9 9 // version 1.1 | 10 //========================================================================= /10 //=========================================================================*/ 11 11 12 12 // color wheel class ------------------------------------------------------ … … 15 15 16 16 17 / /=========================================================================\17 /*=========================================================================\ 18 18 // messages: | 19 19 // WM_COLORWHEELCHANGED : mp1 = LONG RGB color | … … 27 27 // is sent to the color wheel to set the current | 28 28 // color | 29 //========================================================================= /29 //=========================================================================*/ 30 30 31 31 32 / / warp 4 messages32 /* warp 4 messages*/ 33 33 #define WM_COLORWHEELCHANGED 0x0601 34 34 #define CWM_COLORWHEELSETVAL 0x0602 35 35 36 / / warp 3 messages36 /* warp 3 messages */ 37 37 #define WM_COLORWHEELCHANGED3 0x130C 38 38 #define CWM_COLORWHEELSETVAL3 0x1384 39 39 40 40 41 / / various constants ------------------------------------------------------41 /* various constants ------------------------------------------------------ */ 42 42 43 #define MAXTITLESIZE 128 / / max length of dialog title44 #define SZ_MODULE "EDITCOL.DLL" / / DLL name43 #define MAXTITLESIZE 128 /* max length of dialog title */ 44 #define SZ_MODULE "EDITCOL.DLL" /* DLL name */ 45 45 46 46 47 / / application structures -------------------------------------------------47 /* application structures ------------------------------------------------- */ 48 48 49 49 #pragma pack(1) … … 59 59 60 60 typedef struct { 61 USHORT cbSize; / / structure size62 USHORT res; / / not used63 HAB hab; / / anchor block handle64 HLIB hlib; / / WPCONFIG.DLL handle65 HMODULE hDlgMod; / / COLWHEEL.DLL handle66 HWND hwndParent; / / handle parent window67 HWND hwndOwner; / / handle owner window68 ULONG ulVer; / / OS version69 ULONG cwChangedMsg; / / WM_COLORWHEELCHANGED(-3)70 ULONG cwSetMsg; / / CWM_COLORWHEELSETVAL(-3)71 CHAR achDlgTitle[MAXTITLESIZE]; / / dialog title72 BOOL flUpd; / / update color-wheel/spinbuttons flag73 CLR clrUndo; / / start color74 CLR clrCurr; / / current color75 RECTL rclPar; / / parent window rectangle76 RECTL rcl; / / dialog window rectangle61 USHORT cbSize; /* structure size */ 62 USHORT res; /* not used */ 63 HAB hab; /* anchor block handle */ 64 HLIB hlib; /* WPCONFIG.DLL handle */ 65 HMODULE hDlgMod; /* COLWHEEL.DLL handle */ 66 HWND hwndParent; /* handle parent window */ 67 HWND hwndOwner; /* handle owner window */ 68 ULONG ulVer; /* OS version */ 69 ULONG cwChangedMsg; /* WM_COLORWHEELCHANGED(-3) */ 70 ULONG cwSetMsg; /* CWM_COLORWHEELSETVAL(-3) */ 71 CHAR achDlgTitle[MAXTITLESIZE]; /* dialog title */ 72 BOOL flUpd; /* update color-wheel/spinbuttons flag */ 73 CLR clrUndo; /* start color */ 74 CLR clrCurr; /* current color */ 75 RECTL rclPar; /* parent window rectangle */ 76 RECTL rcl; /* dialog window rectangle */ 77 77 } APPDATA, * PAPPDATA; 78 78 … … 81 81 // functions -------------------------------------------------------------- 82 82 83 LONG APIENTRY WinEditColorDlg(HWND hwndParent, / / parent handle84 HWND hwndOwner, / / owner handle85 COLOR color, / / RGB color (LONG)86 PSZ pszTitle); / / dialog title83 LONG APIENTRY WinEditColorDlg(HWND hwndParent, /* parent handle */ 84 HWND hwndOwner, /* owner handle */ 85 COLOR color, /* RGB color (LONG) */ 86 PSZ pszTitle); /* dialog title */ 87 87 88 88 MRESULT EXPENTRY EditColorDlgProc(HWND hwnd,
Note:
See TracChangeset
for help on using the changeset viewer.