compile insert msWin_CommCtrl_Equates /* ** Copyright (C) 2013-2020 Revelation Software Inc. All Rights Reserved ** Author Mr C Date February 2013 Purpose General Equates for Win32 common controls Amended Date Reason ======= ==== ====== Mr C 06 Apr 20 Updated to reference DLLSTRUCT entities */ //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// #ifndef _MSWIN_COMMCTRL_INSERT_ #define _MSWIN_COMMCTRL_INSERT_ //////////////////////////////////////////////////////////////////////////////// // Images ////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// equ I_IMAGECALLBACK$ to -1 equ I_IMAGENONE$ to -2 //////////////////////////////////////////////////////////////////////////////// // Colors ////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// equ CLR_NONE$ to 0xFFFFFFFF equ CLR_DEFAULT$ to 0xFF000000 //////////////////////////////////////////////////////////////////////////////// // Common Messages ///////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// equ CCM_FIRST$ to 0x2000 ; * // Common control shared messages equ CCM_LAST$ to 0x2200 ; * // ( CCM_FIRST + 0x200 ) equ CCM_SETBKCOLOR$ to 0x2001 ; * // ( CCM_FIRST + 1 ) equ CCM_SETCOLORSCHEME$ to 0x2002 ; * // ( CCM_FIRST + 2 ) equ CCM_GETCOLORSCHEME$ to 0x2003 ; * // ( CCM_FIRST + 3 ) equ CCM_GETDROPTARGET$ to 0x2004 ; * // ( CCM_FIRST + 4 ) equ CCM_SETUNICODEFORMAT$ to 0x2005 ; * // ( CCM_FIRST + 5 ) equ CCM_GETUNICODEFORMAT$ to 0x2006 ; * // ( CCM_FIRST + 6 ) equ CCM_SETWINDOWTHEME$ to 0x200B ; * // ( CCM_FIRST + 0xB ) equ CCM_DPISCALE$ to 0x200C ; * // ( CCM_FIRST + 0xC ) - wParam == Awareness //////////////////////////////////////////////////////////////////////////////// // Common Styles /////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// equ CCS_TOP$ to 0x00000001 equ CCS_NOMOVEY$ to 0x00000002 equ CCS_BOTTOM$ to 0x00000003 equ CCS_NORESIZE$ to 0x00000004 equ CCS_NOPARENTALIGN$ to 0x00000008 equ CCS_ADJUSTABLE$ to 0x00000020 equ CCS_NODIVIDER$ to 0x00000040 equ CCS_VERT$ to 0x00000080 equ CCS_LEFT$ to (CCS_VERT$ + CCS_TOP$) equ CCS_RIGHT$ to (CCS_VERT$ + CCS_BOTTOM$) equ CCS_NOMOVEX$ to (CCS_VERT$ + CCS_NOMOVEY$) //////////////////////////////////////////////////////////////////////////////// // Common Notification Messages //////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// equ NM_FIRST$ to 0 ; * // (0U- 0U) - generic to all controls equ NM_LAST$ to -99 ; * // (0U- 99U) equ NM_OUTOFMEMORY$ to -1 ; * // (NM_FIRST-1) equ NM_CLICK$ to -2 ; * // (NM_FIRST-2) // uses NMCLICK struct equ NM_DBLCLK$ to -3 ; * // (NM_FIRST-3) equ NM_RETURN$ to -4 ; * // (NM_FIRST-4) equ NM_RCLICK$ to -5 ; * // (NM_FIRST-5) // uses NMCLICK struct equ NM_RDBLCLK$ to -6 ; * // (NM_FIRST-6) equ NM_SETFOCUS$ to -7 ; * // (NM_FIRST-7) equ NM_KILLFOCUS$ to -8 ; * // (NM_FIRST-8) equ NM_CUSTOMDRAW$ to -12 ; * // (NM_FIRST-12) equ NM_HOVER$ to -13 ; * // (NM_FIRST-13) equ NM_NCHITTEST$ to -14 ; * // (NM_FIRST-14) // uses NMMOUSE struct equ NM_KEYDOWN$ to -15 ; * // (NM_FIRST-15) // uses NMKEY struct equ NM_RELEASEDCAPTURE$ to -16 ; * // (NM_FIRST-16) equ NM_SETCURSOR$ to -17 ; * // (NM_FIRST-17) // uses NMMOUSE struct equ NM_CHAR$ to -18 ; * // (NM_FIRST-18) // uses NMCHAR struct equ NM_TOOLTIPSCREATED$ to -19 ; * // (NM_FIRST-19) // notify of when the tooltips window is create equ NM_LDOWN$ to -20 ; * // (NM_FIRST-20) equ NM_RDOWN$ to -21 ; * // (NM_FIRST-21) equ NM_THEMECHANGED$ to -22 ; * // (NM_FIRST-22) //////////////////////////////////////////////////////////////////////////////// // NM_CUSTOMDRAW Constants ///////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// * // custom draw return flags * // values under 0x00010000 are reserved for global custom draw values. * // above that are for specific controls equ CDRF_DODEFAULT$ to 0x00000000 equ CDRF_NEWFONT$ to 0x00000002 equ CDRF_SKIPDEFAULT$ to 0x00000004 equ CDRF_DOERASE$ to 0x00000008 ; * // draw the background equ CDRF_SKIPPOSTPAINT$ to 0x00000100 ; * // don't draw the focus rect equ CDRF_NOTIFYPOSTPAINT$ to 0x00000010 equ CDRF_NOTIFYITEMDRAW$ to 0x00000020 equ CDRF_NOTIFYSUBITEMDRAW$ to 0x00000020 // flags are the same, we can distinguish by context equ CDRF_NOTIFYPOSTERASE$ to 0x00000040 * // drawstage flags * // values under 0x00010000 are reserved for global custom draw values. * // above that are for specific controls equ CDDS_PREPAINT$ to 0x00000001 equ CDDS_POSTPAINT$ to 0x00000002 equ CDDS_PREERASE$ to 0x00000003 equ CDDS_POSTERASE$ to 0x00000004 * // the 0x000010000 bit means it's individual item specific equ CDDS_ITEM$ to 0x00010000 equ CDDS_ITEMPREPAINT$ to (CDDS_ITEM$ + CDDS_PREPAINT$) equ CDDS_ITEMPOSTPAINT$ to (CDDS_ITEM$ + CDDS_POSTPAINT$) equ CDDS_ITEMPREERASE$ to (CDDS_ITEM$ + CDDS_PREERASE$) equ CDDS_ITEMPOSTERASE$ to (CDDS_ITEM$ + CDDS_POSTERASE$) equ CDDS_SUBITEM$ to 0x00020000 * // itemState flags equ CDIS_SELECTED$ to 0x0001 equ CDIS_GRAYED$ to 0x0002 equ CDIS_DISABLED$ to 0x0004 equ CDIS_CHECKED$ to 0x0008 equ CDIS_FOCUS$ to 0x0010 equ CDIS_DEFAULT$ to 0x0020 equ CDIS_HOT$ to 0x0040 equ CDIS_MARKED$ to 0x0080 equ CDIS_INDETERMINATE$ to 0x0100 equ CDIS_SHOWKEYBOARDCUES$ to 0x0200 equ CDIS_NEARHOT$ to 0x0400 equ CDIS_OTHERSIDEHOT$ to 0x0800 equ CDIS_DROPHILITED$ to 0x1000 //////////////////////////////////////////////////////////////////////////////// // NMMOUSE structure ////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// equ NMMOUSE$ to "MSWIN_NMMOUSE" /* typedef struct tagNMMOUSE { NMHDR hdr; DWORD_PTR dwItemSpec; DWORD_PTR dwItemData; POINT pt; LPARAM dwHitInfo; } NMMOUSE, *LPNMMOUSE; */ equ NMMOUSE_POS_HWND_FROM$ to 1 equ NMMOUSE_POS_ID_FROM$ to 2 equ NMMOUSE_POS_CODE$ to 3 equ NMMOUSE_POS_ITEM_SPEC$ to 4 equ NMMOUSE_POS_ITEM_DATA$ to 5 equ NMMOUSE_POS_PT_X$ to 6 equ NMMOUSE_POS_PT_Y$ to 7 equ NMMOUSE_POS_HIT_INFO$ to 8 $uses @APPID*DLLSTRUCT**MSWIN_NMMOUSE //////////////////////////////////////////////////////////////////////////////// // COLORSCHEME structure /////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// /* typedef struct tagCOLORSCHEME { DWORD dwSize; COLORREF clrBtnHighlight; COLORREF clrBtnShadow; } COLORSCHEME, *LPCOLORSCHEME; */ equ COLORSCHEME$ to "MSWIN_COLORSCHEME" equ COLORSCHEME_POS_CBSIZE$ to 1 equ COLORSCHEME_POS_BTN_HILIGHT$ to 2 equ COLORSCHEME_POS_BTN_SHADOW$ to 3 $uses @APPID*DLLSTRUCT**MSWIN_COLORSCHEME //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// #endif