commctrl.h (5.82-Windows 5.0) | | commctrl.h (5.82-Windows 6.0) |
| | |
skipping to change at line 15 | | skipping to change at line 15 |
* * | | * * |
* Version 1.2 * | | * Version 1.2 * |
* * | | * * |
* Copyright (c) Microsoft Corporation. All rights reserved. * | | * Copyright (c) Microsoft Corporation. All rights reserved. * |
* * | | * * |
\*****************************************************************************/ | | \*****************************************************************************/ |
| | |
#ifndef _INC_COMMCTRL | | #ifndef _INC_COMMCTRL |
#define _INC_COMMCTRL | | #define _INC_COMMCTRL |
| | |
|
#ifndef _WINRESRC_ | | |
#ifndef _WIN32_IE | | |
#define _WIN32_IE 0x0501 | | |
#else | | |
#if (_WIN32_IE < 0x0400) && defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0500) | | |
#error _WIN32_IE setting conflicts with _WIN32_WINNT setting | | |
#endif | | |
#endif | | |
#endif | | |
| | |
#ifndef _HRESULT_DEFINED | | #ifndef _HRESULT_DEFINED |
#define _HRESULT_DEFINED | | #define _HRESULT_DEFINED |
|
typedef LONG HRESULT; | | typedef __success(return >= 0) long HRESULT; |
#endif // _HRESULT_DEFINED | | #endif // !_HRESULT_DEFINED |
| | |
#ifndef NOUSER | | #ifndef NOUSER |
| | |
// | | // |
// Define API decoration for direct importing of DLL references. | | // Define API decoration for direct importing of DLL references. |
// | | // |
#ifndef WINCOMMCTRLAPI | | #ifndef WINCOMMCTRLAPI |
#if !defined(_COMCTL32_) && defined(_WIN32) | | #if !defined(_COMCTL32_) && defined(_WIN32) |
#define WINCOMMCTRLAPI DECLSPEC_IMPORT | | #define WINCOMMCTRLAPI DECLSPEC_IMPORT |
#else | | #else |
| | |
skipping to change at line 62 | | skipping to change at line 52 |
#define DUMMYUNIONNAME5 u5 | | #define DUMMYUNIONNAME5 u5 |
#else | | #else |
#define DUMMYUNIONNAME | | #define DUMMYUNIONNAME |
#define DUMMYUNIONNAME2 | | #define DUMMYUNIONNAME2 |
#define DUMMYUNIONNAME3 | | #define DUMMYUNIONNAME3 |
#define DUMMYUNIONNAME4 | | #define DUMMYUNIONNAME4 |
#define DUMMYUNIONNAME5 | | #define DUMMYUNIONNAME5 |
#endif | | #endif |
#endif // DUMMYUNIONNAME | | #endif // DUMMYUNIONNAME |
| | |
|
| | #if defined(_MSC_VER) && (_MSC_VER >= 1200) |
| | #pragma warning(push) |
| | #pragma warning(disable:4201) /* nonstandard extension used : nameless struct/un |
| | ion */ |
| | #pragma once |
| | #endif |
| | |
#ifdef __cplusplus | | #ifdef __cplusplus |
extern "C" { | | extern "C" { |
#endif | | #endif |
| | |
// | | // |
// Users of this header may define any number of these constants to avoid | | // Users of this header may define any number of these constants to avoid |
// the definitions of each functional group. | | // the definitions of each functional group. |
// | | // |
// NOTOOLBAR Customizable bitmap-button toolbar control. | | // NOTOOLBAR Customizable bitmap-button toolbar control. |
// NOUPDOWN Up and Down arrow increment/decrement control. | | // NOUPDOWN Up and Down arrow increment/decrement control. |
| | |
skipping to change at line 90 | | skipping to change at line 86 |
// NOLISTVIEW ListView control. | | // NOLISTVIEW ListView control. |
// NOTREEVIEW TreeView control. | | // NOTREEVIEW TreeView control. |
// NOTABCONTROL Tab control. | | // NOTABCONTROL Tab control. |
// NOANIMATE Animate control. | | // NOANIMATE Animate control. |
// NOBUTTON Button control. | | // NOBUTTON Button control. |
// NOSTATIC Static control. | | // NOSTATIC Static control. |
// NOEDIT Edit control. | | // NOEDIT Edit control. |
// NOLISTBOX Listbox control. | | // NOLISTBOX Listbox control. |
// NOCOMBOBOX Combobox control. | | // NOCOMBOBOX Combobox control. |
// NOSCROLLBAR Scrollbar control. | | // NOSCROLLBAR Scrollbar control. |
|
| | // NOTASKDIALOG Task Dialog. |
// | | // |
//============================================================================= | | //============================================================================= |
| | |
#include <prsht.h> | | #include <prsht.h> |
| | |
#ifndef SNDMSG | | #ifndef SNDMSG |
#ifdef __cplusplus | | #ifdef __cplusplus |
#ifndef _MAC | | #ifndef _MAC |
#define SNDMSG ::SendMessage | | #define SNDMSG ::SendMessage |
#else | | #else |
| | |
skipping to change at line 158 | | skipping to change at line 155 |
#define ICC_ANIMATE_CLASS 0x00000080 // animate | | #define ICC_ANIMATE_CLASS 0x00000080 // animate |
#define ICC_WIN95_CLASSES 0x000000FF | | #define ICC_WIN95_CLASSES 0x000000FF |
#define ICC_DATE_CLASSES 0x00000100 // month picker, date picker, time pic
ker, updown | | #define ICC_DATE_CLASSES 0x00000100 // month picker, date picker, time pic
ker, updown |
#define ICC_USEREX_CLASSES 0x00000200 // comboex | | #define ICC_USEREX_CLASSES 0x00000200 // comboex |
#define ICC_COOL_CLASSES 0x00000400 // rebar (coolbar) control | | #define ICC_COOL_CLASSES 0x00000400 // rebar (coolbar) control |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
#define ICC_INTERNET_CLASSES 0x00000800 | | #define ICC_INTERNET_CLASSES 0x00000800 |
#define ICC_PAGESCROLLER_CLASS 0x00001000 // page scroller | | #define ICC_PAGESCROLLER_CLASS 0x00001000 // page scroller |
#define ICC_NATIVEFNTCTL_CLASS 0x00002000 // native font control | | #define ICC_NATIVEFNTCTL_CLASS 0x00002000 // native font control |
#endif | | #endif |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define ICC_STANDARD_CLASSES 0x00004000 | | #define ICC_STANDARD_CLASSES 0x00004000 |
#define ICC_LINK_CLASS 0x00008000 | | #define ICC_LINK_CLASS 0x00008000 |
|
#endif | | #endif // (_WIN32_WINNT >= 0x0501) |
| | |
|
WINCOMMCTRLAPI BOOL WINAPI InitCommonControlsEx(LPINITCOMMONCONTROLSEX); | | WINCOMMCTRLAPI BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *picc
e); |
#endif // _WIN32_IE >= 0x0300 | | #endif // _WIN32_IE >= 0x0300 |
| | |
#define ODT_HEADER 100 | | #define ODT_HEADER 100 |
#define ODT_TAB 101 | | #define ODT_TAB 101 |
#define ODT_LISTVIEW 102 | | #define ODT_LISTVIEW 102 |
| | |
//====== Ranges for control message IDs ======================================= | | //====== Ranges for control message IDs ======================================= |
| | |
#define LVM_FIRST 0x1000 // ListView messages | | #define LVM_FIRST 0x1000 // ListView messages |
#define TV_FIRST 0x1100 // TreeView messages | | #define TV_FIRST 0x1100 // TreeView messages |
#define HDM_FIRST 0x1200 // Header messages | | #define HDM_FIRST 0x1200 // Header messages |
#define TCM_FIRST 0x1300 // Tab control messages | | #define TCM_FIRST 0x1300 // Tab control messages |
| | |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
#define PGM_FIRST 0x1400 // Pager control messages | | #define PGM_FIRST 0x1400 // Pager control messages |
|
#if (_WIN32_WINNT >= 0x501) | | |
| | #if (_WIN32_WINNT >= 0x0501) |
#define ECM_FIRST 0x1500 // Edit control messages | | #define ECM_FIRST 0x1500 // Edit control messages |
#define BCM_FIRST 0x1600 // Button control messages | | #define BCM_FIRST 0x1600 // Button control messages |
#define CBM_FIRST 0x1700 // Combobox control messages | | #define CBM_FIRST 0x1700 // Combobox control messages |
|
#endif | | #endif // _WIN32_WINNT >= 0x0501 |
| | |
#define CCM_FIRST 0x2000 // Common control shared messages | | #define CCM_FIRST 0x2000 // Common control shared messages |
#define CCM_LAST (CCM_FIRST + 0x200) | | #define CCM_LAST (CCM_FIRST + 0x200) |
| | |
#define CCM_SETBKCOLOR (CCM_FIRST + 1) // lParam is bkColor | | #define CCM_SETBKCOLOR (CCM_FIRST + 1) // lParam is bkColor |
| | |
typedef struct tagCOLORSCHEME { | | typedef struct tagCOLORSCHEME { |
DWORD dwSize; | | DWORD dwSize; |
COLORREF clrBtnHighlight; // highlight color | | COLORREF clrBtnHighlight; // highlight color |
COLORREF clrBtnShadow; // shadow color | | COLORREF clrBtnShadow; // shadow color |
} COLORSCHEME, *LPCOLORSCHEME; | | } COLORSCHEME, *LPCOLORSCHEME; |
| | |
#define CCM_SETCOLORSCHEME (CCM_FIRST + 2) // lParam is color scheme | | #define CCM_SETCOLORSCHEME (CCM_FIRST + 2) // lParam is color scheme |
#define CCM_GETCOLORSCHEME (CCM_FIRST + 3) // fills in COLORSCHEME pointed
to by lParam | | #define CCM_GETCOLORSCHEME (CCM_FIRST + 3) // fills in COLORSCHEME pointed
to by lParam |
#define CCM_GETDROPTARGET (CCM_FIRST + 4) | | #define CCM_GETDROPTARGET (CCM_FIRST + 4) |
#define CCM_SETUNICODEFORMAT (CCM_FIRST + 5) | | #define CCM_SETUNICODEFORMAT (CCM_FIRST + 5) |
#define CCM_GETUNICODEFORMAT (CCM_FIRST + 6) | | #define CCM_GETUNICODEFORMAT (CCM_FIRST + 6) |
| | |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define COMCTL32_VERSION 6 | | #define COMCTL32_VERSION 6 |
#else | | #else |
#define COMCTL32_VERSION 5 | | #define COMCTL32_VERSION 5 |
#endif | | #endif |
| | |
#define CCM_SETVERSION (CCM_FIRST + 0x7) | | #define CCM_SETVERSION (CCM_FIRST + 0x7) |
#define CCM_GETVERSION (CCM_FIRST + 0x8) | | #define CCM_GETVERSION (CCM_FIRST + 0x8) |
#define CCM_SETNOTIFYWINDOW (CCM_FIRST + 0x9) // wParam == hwndParent. | | #define CCM_SETNOTIFYWINDOW (CCM_FIRST + 0x9) // wParam == hwndParent. |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define CCM_SETWINDOWTHEME (CCM_FIRST + 0xb) | | #define CCM_SETWINDOWTHEME (CCM_FIRST + 0xb) |
#define CCM_DPISCALE (CCM_FIRST + 0xc) // wParam == Awareness | | #define CCM_DPISCALE (CCM_FIRST + 0xc) // wParam == Awareness |
#endif | | #endif |
#endif // (_WIN32_IE >= 0x0500) | | #endif // (_WIN32_IE >= 0x0500) |
| | |
#endif // (_WIN32_IE >= 0x0400) | | #endif // (_WIN32_IE >= 0x0400) |
| | |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
// for tooltips | | // for tooltips |
#define INFOTIPSIZE 1024 | | #define INFOTIPSIZE 1024 |
| | |
skipping to change at line 261 | | skipping to change at line 260 |
#endif | | #endif |
#if (_WIN32_IE >= 0x0401) | | #if (_WIN32_IE >= 0x0401) |
#define NM_TOOLTIPSCREATED (NM_FIRST-19) // notify of when the tooltips w
indow is create | | #define NM_TOOLTIPSCREATED (NM_FIRST-19) // notify of when the tooltips w
indow is create |
#endif | | #endif |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
#define NM_LDOWN (NM_FIRST-20) | | #define NM_LDOWN (NM_FIRST-20) |
#define NM_RDOWN (NM_FIRST-21) | | #define NM_RDOWN (NM_FIRST-21) |
#define NM_THEMECHANGED (NM_FIRST-22) | | #define NM_THEMECHANGED (NM_FIRST-22) |
#endif | | #endif |
| | |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | #define NM_FONTCHANGED (NM_FIRST-23) |
| | #define NM_CUSTOMTEXT (NM_FIRST-24) // uses NMCUSTOMTEXT struct |
| | #define NM_TVSTATEIMAGECHANGING (NM_FIRST-24) // uses NMTVSTATEIMAGECHANGING s |
| | truct, defined after HTREEITEM |
| | #endif |
| | |
#ifndef CCSIZEOF_STRUCT | | #ifndef CCSIZEOF_STRUCT |
#define CCSIZEOF_STRUCT(structname, member) (((int)((LPBYTE)(&((structname*)0)-
>member) - ((LPBYTE)((structname*)0)))) + sizeof(((structname*)0)->member)) | | #define CCSIZEOF_STRUCT(structname, member) (((int)((LPBYTE)(&((structname*)0)-
>member) - ((LPBYTE)((structname*)0)))) + sizeof(((structname*)0)->member)) |
#endif | | #endif |
| | |
//====== Generic WM_NOTIFY notification structures ============================ | | //====== Generic WM_NOTIFY notification structures ============================ |
#if (_WIN32_IE >= 0x0401) | | #if (_WIN32_IE >= 0x0401) |
typedef struct tagNMTOOLTIPSCREATED | | typedef struct tagNMTOOLTIPSCREATED |
{ | | { |
NMHDR hdr; | | NMHDR hdr; |
HWND hwndToolTips; | | HWND hwndToolTips; |
| | |
skipping to change at line 321 | | skipping to change at line 326 |
| | |
typedef struct tagNMCHAR { | | typedef struct tagNMCHAR { |
NMHDR hdr; | | NMHDR hdr; |
UINT ch; | | UINT ch; |
DWORD dwItemPrev; // Item previously selected | | DWORD dwItemPrev; // Item previously selected |
DWORD dwItemNext; // Item to be selected | | DWORD dwItemNext; // Item to be selected |
} NMCHAR, *LPNMCHAR; | | } NMCHAR, *LPNMCHAR; |
| | |
#endif // _WIN32_IE >= 0x0400 | | #endif // _WIN32_IE >= 0x0400 |
| | |
|
| | #if (_WIN32_IE >= 0x0600) |
| | |
| | typedef struct tagNMCUSTOMTEXT |
| | { |
| | NMHDR hdr; |
| | HDC hDC; |
| | LPCWSTR lpString; |
| | int nCount; |
| | LPRECT lpRect; |
| | UINT uFormat; |
| | BOOL fLink; |
| | } NMCUSTOMTEXT, *LPNMCUSTOMTEXT; |
| | |
| | #endif // _WIN32_IE >= 0x0600 |
//====== WM_NOTIFY codes (NMHDR.code values) ================================== | | //====== WM_NOTIFY codes (NMHDR.code values) ================================== |
| | |
#define NM_FIRST (0U- 0U) // generic to all controls | | #define NM_FIRST (0U- 0U) // generic to all controls |
#define NM_LAST (0U- 99U) | | #define NM_LAST (0U- 99U) |
| | |
#define LVN_FIRST (0U-100U) // listview | | #define LVN_FIRST (0U-100U) // listview |
#define LVN_LAST (0U-199U) | | #define LVN_LAST (0U-199U) |
| | |
// Property sheet reserved (0U-200U) - (0U-299U) - see prsht.h | | // Property sheet reserved (0U-200U) - (0U-299U) - see prsht.h |
| | |
| | |
skipping to change at line 351 | | skipping to change at line 370 |
#define TCN_LAST (0U-580U) | | #define TCN_LAST (0U-580U) |
| | |
// Shell reserved (0U-580U) - (0U-589U) | | // Shell reserved (0U-580U) - (0U-589U) |
| | |
#define CDN_FIRST (0U-601U) // common dialog (new) | | #define CDN_FIRST (0U-601U) // common dialog (new) |
#define CDN_LAST (0U-699U) | | #define CDN_LAST (0U-699U) |
| | |
#define TBN_FIRST (0U-700U) // toolbar | | #define TBN_FIRST (0U-700U) // toolbar |
#define TBN_LAST (0U-720U) | | #define TBN_LAST (0U-720U) |
| | |
|
#define UDN_FIRST (0U-721) // updown | | #define UDN_FIRST (0U-721U) // updown |
#define UDN_LAST (0U-740) | | #define UDN_LAST (0U-729U) |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
|
#define MCN_FIRST (0U-750U) // monthcal | | #define DTN_FIRST (0U-740U) // datetimepick |
#define MCN_LAST (0U-759U) | | #define DTN_LAST (0U-745U) // DTN_FIRST - 5 |
| | |
|
#define DTN_FIRST (0U-760U) // datetimepick | | #define MCN_FIRST (0U-746U) // monthcal |
#define DTN_LAST (0U-799U) | | #define MCN_LAST (0U-752U) // MCN_FIRST - 6 |
| | |
| | #define DTN_FIRST2 (0U-753U) // datetimepick2 |
| | #define DTN_LAST2 (0U-799U) |
| | |
#define CBEN_FIRST (0U-800U) // combo box ex | | #define CBEN_FIRST (0U-800U) // combo box ex |
#define CBEN_LAST (0U-830U) | | #define CBEN_LAST (0U-830U) |
| | |
#define RBN_FIRST (0U-831U) // rebar | | #define RBN_FIRST (0U-831U) // rebar |
#define RBN_LAST (0U-859U) | | #define RBN_LAST (0U-859U) |
#endif | | #endif |
| | |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
#define IPN_FIRST (0U-860U) // internet address | | #define IPN_FIRST (0U-860U) // internet address |
| | |
skipping to change at line 391 | | skipping to change at line 413 |
#define WMN_FIRST (0U-1000U) | | #define WMN_FIRST (0U-1000U) |
#define WMN_LAST (0U-1200U) | | #define WMN_LAST (0U-1200U) |
#endif | | #endif |
#endif | | #endif |
| | |
#if (_WIN32_WINNT >= 0x0501) | | #if (_WIN32_WINNT >= 0x0501) |
#define BCN_FIRST (0U-1250U) | | #define BCN_FIRST (0U-1250U) |
#define BCN_LAST (0U-1350U) | | #define BCN_LAST (0U-1350U) |
#endif | | #endif |
| | |
|
| | #if (_WIN32_WINNT >= 0x0600) |
| | #define TRBN_FIRST (0U-1501U) // trackbar |
| | #define TRBN_LAST (0U-1519U) |
| | #endif |
| | |
#define MSGF_COMMCTRL_BEGINDRAG 0x4200 | | #define MSGF_COMMCTRL_BEGINDRAG 0x4200 |
#define MSGF_COMMCTRL_SIZEHEADER 0x4201 | | #define MSGF_COMMCTRL_SIZEHEADER 0x4201 |
#define MSGF_COMMCTRL_DRAGSELECT 0x4202 | | #define MSGF_COMMCTRL_DRAGSELECT 0x4202 |
#define MSGF_COMMCTRL_TOOLBARCUST 0x4203 | | #define MSGF_COMMCTRL_TOOLBARCUST 0x4203 |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
//==================== CUSTOM DRAW ========================================== | | //==================== CUSTOM DRAW ========================================== |
| | |
// custom draw return flags | | // custom draw return flags |
// values under 0x00010000 are reserved for global custom draw values. | | // values under 0x00010000 are reserved for global custom draw values. |
// above that are for specific controls | | // above that are for specific controls |
#define CDRF_DODEFAULT 0x00000000 | | #define CDRF_DODEFAULT 0x00000000 |
#define CDRF_NEWFONT 0x00000002 | | #define CDRF_NEWFONT 0x00000002 |
#define CDRF_SKIPDEFAULT 0x00000004 | | #define CDRF_SKIPDEFAULT 0x00000004 |
|
| | #define CDRF_DOERASE 0x00000008 // draw the background |
| | #define CDRF_SKIPPOSTPAINT 0x00000100 // don't draw the focus rect |
| | |
#define CDRF_NOTIFYPOSTPAINT 0x00000010 | | #define CDRF_NOTIFYPOSTPAINT 0x00000010 |
#define CDRF_NOTIFYITEMDRAW 0x00000020 | | #define CDRF_NOTIFYITEMDRAW 0x00000020 |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
#define CDRF_NOTIFYSUBITEMDRAW 0x00000020 // flags are the same, we can distin
guish by context | | #define CDRF_NOTIFYSUBITEMDRAW 0x00000020 // flags are the same, we can distin
guish by context |
#endif | | #endif |
#define CDRF_NOTIFYPOSTERASE 0x00000040 | | #define CDRF_NOTIFYPOSTERASE 0x00000040 |
| | |
// drawstage flags | | // drawstage flags |
// values under 0x00010000 are reserved for global custom draw values. | | // values under 0x00010000 are reserved for global custom draw values. |
| | |
skipping to change at line 431 | | skipping to change at line 460 |
#define CDDS_ITEM 0x00010000 | | #define CDDS_ITEM 0x00010000 |
#define CDDS_ITEMPREPAINT (CDDS_ITEM | CDDS_PREPAINT) | | #define CDDS_ITEMPREPAINT (CDDS_ITEM | CDDS_PREPAINT) |
#define CDDS_ITEMPOSTPAINT (CDDS_ITEM | CDDS_POSTPAINT) | | #define CDDS_ITEMPOSTPAINT (CDDS_ITEM | CDDS_POSTPAINT) |
#define CDDS_ITEMPREERASE (CDDS_ITEM | CDDS_PREERASE) | | #define CDDS_ITEMPREERASE (CDDS_ITEM | CDDS_PREERASE) |
#define CDDS_ITEMPOSTERASE (CDDS_ITEM | CDDS_POSTERASE) | | #define CDDS_ITEMPOSTERASE (CDDS_ITEM | CDDS_POSTERASE) |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
#define CDDS_SUBITEM 0x00020000 | | #define CDDS_SUBITEM 0x00020000 |
#endif | | #endif |
| | |
// itemState flags | | // itemState flags |
|
#define CDIS_SELECTED 0x0001 | | #define CDIS_SELECTED 0x0001 |
#define CDIS_GRAYED 0x0002 | | #define CDIS_GRAYED 0x0002 |
#define CDIS_DISABLED 0x0004 | | #define CDIS_DISABLED 0x0004 |
#define CDIS_CHECKED 0x0008 | | #define CDIS_CHECKED 0x0008 |
#define CDIS_FOCUS 0x0010 | | #define CDIS_FOCUS 0x0010 |
#define CDIS_DEFAULT 0x0020 | | #define CDIS_DEFAULT 0x0020 |
#define CDIS_HOT 0x0040 | | #define CDIS_HOT 0x0040 |
#define CDIS_MARKED 0x0080 | | #define CDIS_MARKED 0x0080 |
#define CDIS_INDETERMINATE 0x0100 | | #define CDIS_INDETERMINATE 0x0100 |
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define CDIS_SHOWKEYBOARDCUES 0x0200 | | #define CDIS_SHOWKEYBOARDCUES 0x0200 |
#endif | | #endif |
|
| | #if (_WIN32_WINNT >= 0x0600) |
| | #define CDIS_NEARHOT 0x0400 |
| | #define CDIS_OTHERSIDEHOT 0x0800 |
| | #define CDIS_DROPHILITED 0x1000 |
| | #endif |
| | |
typedef struct tagNMCUSTOMDRAWINFO | | typedef struct tagNMCUSTOMDRAWINFO |
{ | | { |
NMHDR hdr; | | NMHDR hdr; |
DWORD dwDrawStage; | | DWORD dwDrawStage; |
HDC hdc; | | HDC hdc; |
RECT rc; | | RECT rc; |
DWORD_PTR dwItemSpec; // this is control specific, but it's how to specify
an item. valid only with CDDS_ITEM bit set | | DWORD_PTR dwItemSpec; // this is control specific, but it's how to specify
an item. valid only with CDDS_ITEM bit set |
UINT uItemState; | | UINT uItemState; |
LPARAM lItemlParam; | | LPARAM lItemlParam; |
} NMCUSTOMDRAW, *LPNMCUSTOMDRAW; | | } NMCUSTOMDRAW, *LPNMCUSTOMDRAW; |
| | |
typedef struct tagNMTTCUSTOMDRAW | | typedef struct tagNMTTCUSTOMDRAW |
{ | | { |
NMCUSTOMDRAW nmcd; | | NMCUSTOMDRAW nmcd; |
UINT uDrawFlags; | | UINT uDrawFlags; |
} NMTTCUSTOMDRAW, *LPNMTTCUSTOMDRAW; | | } NMTTCUSTOMDRAW, *LPNMTTCUSTOMDRAW; |
| | |
|
| | typedef struct tagNMCUSTOMSPLITRECTINFO |
| | { |
| | NMHDR hdr; |
| | RECT rcClient; |
| | RECT rcButton; |
| | RECT rcSplit; |
| | } NMCUSTOMSPLITRECTINFO, *LPNMCUSTOMSPLITRECTINFO; |
| | |
| | #define NM_GETCUSTOMSPLITRECT (BCN_FIRST + 0x0003) |
| | |
#endif // _WIN32_IE >= 0x0300 | | #endif // _WIN32_IE >= 0x0300 |
| | |
//====== IMAGE APIS =========================================================== | | //====== IMAGE APIS =========================================================== |
| | |
#ifndef NOIMAGEAPIS | | #ifndef NOIMAGEAPIS |
| | |
#define CLR_NONE 0xFFFFFFFFL | | #define CLR_NONE 0xFFFFFFFFL |
#define CLR_DEFAULT 0xFF000000L | | #define CLR_DEFAULT 0xFF000000L |
| | |
#ifndef HIMAGELIST | | #ifndef HIMAGELIST |
| | |
skipping to change at line 493 | | skipping to change at line 537 |
int x; | | int x; |
int y; | | int y; |
int cx; | | int cx; |
int cy; | | int cy; |
int xBitmap; // x offest from the upperleft of bitmap | | int xBitmap; // x offest from the upperleft of bitmap |
int yBitmap; // y offset from the upperleft of bitmap | | int yBitmap; // y offset from the upperleft of bitmap |
COLORREF rgbBk; | | COLORREF rgbBk; |
COLORREF rgbFg; | | COLORREF rgbFg; |
UINT fStyle; | | UINT fStyle; |
DWORD dwRop; | | DWORD dwRop; |
|
#if (_WIN32_IE >= 0x501) | | #if (_WIN32_IE >= 0x0501) |
DWORD fState; | | DWORD fState; |
DWORD Frame; | | DWORD Frame; |
COLORREF crEffect; | | COLORREF crEffect; |
#endif | | #endif |
} IMAGELISTDRAWPARAMS, *LPIMAGELISTDRAWPARAMS; | | } IMAGELISTDRAWPARAMS, *LPIMAGELISTDRAWPARAMS; |
| | |
#define IMAGELISTDRAWPARAMS_V3_SIZE CCSIZEOF_STRUCT(IMAGELISTDRAWPARAMS, dwRop) | | #define IMAGELISTDRAWPARAMS_V3_SIZE CCSIZEOF_STRUCT(IMAGELISTDRAWPARAMS, dwRop) |
| | |
#endif // _WIN32_IE >= 0x0300 | | #endif // _WIN32_IE >= 0x0300 |
#endif | | #endif |
| | |
#define ILC_MASK 0x00000001 | | #define ILC_MASK 0x00000001 |
#define ILC_COLOR 0x00000000 | | #define ILC_COLOR 0x00000000 |
#define ILC_COLORDDB 0x000000FE | | #define ILC_COLORDDB 0x000000FE |
#define ILC_COLOR4 0x00000004 | | #define ILC_COLOR4 0x00000004 |
#define ILC_COLOR8 0x00000008 | | #define ILC_COLOR8 0x00000008 |
#define ILC_COLOR16 0x00000010 | | #define ILC_COLOR16 0x00000010 |
#define ILC_COLOR24 0x00000018 | | #define ILC_COLOR24 0x00000018 |
#define ILC_COLOR32 0x00000020 | | #define ILC_COLOR32 0x00000020 |
#define ILC_PALETTE 0x00000800 // (not implemented) | | #define ILC_PALETTE 0x00000800 // (not implemented) |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define ILC_MIRROR 0x00002000 // Mirror the icons contained, i
f the process is mirrored | | #define ILC_MIRROR 0x00002000 // Mirror the icons contained, i
f the process is mirrored |
#define ILC_PERITEMMIRROR 0x00008000 // Causes the mirroring code to
mirror each item when inserting a set of images, verses the whole strip | | #define ILC_PERITEMMIRROR 0x00008000 // Causes the mirroring code to
mirror each item when inserting a set of images, verses the whole strip |
#endif | | #endif |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | #define ILC_ORIGINALSIZE 0x00010000 // Imagelist should accept small |
| | er than set images and apply OriginalSize based on image added |
| | #define ILC_HIGHQUALITYSCALE 0x00020000 // Imagelist should enable use o |
| | f the high quality scaler. |
| | #endif |
WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_Create(int cx, int cy, UINT flags, i
nt cInitial, int cGrow); | | WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_Create(int cx, int cy, UINT flags, i
nt cInitial, int cGrow); |
WINCOMMCTRLAPI BOOL WINAPI ImageList_Destroy(HIMAGELIST himl); | | WINCOMMCTRLAPI BOOL WINAPI ImageList_Destroy(HIMAGELIST himl); |
| | |
WINCOMMCTRLAPI int WINAPI ImageList_GetImageCount(HIMAGELIST himl); | | WINCOMMCTRLAPI int WINAPI ImageList_GetImageCount(HIMAGELIST himl); |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
WINCOMMCTRLAPI BOOL WINAPI ImageList_SetImageCount(HIMAGELIST himl, UINT
uNewCount); | | WINCOMMCTRLAPI BOOL WINAPI ImageList_SetImageCount(HIMAGELIST himl, UINT
uNewCount); |
#endif | | #endif |
| | |
WINCOMMCTRLAPI int WINAPI ImageList_Add(HIMAGELIST himl, HBITMAP hbmImag
e, HBITMAP hbmMask); | | WINCOMMCTRLAPI int WINAPI ImageList_Add(HIMAGELIST himl, HBITMAP hbmImag
e, HBITMAP hbmMask); |
| | |
| | |
skipping to change at line 549 | | skipping to change at line 597 |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define ILD_ROP 0x00000040 | | #define ILD_ROP 0x00000040 |
#endif | | #endif |
#define ILD_BLEND25 0x00000002 | | #define ILD_BLEND25 0x00000002 |
#define ILD_BLEND50 0x00000004 | | #define ILD_BLEND50 0x00000004 |
#define ILD_OVERLAYMASK 0x00000F00 | | #define ILD_OVERLAYMASK 0x00000F00 |
#define INDEXTOOVERLAYMASK(i) ((i) << 8) | | #define INDEXTOOVERLAYMASK(i) ((i) << 8) |
#define ILD_PRESERVEALPHA 0x00001000 // This preserves the alpha channel
in dest | | #define ILD_PRESERVEALPHA 0x00001000 // This preserves the alpha channel
in dest |
#define ILD_SCALE 0x00002000 // Causes the image to be scaled to
cx, cy instead of clipped | | #define ILD_SCALE 0x00002000 // Causes the image to be scaled to
cx, cy instead of clipped |
#define ILD_DPISCALE 0x00004000 | | #define ILD_DPISCALE 0x00004000 |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | #define ILD_ASYNC 0x00008000 |
| | #endif |
| | |
#define ILD_SELECTED ILD_BLEND50 | | #define ILD_SELECTED ILD_BLEND50 |
#define ILD_FOCUS ILD_BLEND25 | | #define ILD_FOCUS ILD_BLEND25 |
#define ILD_BLEND ILD_BLEND50 | | #define ILD_BLEND ILD_BLEND50 |
#define CLR_HILIGHT CLR_DEFAULT | | #define CLR_HILIGHT CLR_DEFAULT |
| | |
#define ILS_NORMAL 0x00000000 | | #define ILS_NORMAL 0x00000000 |
#define ILS_GLOW 0x00000001 | | #define ILS_GLOW 0x00000001 |
#define ILS_SHADOW 0x00000002 | | #define ILS_SHADOW 0x00000002 |
#define ILS_SATURATE 0x00000004 | | #define ILS_SATURATE 0x00000004 |
#define ILS_ALPHA 0x00000008 | | #define ILS_ALPHA 0x00000008 |
| | |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | #define ILGT_NORMAL 0x00000000 |
| | #define ILGT_ASYNC 0x00000001 |
| | #endif |
| | |
WINCOMMCTRLAPI BOOL WINAPI ImageList_Draw(HIMAGELIST himl, int i, HDC hdcDst, in
t x, int y, UINT fStyle); | | WINCOMMCTRLAPI BOOL WINAPI ImageList_Draw(HIMAGELIST himl, int i, HDC hdcDst, in
t x, int y, UINT fStyle); |
| | |
#ifdef _WIN32 | | #ifdef _WIN32 |
| | |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | #define HBITMAP_CALLBACK ((HBITMAP)-1) // only for SparseIma |
| | geList |
| | #endif |
| | |
WINCOMMCTRLAPI BOOL WINAPI ImageList_Replace(HIMAGELIST himl, int i, HBIT
MAP hbmImage, HBITMAP hbmMask); | | WINCOMMCTRLAPI BOOL WINAPI ImageList_Replace(HIMAGELIST himl, int i, HBIT
MAP hbmImage, HBITMAP hbmMask); |
| | |
WINCOMMCTRLAPI int WINAPI ImageList_AddMasked(HIMAGELIST himl, HBITMAP h
bmImage, COLORREF crMask); | | WINCOMMCTRLAPI int WINAPI ImageList_AddMasked(HIMAGELIST himl, HBITMAP h
bmImage, COLORREF crMask); |
WINCOMMCTRLAPI BOOL WINAPI ImageList_DrawEx(HIMAGELIST himl, int i, HDC h
dcDst, int x, int y, int dx, int dy, COLORREF rgbBk, COLORREF rgbFg, UINT fStyle
); | | WINCOMMCTRLAPI BOOL WINAPI ImageList_DrawEx(HIMAGELIST himl, int i, HDC h
dcDst, int x, int y, int dx, int dy, COLORREF rgbBk, COLORREF rgbFg, UINT fStyle
); |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
WINCOMMCTRLAPI BOOL WINAPI ImageList_DrawIndirect(IMAGELISTDRAWPARAMS* pi
mldp); | | WINCOMMCTRLAPI BOOL WINAPI ImageList_DrawIndirect(IMAGELISTDRAWPARAMS* pi
mldp); |
#endif | | #endif |
WINCOMMCTRLAPI BOOL WINAPI ImageList_Remove(HIMAGELIST himl, int i); | | WINCOMMCTRLAPI BOOL WINAPI ImageList_Remove(HIMAGELIST himl, int i); |
WINCOMMCTRLAPI HICON WINAPI ImageList_GetIcon(HIMAGELIST himl, int i, UINT
flags); | | WINCOMMCTRLAPI HICON WINAPI ImageList_GetIcon(HIMAGELIST himl, int i, UINT
flags); |
WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_LoadImageA(HINSTANCE hi, LPCSTR lpbm
p, int cx, int cGrow, COLORREF crMask, UINT uType, UINT uFlags); | | WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_LoadImageA(HINSTANCE hi, LPCSTR lpbm
p, int cx, int cGrow, COLORREF crMask, UINT uType, UINT uFlags); |
| | |
skipping to change at line 590 | | skipping to change at line 650 |
#define ImageList_LoadImage ImageList_LoadImageA | | #define ImageList_LoadImage ImageList_LoadImageA |
#endif | | #endif |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define ILCF_MOVE (0x00000000) | | #define ILCF_MOVE (0x00000000) |
#define ILCF_SWAP (0x00000001) | | #define ILCF_SWAP (0x00000001) |
WINCOMMCTRLAPI BOOL WINAPI ImageList_Copy(HIMAGELIST himlDst, int iDst, H
IMAGELIST himlSrc, int iSrc, UINT uFlags); | | WINCOMMCTRLAPI BOOL WINAPI ImageList_Copy(HIMAGELIST himlDst, int iDst, H
IMAGELIST himlSrc, int iSrc, UINT uFlags); |
#endif | | #endif |
| | |
WINCOMMCTRLAPI BOOL WINAPI ImageList_BeginDrag(HIMAGELIST himlTrack, int
iTrack, int dxHotspot, int dyHotspot); | | WINCOMMCTRLAPI BOOL WINAPI ImageList_BeginDrag(HIMAGELIST himlTrack, int
iTrack, int dxHotspot, int dyHotspot); |
|
WINCOMMCTRLAPI void WINAPI ImageList_EndDrag(); | | WINCOMMCTRLAPI void WINAPI ImageList_EndDrag(void); |
WINCOMMCTRLAPI BOOL WINAPI ImageList_DragEnter(HWND hwndLock, int x, int
y); | | WINCOMMCTRLAPI BOOL WINAPI ImageList_DragEnter(HWND hwndLock, int x, int
y); |
WINCOMMCTRLAPI BOOL WINAPI ImageList_DragLeave(HWND hwndLock); | | WINCOMMCTRLAPI BOOL WINAPI ImageList_DragLeave(HWND hwndLock); |
WINCOMMCTRLAPI BOOL WINAPI ImageList_DragMove(int x, int y); | | WINCOMMCTRLAPI BOOL WINAPI ImageList_DragMove(int x, int y); |
WINCOMMCTRLAPI BOOL WINAPI ImageList_SetDragCursorImage(HIMAGELIST himlDr
ag, int iDrag, int dxHotspot, int dyHotspot); | | WINCOMMCTRLAPI BOOL WINAPI ImageList_SetDragCursorImage(HIMAGELIST himlDr
ag, int iDrag, int dxHotspot, int dyHotspot); |
| | |
WINCOMMCTRLAPI BOOL WINAPI ImageList_DragShowNolock(BOOL fShow); | | WINCOMMCTRLAPI BOOL WINAPI ImageList_DragShowNolock(BOOL fShow); |
WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_GetDragImage(POINT *ppt,POINT *pptHo
tspot); | | WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_GetDragImage(POINT *ppt,POINT *pptHo
tspot); |
| | |
#define ImageList_RemoveAll(himl) ImageList_Remove(himl, -1) | | #define ImageList_RemoveAll(himl) ImageList_Remove(himl, -1) |
#define ImageList_ExtractIcon(hi, himl, i) ImageList_GetIcon(himl, i, 0) | | #define ImageList_ExtractIcon(hi, himl, i) ImageList_GetIcon(himl, i, 0) |
| | |
skipping to change at line 639 | | skipping to change at line 699 |
WINCOMMCTRLAPI BOOL WINAPI ImageList_GetIconSize(HIMAGELIST himl, int *cx
, int *cy); | | WINCOMMCTRLAPI BOOL WINAPI ImageList_GetIconSize(HIMAGELIST himl, int *cx
, int *cy); |
WINCOMMCTRLAPI BOOL WINAPI ImageList_SetIconSize(HIMAGELIST himl, int cx,
int cy); | | WINCOMMCTRLAPI BOOL WINAPI ImageList_SetIconSize(HIMAGELIST himl, int cx,
int cy); |
WINCOMMCTRLAPI BOOL WINAPI ImageList_GetImageInfo(HIMAGELIST himl, int i,
IMAGEINFO *pImageInfo); | | WINCOMMCTRLAPI BOOL WINAPI ImageList_GetImageInfo(HIMAGELIST himl, int i,
IMAGEINFO *pImageInfo); |
WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_Merge(HIMAGELIST himl1, int i1, HIMA
GELIST himl2, int i2, int dx, int dy); | | WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_Merge(HIMAGELIST himl1, int i1, HIMA
GELIST himl2, int i2, int dx, int dy); |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_Duplicate(HIMAGELIST himl); | | WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_Duplicate(HIMAGELIST himl); |
#endif | | #endif |
| | |
#endif | | #endif |
| | |
|
| | #if (_WIN32_WINNT >= 0x0501) |
| | WINCOMMCTRLAPI HRESULT WINAPI HIMAGELIST_QueryInterface(HIMAGELIST himl, REFIID |
| | riid, void** ppv); |
| | |
| | #ifdef __cplusplus |
| | FORCEINLINE HIMAGELIST IImageListToHIMAGELIST(struct IImageList *himl) |
| | { |
| | return reinterpret_cast<HIMAGELIST>(himl); |
| | } |
| | #else |
| | #define IImageListToHIMAGELIST(himl) ((HIMAGELIST)(himl)) |
| | #endif |
| | |
| | #endif |
| | |
#endif | | #endif |
| | |
//====== HEADER CONTROL ======================================================= | | //====== HEADER CONTROL ======================================================= |
| | |
#ifndef NOHEADER | | #ifndef NOHEADER |
| | |
#ifdef _WIN32 | | #ifdef _WIN32 |
#define WC_HEADERA "SysHeader32" | | #define WC_HEADERA "SysHeader32" |
#define WC_HEADERW L"SysHeader32" | | #define WC_HEADERW L"SysHeader32" |
| | |
| | |
skipping to change at line 676 | | skipping to change at line 750 |
#define HDS_HIDDEN 0x0008 | | #define HDS_HIDDEN 0x0008 |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define HDS_DRAGDROP 0x0040 | | #define HDS_DRAGDROP 0x0040 |
#define HDS_FULLDRAG 0x0080 | | #define HDS_FULLDRAG 0x0080 |
#endif | | #endif |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
#define HDS_FILTERBAR 0x0100 | | #define HDS_FILTERBAR 0x0100 |
#endif | | #endif |
| | |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define HDS_FLAT 0x0200 | | #define HDS_FLAT 0x0200 |
#endif | | #endif |
|
| | |
| | #if _WIN32_WINNT >= 0x0600 |
| | #define HDS_CHECKBOXES 0x0400 |
| | #define HDS_NOSIZING 0x0800 |
| | #define HDS_OVERFLOW 0x1000 |
| | #endif |
// end_r_commctrl | | // end_r_commctrl |
| | |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
| | |
#define HDFT_ISSTRING 0x0000 // HD_ITEM.pvFilter points to a HD_TEXTF
ILTER | | #define HDFT_ISSTRING 0x0000 // HD_ITEM.pvFilter points to a HD_TEXTF
ILTER |
#define HDFT_ISNUMBER 0x0001 // HD_ITEM.pvFilter points to a INT | | #define HDFT_ISNUMBER 0x0001 // HD_ITEM.pvFilter points to a INT |
|
| | #define HDFT_ISDATE 0x0002 // HD_ITEM.pvFilter points to a DWORD (d
os date) |
| | |
#define HDFT_HASNOVALUE 0x8000 // clear the filter, by setting this bit | | #define HDFT_HASNOVALUE 0x8000 // clear the filter, by setting this bit |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
#define HD_TEXTFILTER HD_TEXTFILTERW | | #define HD_TEXTFILTER HD_TEXTFILTERW |
#define HDTEXTFILTER HD_TEXTFILTERW | | #define HDTEXTFILTER HD_TEXTFILTERW |
#define LPHD_TEXTFILTER LPHD_TEXTFILTERW | | #define LPHD_TEXTFILTER LPHD_TEXTFILTERW |
#define LPHDTEXTFILTER LPHD_TEXTFILTERW | | #define LPHDTEXTFILTER LPHD_TEXTFILTERW |
#else | | #else |
#define HD_TEXTFILTER HD_TEXTFILTERA | | #define HD_TEXTFILTER HD_TEXTFILTERA |
| | |
skipping to change at line 738 | | skipping to change at line 819 |
HBITMAP hbm; | | HBITMAP hbm; |
int cchTextMax; | | int cchTextMax; |
int fmt; | | int fmt; |
LPARAM lParam; | | LPARAM lParam; |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
int iImage; // index of bitmap in ImageList | | int iImage; // index of bitmap in ImageList |
int iOrder; // where to draw this item | | int iOrder; // where to draw this item |
#endif | | #endif |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
UINT type; // [in] filter type (defined what pvFilter is a poin
ter to) | | UINT type; // [in] filter type (defined what pvFilter is a poin
ter to) |
|
void * pvFilter; // [in] fillter data see above | | void * pvFilter; // [in] filter data see above |
| | #endif |
| | #if _WIN32_WINNT >= 0x0600 |
| | UINT state; |
#endif | | #endif |
} HDITEMA, *LPHDITEMA; | | } HDITEMA, *LPHDITEMA; |
| | |
#define HDITEMA_V1_SIZE CCSIZEOF_STRUCT(HDITEMA, lParam) | | #define HDITEMA_V1_SIZE CCSIZEOF_STRUCT(HDITEMA, lParam) |
#define HDITEMW_V1_SIZE CCSIZEOF_STRUCT(HDITEMW, lParam) | | #define HDITEMW_V1_SIZE CCSIZEOF_STRUCT(HDITEMW, lParam) |
| | |
typedef struct _HD_ITEMW | | typedef struct _HD_ITEMW |
{ | | { |
UINT mask; | | UINT mask; |
int cxy; | | int cxy; |
|
LPWSTR pszText; | | LPWSTR pszText; |
HBITMAP hbm; | | HBITMAP hbm; |
int cchTextMax; | | int cchTextMax; |
int fmt; | | int fmt; |
LPARAM lParam; | | LPARAM lParam; |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
int iImage; // index of bitmap in ImageList | | int iImage; // index of bitmap in ImageList |
int iOrder; | | int iOrder; |
#endif | | #endif |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
UINT type; // [in] filter type (defined what pvFilter is a poin
ter to) | | UINT type; // [in] filter type (defined what pvFilter is a poin
ter to) |
void * pvFilter; // [in] fillter data see above | | void * pvFilter; // [in] fillter data see above |
#endif | | #endif |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | UINT state; |
| | #endif |
} HDITEMW, *LPHDITEMW; | | } HDITEMW, *LPHDITEMW; |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
#define HDITEM HDITEMW | | #define HDITEM HDITEMW |
#define LPHDITEM LPHDITEMW | | #define LPHDITEM LPHDITEMW |
#define HDITEM_V1_SIZE HDITEMW_V1_SIZE | | #define HDITEM_V1_SIZE HDITEMW_V1_SIZE |
#else | | #else |
#define HDITEM HDITEMA | | #define HDITEM HDITEMA |
#define LPHDITEM LPHDITEMA | | #define LPHDITEM LPHDITEMA |
#define HDITEM_V1_SIZE HDITEMA_V1_SIZE | | #define HDITEM_V1_SIZE HDITEMA_V1_SIZE |
| | |
skipping to change at line 788 | | skipping to change at line 875 |
#define HDI_LPARAM 0x0008 | | #define HDI_LPARAM 0x0008 |
#define HDI_BITMAP 0x0010 | | #define HDI_BITMAP 0x0010 |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define HDI_IMAGE 0x0020 | | #define HDI_IMAGE 0x0020 |
#define HDI_DI_SETITEM 0x0040 | | #define HDI_DI_SETITEM 0x0040 |
#define HDI_ORDER 0x0080 | | #define HDI_ORDER 0x0080 |
#endif | | #endif |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
#define HDI_FILTER 0x0100 | | #define HDI_FILTER 0x0100 |
#endif | | #endif |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | #define HDI_STATE 0x0200 |
| | #endif |
| | |
|
#define HDF_LEFT 0x0000 | | // HDF_ flags are shared with the listview control (LVCFMT_ flags) |
#define HDF_RIGHT 0x0001 | | |
#define HDF_CENTER 0x0002 | | #define HDF_LEFT 0x0000 // Same as LVCFMT_LEFT |
#define HDF_JUSTIFYMASK 0x0003 | | #define HDF_RIGHT 0x0001 // Same as LVCFMT_RIGHT |
#define HDF_RTLREADING 0x0004 | | #define HDF_CENTER 0x0002 // Same as LVCFMT_CENTER |
| | #define HDF_JUSTIFYMASK 0x0003 // Same as LVCFMT_JUSTIFYMASK |
| | #define HDF_RTLREADING 0x0004 // Same as LVCFMT_LEFT |
| | |
|
#define HDF_OWNERDRAW 0x8000 | | |
#define HDF_STRING 0x4000 | | |
#define HDF_BITMAP 0x2000 | | #define HDF_BITMAP 0x2000 |
|
| | #define HDF_STRING 0x4000 |
| | #define HDF_OWNERDRAW 0x8000 // Same as LVCFMT_COL_HAS_IMAGES |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
|
#define HDF_BITMAP_ON_RIGHT 0x1000 | | #define HDF_IMAGE 0x0800 // Same as LVCFMT_IMAGE |
#define HDF_IMAGE 0x0800 | | #define HDF_BITMAP_ON_RIGHT 0x1000 // Same as LVCFMT_BITMAP_ON_RIGHT |
#endif | | #endif |
| | |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define HDF_SORTUP 0x0400 | | #define HDF_SORTUP 0x0400 |
#define HDF_SORTDOWN 0x0200 | | #define HDF_SORTDOWN 0x0200 |
#endif | | #endif |
| | |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | #define HDF_CHECKBOX 0x0040 |
| | #define HDF_CHECKED 0x0080 |
| | #define HDF_FIXEDWIDTH 0x0100 // Can't resize the column; same as LVCFM |
| | T_FIXED_WIDTH |
| | #define HDF_SPLITBUTTON 0x1000000 // Column is a split button; same as LVCF |
| | MT_SPLITBUTTON |
| | #endif |
| | |
| | #if _WIN32_WINNT >= 0x0600 |
| | #define HDIS_FOCUSED 0x00000001 |
| | #endif |
| | |
#define HDM_GETITEMCOUNT (HDM_FIRST + 0) | | #define HDM_GETITEMCOUNT (HDM_FIRST + 0) |
#define Header_GetItemCount(hwndHD) \ | | #define Header_GetItemCount(hwndHD) \ |
(int)SNDMSG((hwndHD), HDM_GETITEMCOUNT, 0, 0L) | | (int)SNDMSG((hwndHD), HDM_GETITEMCOUNT, 0, 0L) |
| | |
#define HDM_INSERTITEMA (HDM_FIRST + 1) | | #define HDM_INSERTITEMA (HDM_FIRST + 1) |
#define HDM_INSERTITEMW (HDM_FIRST + 10) | | #define HDM_INSERTITEMW (HDM_FIRST + 10) |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
#define HDM_INSERTITEM HDM_INSERTITEMW | | #define HDM_INSERTITEM HDM_INSERTITEMW |
#else | | #else |
| | |
skipping to change at line 880 | | skipping to change at line 983 |
#define HHT_ONDIVIDER 0x0004 | | #define HHT_ONDIVIDER 0x0004 |
#define HHT_ONDIVOPEN 0x0008 | | #define HHT_ONDIVOPEN 0x0008 |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
#define HHT_ONFILTER 0x0010 | | #define HHT_ONFILTER 0x0010 |
#define HHT_ONFILTERBUTTON 0x0020 | | #define HHT_ONFILTERBUTTON 0x0020 |
#endif | | #endif |
#define HHT_ABOVE 0x0100 | | #define HHT_ABOVE 0x0100 |
#define HHT_BELOW 0x0200 | | #define HHT_BELOW 0x0200 |
#define HHT_TORIGHT 0x0400 | | #define HHT_TORIGHT 0x0400 |
#define HHT_TOLEFT 0x0800 | | #define HHT_TOLEFT 0x0800 |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | #define HHT_ONITEMSTATEICON 0x1000 |
| | #define HHT_ONDROPDOWN 0x2000 |
| | #define HHT_ONOVERFLOW 0x4000 |
| | #endif |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define HD_HITTESTINFO HDHITTESTINFO | | #define HD_HITTESTINFO HDHITTESTINFO |
#else | | #else |
#define HDHITTESTINFO HD_HITTESTINFO | | #define HDHITTESTINFO HD_HITTESTINFO |
#endif | | #endif |
| | |
typedef struct _HD_HITTESTINFO | | typedef struct _HD_HITTESTINFO |
{ | | { |
POINT pt; | | POINT pt; |
UINT flags; | | UINT flags; |
int iItem; | | int iItem; |
} HDHITTESTINFO, *LPHDHITTESTINFO; | | } HDHITTESTINFO, *LPHDHITTESTINFO; |
| | |
|
| | #define HDSIL_NORMAL 0 |
| | #define HDSIL_STATE 1 |
| | |
#define HDM_HITTEST (HDM_FIRST + 6) | | #define HDM_HITTEST (HDM_FIRST + 6) |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
| | |
#define HDM_GETITEMRECT (HDM_FIRST + 7) | | #define HDM_GETITEMRECT (HDM_FIRST + 7) |
#define Header_GetItemRect(hwnd, iItem, lprc) \ | | #define Header_GetItemRect(hwnd, iItem, lprc) \ |
(BOOL)SNDMSG((hwnd), HDM_GETITEMRECT, (WPARAM)(iItem), (LPARAM)(lprc)) | | (BOOL)SNDMSG((hwnd), HDM_GETITEMRECT, (WPARAM)(iItem), (LPARAM)(lprc)) |
| | |
#define HDM_SETIMAGELIST (HDM_FIRST + 8) | | #define HDM_SETIMAGELIST (HDM_FIRST + 8) |
#define Header_SetImageList(hwnd, himl) \ | | #define Header_SetImageList(hwnd, himl) \ |
|
(HIMAGELIST)SNDMSG((hwnd), HDM_SETIMAGELIST, 0, (LPARAM)(himl)) | | (HIMAGELIST)SNDMSG((hwnd), HDM_SETIMAGELIST, HDSIL_NORMAL, (LPARAM)(himl |
| | )) |
| | #define Header_SetStateImageList(hwnd, himl) \ |
| | (HIMAGELIST)SNDMSG((hwnd), HDM_SETIMAGELIST, HDSIL_STATE, (LPARAM)(himl) |
| | ) |
| | |
#define HDM_GETIMAGELIST (HDM_FIRST + 9) | | #define HDM_GETIMAGELIST (HDM_FIRST + 9) |
#define Header_GetImageList(hwnd) \ | | #define Header_GetImageList(hwnd) \ |
|
(HIMAGELIST)SNDMSG((hwnd), HDM_GETIMAGELIST, 0, 0) | | (HIMAGELIST)SNDMSG((hwnd), HDM_GETIMAGELIST, HDSIL_NORMAL, 0) |
| | #define Header_GetStateImageList(hwnd) \ |
| | (HIMAGELIST)SNDMSG((hwnd), HDM_GETIMAGELIST, HDSIL_STATE, 0) |
| | |
#define HDM_ORDERTOINDEX (HDM_FIRST + 15) | | #define HDM_ORDERTOINDEX (HDM_FIRST + 15) |
#define Header_OrderToIndex(hwnd, i) \ | | #define Header_OrderToIndex(hwnd, i) \ |
(int)SNDMSG((hwnd), HDM_ORDERTOINDEX, (WPARAM)(i), 0) | | (int)SNDMSG((hwnd), HDM_ORDERTOINDEX, (WPARAM)(i), 0) |
| | |
#define HDM_CREATEDRAGIMAGE (HDM_FIRST + 16) // wparam = which item (by ind
ex) | | #define HDM_CREATEDRAGIMAGE (HDM_FIRST + 16) // wparam = which item (by ind
ex) |
#define Header_CreateDragImage(hwnd, i) \ | | #define Header_CreateDragImage(hwnd, i) \ |
(HIMAGELIST)SNDMSG((hwnd), HDM_CREATEDRAGIMAGE, (WPARAM)(i), 0) | | (HIMAGELIST)SNDMSG((hwnd), HDM_CREATEDRAGIMAGE, (WPARAM)(i), 0) |
| | |
#define HDM_GETORDERARRAY (HDM_FIRST + 17) | | #define HDM_GETORDERARRAY (HDM_FIRST + 17) |
| | |
skipping to change at line 982 | | skipping to change at line 1097 |
// the filter should be cleared. When this happens you will | | // the filter should be cleared. When this happens you will |
// only receive a single filter changed notification. | | // only receive a single filter changed notification. |
| | |
#define HDM_CLEARFILTER (HDM_FIRST+24) | | #define HDM_CLEARFILTER (HDM_FIRST+24) |
#define Header_ClearFilter(hwnd, i) \ | | #define Header_ClearFilter(hwnd, i) \ |
(int)SNDMSG((hwnd), HDM_CLEARFILTER, (WPARAM)(i), 0) | | (int)SNDMSG((hwnd), HDM_CLEARFILTER, (WPARAM)(i), 0) |
#define Header_ClearAllFilters(hwnd) \ | | #define Header_ClearAllFilters(hwnd) \ |
(int)SNDMSG((hwnd), HDM_CLEARFILTER, (WPARAM)-1, 0) | | (int)SNDMSG((hwnd), HDM_CLEARFILTER, (WPARAM)-1, 0) |
#endif | | #endif |
| | |
|
#define HDN_ITEMCHANGINGA (HDN_FIRST-0) | | #if (_WIN32_IE >= 0x0600) |
| | #define HDM_TRANSLATEACCELERATOR CCM_TRANSLATEACCELERATOR |
| | #endif |
| | |
| | #if (_WIN32_WINNT >= 0x600) |
| | |
| | #define HDM_GETITEMDROPDOWNRECT (HDM_FIRST+25) // rect of item's drop down butt |
| | on |
| | #define Header_GetItemDropDownRect(hwnd, iItem, lprc) \ |
| | (BOOL)SNDMSG((hwnd), HDM_GETITEMDROPDOWNRECT, (WPARAM)(iItem), (LPARAM)( |
| | lprc)) |
| | |
| | #define HDM_GETOVERFLOWRECT (HDM_FIRST+26) // rect of overflow button |
| | #define Header_GetOverflowRect(hwnd, lprc) \ |
| | (BOOL)SNDMSG((hwnd), HDM_GETOVERFLOWRECT, 0, (LPARAM)(lprc)) |
| | |
| | #define HDM_GETFOCUSEDITEM (HDM_FIRST+27) |
| | #define Header_GetFocusedItem(hwnd) \ |
| | (int)SNDMSG((hwnd), HDM_GETFOCUSEDITEM, (WPARAM)(0), (LPARAM)(0)) |
| | |
| | #define HDM_SETFOCUSEDITEM (HDM_FIRST+28) |
| | #define Header_SetFocusedItem(hwnd, iItem) \ |
| | (BOOL)SNDMSG((hwnd), HDM_SETFOCUSEDITEM, (WPARAM)(0), (LPARAM)(iItem)) |
| | |
| | #endif // _WIN32_WINNT >= 0x600 |
| | |
| | #define HDN_ITEMCHANGINGA (HDN_FIRST-0) |
#define HDN_ITEMCHANGINGW (HDN_FIRST-20) | | #define HDN_ITEMCHANGINGW (HDN_FIRST-20) |
#define HDN_ITEMCHANGEDA (HDN_FIRST-1) | | #define HDN_ITEMCHANGEDA (HDN_FIRST-1) |
#define HDN_ITEMCHANGEDW (HDN_FIRST-21) | | #define HDN_ITEMCHANGEDW (HDN_FIRST-21) |
#define HDN_ITEMCLICKA (HDN_FIRST-2) | | #define HDN_ITEMCLICKA (HDN_FIRST-2) |
#define HDN_ITEMCLICKW (HDN_FIRST-22) | | #define HDN_ITEMCLICKW (HDN_FIRST-22) |
#define HDN_ITEMDBLCLICKA (HDN_FIRST-3) | | #define HDN_ITEMDBLCLICKA (HDN_FIRST-3) |
#define HDN_ITEMDBLCLICKW (HDN_FIRST-23) | | #define HDN_ITEMDBLCLICKW (HDN_FIRST-23) |
#define HDN_DIVIDERDBLCLICKA (HDN_FIRST-5) | | #define HDN_DIVIDERDBLCLICKA (HDN_FIRST-5) |
#define HDN_DIVIDERDBLCLICKW (HDN_FIRST-25) | | #define HDN_DIVIDERDBLCLICKW (HDN_FIRST-25) |
#define HDN_BEGINTRACKA (HDN_FIRST-6) | | #define HDN_BEGINTRACKA (HDN_FIRST-6) |
| | |
skipping to change at line 1009 | | skipping to change at line 1148 |
#define HDN_GETDISPINFOA (HDN_FIRST-9) | | #define HDN_GETDISPINFOA (HDN_FIRST-9) |
#define HDN_GETDISPINFOW (HDN_FIRST-29) | | #define HDN_GETDISPINFOW (HDN_FIRST-29) |
#define HDN_BEGINDRAG (HDN_FIRST-10) | | #define HDN_BEGINDRAG (HDN_FIRST-10) |
#define HDN_ENDDRAG (HDN_FIRST-11) | | #define HDN_ENDDRAG (HDN_FIRST-11) |
#endif | | #endif |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
#define HDN_FILTERCHANGE (HDN_FIRST-12) | | #define HDN_FILTERCHANGE (HDN_FIRST-12) |
#define HDN_FILTERBTNCLICK (HDN_FIRST-13) | | #define HDN_FILTERBTNCLICK (HDN_FIRST-13) |
#endif | | #endif |
| | |
|
| | #if (_WIN32_IE >= 0x0600) |
| | #define HDN_BEGINFILTEREDIT (HDN_FIRST-14) |
| | #define HDN_ENDFILTEREDIT (HDN_FIRST-15) |
| | #endif |
| | |
| | #if _WIN32_WINNT >= 0x0600 |
| | #define HDN_ITEMSTATEICONCLICK (HDN_FIRST-16) |
| | #define HDN_ITEMKEYDOWN (HDN_FIRST-17) |
| | #define HDN_DROPDOWN (HDN_FIRST-18) |
| | #define HDN_OVERFLOWCLICK (HDN_FIRST-19) |
| | #endif |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
#define HDN_ITEMCHANGING HDN_ITEMCHANGINGW | | #define HDN_ITEMCHANGING HDN_ITEMCHANGINGW |
#define HDN_ITEMCHANGED HDN_ITEMCHANGEDW | | #define HDN_ITEMCHANGED HDN_ITEMCHANGEDW |
#define HDN_ITEMCLICK HDN_ITEMCLICKW | | #define HDN_ITEMCLICK HDN_ITEMCLICKW |
#define HDN_ITEMDBLCLICK HDN_ITEMDBLCLICKW | | #define HDN_ITEMDBLCLICK HDN_ITEMDBLCLICKW |
#define HDN_DIVIDERDBLCLICK HDN_DIVIDERDBLCLICKW | | #define HDN_DIVIDERDBLCLICK HDN_DIVIDERDBLCLICKW |
#define HDN_BEGINTRACK HDN_BEGINTRACKW | | #define HDN_BEGINTRACK HDN_BEGINTRACKW |
#define HDN_ENDTRACK HDN_ENDTRACKW | | #define HDN_ENDTRACK HDN_ENDTRACKW |
#define HDN_TRACK HDN_TRACKW | | #define HDN_TRACK HDN_TRACKW |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
| | |
skipping to change at line 1155 | | skipping to change at line 1306 |
COLORREF from; | | COLORREF from; |
COLORREF to; | | COLORREF to; |
} COLORMAP, *LPCOLORMAP; | | } COLORMAP, *LPCOLORMAP; |
| | |
WINCOMMCTRLAPI HWND WINAPI CreateToolbarEx(HWND hwnd, DWORD ws, UINT wID, int nB
itmaps, | | WINCOMMCTRLAPI HWND WINAPI CreateToolbarEx(HWND hwnd, DWORD ws, UINT wID, int nB
itmaps, |
HINSTANCE hBMInst, UINT_PTR wBMID, LPCTBBUTTON lpButtons
, | | HINSTANCE hBMInst, UINT_PTR wBMID, LPCTBBUTTON lpButtons
, |
int iNumButtons, int dxButton, int dyButton, | | int iNumButtons, int dxButton, int dyButton, |
int dxBitmap, int dyBitmap, UINT uStructSize); | | int dxBitmap, int dyBitmap, UINT uStructSize); |
| | |
WINCOMMCTRLAPI HBITMAP WINAPI CreateMappedBitmap(HINSTANCE hInstance, INT_PTR id
Bitmap, | | WINCOMMCTRLAPI HBITMAP WINAPI CreateMappedBitmap(HINSTANCE hInstance, INT_PTR id
Bitmap, |
|
UINT wFlags, LPCOLORMAP lpColorMap, | | UINT wFlags, __in_opt LPCOLORMAP lpColorMap, |
int iNumMaps); | | int iNumMaps); |
| | |
#define CMB_MASKED 0x02 | | #define CMB_MASKED 0x02 |
#define TBSTATE_CHECKED 0x01 | | #define TBSTATE_CHECKED 0x01 |
#define TBSTATE_PRESSED 0x02 | | #define TBSTATE_PRESSED 0x02 |
#define TBSTATE_ENABLED 0x04 | | #define TBSTATE_ENABLED 0x04 |
#define TBSTATE_HIDDEN 0x08 | | #define TBSTATE_HIDDEN 0x08 |
#define TBSTATE_INDETERMINATE 0x10 | | #define TBSTATE_INDETERMINATE 0x10 |
#define TBSTATE_WRAP 0x20 | | #define TBSTATE_WRAP 0x20 |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define TBSTATE_ELLIPSES 0x40 | | #define TBSTATE_ELLIPSES 0x40 |
#endif | | #endif |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
#define TBSTATE_MARKED 0x80 | | #define TBSTATE_MARKED 0x80 |
#endif | | #endif |
| | |
|
| | // begin_r_commctrl |
| | |
#define TBSTYLE_BUTTON 0x0000 // obsolete; use BTNS_BUTTON instead | | #define TBSTYLE_BUTTON 0x0000 // obsolete; use BTNS_BUTTON instead |
#define TBSTYLE_SEP 0x0001 // obsolete; use BTNS_SEP instead | | #define TBSTYLE_SEP 0x0001 // obsolete; use BTNS_SEP instead |
#define TBSTYLE_CHECK 0x0002 // obsolete; use BTNS_CHECK instead | | #define TBSTYLE_CHECK 0x0002 // obsolete; use BTNS_CHECK instead |
#define TBSTYLE_GROUP 0x0004 // obsolete; use BTNS_GROUP instead | | #define TBSTYLE_GROUP 0x0004 // obsolete; use BTNS_GROUP instead |
#define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP | TBSTYLE_CHECK) // obsolete;
use BTNS_CHECKGROUP instead | | #define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP | TBSTYLE_CHECK) // obsolete;
use BTNS_CHECKGROUP instead |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define TBSTYLE_DROPDOWN 0x0008 // obsolete; use BTNS_DROPDOWN instead | | #define TBSTYLE_DROPDOWN 0x0008 // obsolete; use BTNS_DROPDOWN instead |
#endif | | #endif |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
#define TBSTYLE_AUTOSIZE 0x0010 // obsolete; use BTNS_AUTOSIZE instead | | #define TBSTYLE_AUTOSIZE 0x0010 // obsolete; use BTNS_AUTOSIZE instead |
| | |
skipping to change at line 1196 | | skipping to change at line 1349 |
#define TBSTYLE_WRAPABLE 0x0200 | | #define TBSTYLE_WRAPABLE 0x0200 |
#define TBSTYLE_ALTDRAG 0x0400 | | #define TBSTYLE_ALTDRAG 0x0400 |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define TBSTYLE_FLAT 0x0800 | | #define TBSTYLE_FLAT 0x0800 |
#define TBSTYLE_LIST 0x1000 | | #define TBSTYLE_LIST 0x1000 |
#define TBSTYLE_CUSTOMERASE 0x2000 | | #define TBSTYLE_CUSTOMERASE 0x2000 |
#endif | | #endif |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
#define TBSTYLE_REGISTERDROP 0x4000 | | #define TBSTYLE_REGISTERDROP 0x4000 |
#define TBSTYLE_TRANSPARENT 0x8000 | | #define TBSTYLE_TRANSPARENT 0x8000 |
|
| | |
| | // end_r_commctrl |
| | |
#define TBSTYLE_EX_DRAWDDARROWS 0x00000001 | | #define TBSTYLE_EX_DRAWDDARROWS 0x00000001 |
|
| | |
| | // begin_r_commctrl |
#endif | | #endif |
| | |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
#define BTNS_BUTTON TBSTYLE_BUTTON // 0x0000 | | #define BTNS_BUTTON TBSTYLE_BUTTON // 0x0000 |
#define BTNS_SEP TBSTYLE_SEP // 0x0001 | | #define BTNS_SEP TBSTYLE_SEP // 0x0001 |
#define BTNS_CHECK TBSTYLE_CHECK // 0x0002 | | #define BTNS_CHECK TBSTYLE_CHECK // 0x0002 |
#define BTNS_GROUP TBSTYLE_GROUP // 0x0004 | | #define BTNS_GROUP TBSTYLE_GROUP // 0x0004 |
#define BTNS_CHECKGROUP TBSTYLE_CHECKGROUP // (TBSTYLE_GROUP | TBSTYLE_CHECK) | | #define BTNS_CHECKGROUP TBSTYLE_CHECKGROUP // (TBSTYLE_GROUP | TBSTYLE_CHECK) |
#define BTNS_DROPDOWN TBSTYLE_DROPDOWN // 0x0008 | | #define BTNS_DROPDOWN TBSTYLE_DROPDOWN // 0x0008 |
#define BTNS_AUTOSIZE TBSTYLE_AUTOSIZE // 0x0010; automatically calculate t
he cx of the button | | #define BTNS_AUTOSIZE TBSTYLE_AUTOSIZE // 0x0010; automatically calculate t
he cx of the button |
#define BTNS_NOPREFIX TBSTYLE_NOPREFIX // 0x0020; this button should not ha
ve accel prefix | | #define BTNS_NOPREFIX TBSTYLE_NOPREFIX // 0x0020; this button should not ha
ve accel prefix |
#if (_WIN32_IE >= 0x0501) | | #if (_WIN32_IE >= 0x0501) |
#define BTNS_SHOWTEXT 0x0040 // ignored unless TBSTYLE_EX_MIXEDBU
TTONS is set | | #define BTNS_SHOWTEXT 0x0040 // ignored unless TBSTYLE_EX_MIXEDBU
TTONS is set |
#endif // 0x0501 | | #endif // 0x0501 |
#define BTNS_WHOLEDROPDOWN 0x0080 // draw drop-down arrow, but without
split arrow section | | #define BTNS_WHOLEDROPDOWN 0x0080 // draw drop-down arrow, but without
split arrow section |
#endif | | #endif |
| | |
|
| | // end_r_commctrl |
| | |
#if (_WIN32_IE >= 0x0501) | | #if (_WIN32_IE >= 0x0501) |
#define TBSTYLE_EX_MIXEDBUTTONS 0x00000008 | | #define TBSTYLE_EX_MIXEDBUTTONS 0x00000008 |
#define TBSTYLE_EX_HIDECLIPPEDBUTTONS 0x00000010 // don't show partially
obscured buttons | | #define TBSTYLE_EX_HIDECLIPPEDBUTTONS 0x00000010 // don't show partially
obscured buttons |
#endif // 0x0501 | | #endif // 0x0501 |
| | |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define TBSTYLE_EX_DOUBLEBUFFER 0x00000080 // Double Buffer the tool
bar | | #define TBSTYLE_EX_DOUBLEBUFFER 0x00000080 // Double Buffer the tool
bar |
#endif | | #endif |
| | |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
// Custom Draw Structure | | // Custom Draw Structure |
typedef struct _NMTBCUSTOMDRAW { | | typedef struct _NMTBCUSTOMDRAW { |
NMCUSTOMDRAW nmcd; | | NMCUSTOMDRAW nmcd; |
HBRUSH hbrMonoDither; | | HBRUSH hbrMonoDither; |
HBRUSH hbrLines; // For drawing lines on buttons | | HBRUSH hbrLines; // For drawing lines on buttons |
HPEN hpenLines; // For drawing lines on buttons | | HPEN hpenLines; // For drawing lines on buttons |
| | |
skipping to change at line 1242 | | skipping to change at line 1402 |
COLORREF clrMark; // Color of text bk when marked. (only if TB
STATE_MARKED) | | COLORREF clrMark; // Color of text bk when marked. (only if TB
STATE_MARKED) |
COLORREF clrTextHighlight; // Color of text when highlighted | | COLORREF clrTextHighlight; // Color of text when highlighted |
COLORREF clrBtnFace; // Background of the button | | COLORREF clrBtnFace; // Background of the button |
COLORREF clrBtnHighlight; // 3D highlight | | COLORREF clrBtnHighlight; // 3D highlight |
COLORREF clrHighlightHotTrack; // In conjunction with fHighlightHotTrack | | COLORREF clrHighlightHotTrack; // In conjunction with fHighlightHotTrack |
// will cause button to highlight like a men
u | | // will cause button to highlight like a men
u |
RECT rcText; // Rect for text | | RECT rcText; // Rect for text |
| | |
int nStringBkMode; | | int nStringBkMode; |
int nHLStringBkMode; | | int nHLStringBkMode; |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
int iListGap; | | int iListGap; |
#endif | | #endif |
} NMTBCUSTOMDRAW, * LPNMTBCUSTOMDRAW; | | } NMTBCUSTOMDRAW, * LPNMTBCUSTOMDRAW; |
| | |
// Toolbar custom draw return flags | | // Toolbar custom draw return flags |
#define TBCDRF_NOEDGES 0x00010000 // Don't draw button edges | | #define TBCDRF_NOEDGES 0x00010000 // Don't draw button edges |
#define TBCDRF_HILITEHOTTRACK 0x00020000 // Use color of the button bk wh
en hottracked | | #define TBCDRF_HILITEHOTTRACK 0x00020000 // Use color of the button bk wh
en hottracked |
#define TBCDRF_NOOFFSET 0x00040000 // Don't offset button if presse
d | | #define TBCDRF_NOOFFSET 0x00040000 // Don't offset button if presse
d |
#define TBCDRF_NOMARK 0x00080000 // Don't draw default highlight
of image/text for TBSTATE_MARKED | | #define TBCDRF_NOMARK 0x00080000 // Don't draw default highlight
of image/text for TBSTATE_MARKED |
#define TBCDRF_NOETCHEDEFFECT 0x00100000 // Don't draw etched effect for
disabled items | | #define TBCDRF_NOETCHEDEFFECT 0x00100000 // Don't draw etched effect for
disabled items |
#endif | | #endif |
| | |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
#define TBCDRF_BLENDICON 0x00200000 // Use ILD_BLEND50 on the icon i
mage | | #define TBCDRF_BLENDICON 0x00200000 // Use ILD_BLEND50 on the icon i
mage |
#define TBCDRF_NOBACKGROUND 0x00400000 // Use ILD_BLEND50 on the icon i
mage | | #define TBCDRF_NOBACKGROUND 0x00400000 // Use ILD_BLEND50 on the icon i
mage |
#endif | | #endif |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | #define TBCDRF_USECDCOLORS 0x00800000 // Use CustomDrawColors to Rende |
| | rText regardless of VisualStyle |
| | #endif |
| | |
#define TB_ENABLEBUTTON (WM_USER + 1) | | #define TB_ENABLEBUTTON (WM_USER + 1) |
#define TB_CHECKBUTTON (WM_USER + 2) | | #define TB_CHECKBUTTON (WM_USER + 2) |
#define TB_PRESSBUTTON (WM_USER + 3) | | #define TB_PRESSBUTTON (WM_USER + 3) |
#define TB_HIDEBUTTON (WM_USER + 4) | | #define TB_HIDEBUTTON (WM_USER + 4) |
#define TB_INDETERMINATE (WM_USER + 5) | | #define TB_INDETERMINATE (WM_USER + 5) |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
#define TB_MARKBUTTON (WM_USER + 6) | | #define TB_MARKBUTTON (WM_USER + 6) |
#endif | | #endif |
#define TB_ISBUTTONENABLED (WM_USER + 9) | | #define TB_ISBUTTONENABLED (WM_USER + 9) |
| | |
skipping to change at line 1295 | | skipping to change at line 1458 |
| | |
#define HINST_COMMCTRL ((HINSTANCE)-1) | | #define HINST_COMMCTRL ((HINSTANCE)-1) |
#define IDB_STD_SMALL_COLOR 0 | | #define IDB_STD_SMALL_COLOR 0 |
#define IDB_STD_LARGE_COLOR 1 | | #define IDB_STD_LARGE_COLOR 1 |
#define IDB_VIEW_SMALL_COLOR 4 | | #define IDB_VIEW_SMALL_COLOR 4 |
#define IDB_VIEW_LARGE_COLOR 5 | | #define IDB_VIEW_LARGE_COLOR 5 |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define IDB_HIST_SMALL_COLOR 8 | | #define IDB_HIST_SMALL_COLOR 8 |
#define IDB_HIST_LARGE_COLOR 9 | | #define IDB_HIST_LARGE_COLOR 9 |
#endif | | #endif |
|
| | #if (_WIN32_WINNT >= 0x600) |
| | #define IDB_HIST_NORMAL 12 |
| | #define IDB_HIST_HOT 13 |
| | #define IDB_HIST_DISABLED 14 |
| | #define IDB_HIST_PRESSED 15 |
| | #endif // _WIN32_WINNT >= 0x600 |
| | |
// icon indexes for standard bitmap | | // icon indexes for standard bitmap |
| | |
#define STD_CUT 0 | | #define STD_CUT 0 |
#define STD_COPY 1 | | #define STD_COPY 1 |
#define STD_PASTE 2 | | #define STD_PASTE 2 |
#define STD_UNDO 3 | | #define STD_UNDO 3 |
#define STD_REDOW 4 | | #define STD_REDOW 4 |
#define STD_DELETE 5 | | #define STD_DELETE 5 |
#define STD_FILENEW 6 | | #define STD_FILENEW 6 |
| | |
skipping to change at line 1575 | | skipping to change at line 1744 |
#define TB_GETSTRINGW (WM_USER + 91) | | #define TB_GETSTRINGW (WM_USER + 91) |
#define TB_GETSTRINGA (WM_USER + 92) | | #define TB_GETSTRINGA (WM_USER + 92) |
#ifdef UNICODE | | #ifdef UNICODE |
#define TB_GETSTRING TB_GETSTRINGW | | #define TB_GETSTRING TB_GETSTRINGW |
#else | | #else |
#define TB_GETSTRING TB_GETSTRINGA | | #define TB_GETSTRING TB_GETSTRINGA |
#endif | | #endif |
| | |
#endif // _WIN32_IE >= 0x0500 | | #endif // _WIN32_IE >= 0x0500 |
| | |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define TBMF_PAD 0x00000001 | | #define TBMF_PAD 0x00000001 |
#define TBMF_BARPAD 0x00000002 | | #define TBMF_BARPAD 0x00000002 |
#define TBMF_BUTTONSPACING 0x00000004 | | #define TBMF_BUTTONSPACING 0x00000004 |
| | |
typedef struct { | | typedef struct { |
UINT cbSize; | | UINT cbSize; |
DWORD dwMask; | | DWORD dwMask; |
| | |
int cxPad; // PAD | | int cxPad; // PAD |
int cyPad; | | int cyPad; |
int cxBarPad; // BARPAD | | int cxBarPad; // BARPAD |
int cyBarPad; | | int cyBarPad; |
int cxButtonSpacing; // BUTTONSPACING | | int cxButtonSpacing; // BUTTONSPACING |
int cyButtonSpacing; | | int cyButtonSpacing; |
} TBMETRICS, * LPTBMETRICS; | | } TBMETRICS, * LPTBMETRICS; |
| | |
#define TB_GETMETRICS (WM_USER + 101) | | #define TB_GETMETRICS (WM_USER + 101) |
#define TB_SETMETRICS (WM_USER + 102) | | #define TB_SETMETRICS (WM_USER + 102) |
#endif | | #endif |
| | |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x600) |
| | #define TB_SETPRESSEDIMAGELIST (WM_USER + 104) |
| | #define TB_GETPRESSEDIMAGELIST (WM_USER + 105) |
| | #endif // _WIN32_WINNT >= 0x600 |
| | |
| | #if (_WIN32_WINNT >= 0x0501) |
#define TB_SETWINDOWTHEME CCM_SETWINDOWTHEME | | #define TB_SETWINDOWTHEME CCM_SETWINDOWTHEME |
#endif | | #endif |
| | |
#define TBN_GETBUTTONINFOA (TBN_FIRST-0) | | #define TBN_GETBUTTONINFOA (TBN_FIRST-0) |
#define TBN_BEGINDRAG (TBN_FIRST-1) | | #define TBN_BEGINDRAG (TBN_FIRST-1) |
#define TBN_ENDDRAG (TBN_FIRST-2) | | #define TBN_ENDDRAG (TBN_FIRST-2) |
#define TBN_BEGINADJUST (TBN_FIRST-3) | | #define TBN_BEGINADJUST (TBN_FIRST-3) |
#define TBN_ENDADJUST (TBN_FIRST-4) | | #define TBN_ENDADJUST (TBN_FIRST-4) |
#define TBN_RESET (TBN_FIRST-5) | | #define TBN_RESET (TBN_FIRST-5) |
#define TBN_QUERYINSERT (TBN_FIRST-6) | | #define TBN_QUERYINSERT (TBN_FIRST-6) |
| | |
skipping to change at line 1829 | | skipping to change at line 2003 |
#ifdef UNICODE | | #ifdef UNICODE |
#define REBARCLASSNAME REBARCLASSNAMEW | | #define REBARCLASSNAME REBARCLASSNAMEW |
#else | | #else |
#define REBARCLASSNAME REBARCLASSNAMEA | | #define REBARCLASSNAME REBARCLASSNAMEA |
#endif | | #endif |
| | |
#else | | #else |
#define REBARCLASSNAME "ReBarWindow" | | #define REBARCLASSNAME "ReBarWindow" |
#endif | | #endif |
| | |
|
#define RBIM_IMAGELIST 0x00000001 | | #define RBIM_IMAGELIST 0x00000001 |
| | |
// begin_r_commctrl | | // begin_r_commctrl |
| | |
|
| | #define RBS_TOOLTIPS 0x00000100 |
| | #define RBS_VARHEIGHT 0x00000200 |
| | #define RBS_BANDBORDERS 0x00000400 |
| | #define RBS_FIXEDORDER 0x00000800 |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
|
#define RBS_TOOLTIPS 0x0100 | | #define RBS_REGISTERDROP 0x00001000 |
#define RBS_VARHEIGHT 0x0200 | | #define RBS_AUTOSIZE 0x00002000 |
#define RBS_BANDBORDERS 0x0400 | | #define RBS_VERTICALGRIPPER 0x00004000 // this always has the vertica |
#define RBS_FIXEDORDER 0x0800 | | l gripper (default for horizontal mode) |
#define RBS_REGISTERDROP 0x1000 | | #define RBS_DBLCLKTOGGLE 0x00008000 |
#define RBS_AUTOSIZE 0x2000 | | |
#define RBS_VERTICALGRIPPER 0x4000 // this always has the vertical gripper (def | | |
ault for horizontal mode) | | |
#define RBS_DBLCLKTOGGLE 0x8000 | | |
#else | | |
#define RBS_TOOLTIPS 0x00000100 | | |
#define RBS_VARHEIGHT 0x00000200 | | |
#define RBS_BANDBORDERS 0x00000400 | | |
#define RBS_FIXEDORDER 0x00000800 | | |
#endif // _WIN32_IE >= 0x0400 | | #endif // _WIN32_IE >= 0x0400 |
| | |
// end_r_commctrl | | // end_r_commctrl |
| | |
typedef struct tagREBARINFO | | typedef struct tagREBARINFO |
{ | | { |
UINT cbSize; | | UINT cbSize; |
UINT fMask; | | UINT fMask; |
#ifndef NOIMAGEAPIS | | #ifndef NOIMAGEAPIS |
HIMAGELIST himl; | | HIMAGELIST himl; |
| | |
skipping to change at line 1876 | | skipping to change at line 2045 |
#define RBBS_NOVERT 0x00000010 // don't show when vertical | | #define RBBS_NOVERT 0x00000010 // don't show when vertical |
#define RBBS_FIXEDBMP 0x00000020 // bitmap doesn't move during band resiz
e | | #define RBBS_FIXEDBMP 0x00000020 // bitmap doesn't move during band resiz
e |
#if (_WIN32_IE >= 0x0400) // | | #if (_WIN32_IE >= 0x0400) // |
#define RBBS_VARIABLEHEIGHT 0x00000040 // allow autosizing of this child vertic
ally | | #define RBBS_VARIABLEHEIGHT 0x00000040 // allow autosizing of this child vertic
ally |
#define RBBS_GRIPPERALWAYS 0x00000080 // always show the gripper | | #define RBBS_GRIPPERALWAYS 0x00000080 // always show the gripper |
#define RBBS_NOGRIPPER 0x00000100 // never show the gripper | | #define RBBS_NOGRIPPER 0x00000100 // never show the gripper |
#if (_WIN32_IE >= 0x0500) // | | #if (_WIN32_IE >= 0x0500) // |
#define RBBS_USECHEVRON 0x00000200 // display drop-down button for this ban
d if it's sized smaller than ideal width | | #define RBBS_USECHEVRON 0x00000200 // display drop-down button for this ban
d if it's sized smaller than ideal width |
#if (_WIN32_IE >= 0x0501) // | | #if (_WIN32_IE >= 0x0501) // |
#define RBBS_HIDETITLE 0x00000400 // keep band title hidden | | #define RBBS_HIDETITLE 0x00000400 // keep band title hidden |
|
#define RBBS_TOPALIGN 0x00000800 // keep band title hidden | | #define RBBS_TOPALIGN 0x00000800 // keep band in top row |
#endif // 0x0501 // | | #endif // 0x0501 // |
#endif // 0x0500 // | | #endif // 0x0500 // |
#endif // 0x0400 // | | #endif // 0x0400 // |
|
| | #if (_WIN32_WINNT >= 0x0600) |
| | #endif |
| | |
#define RBBIM_STYLE 0x00000001 | | #define RBBIM_STYLE 0x00000001 |
#define RBBIM_COLORS 0x00000002 | | #define RBBIM_COLORS 0x00000002 |
#define RBBIM_TEXT 0x00000004 | | #define RBBIM_TEXT 0x00000004 |
#define RBBIM_IMAGE 0x00000008 | | #define RBBIM_IMAGE 0x00000008 |
#define RBBIM_CHILD 0x00000010 | | #define RBBIM_CHILD 0x00000010 |
#define RBBIM_CHILDSIZE 0x00000020 | | #define RBBIM_CHILDSIZE 0x00000020 |
#define RBBIM_SIZE 0x00000040 | | #define RBBIM_SIZE 0x00000040 |
#define RBBIM_BACKGROUND 0x00000080 | | #define RBBIM_BACKGROUND 0x00000080 |
#define RBBIM_ID 0x00000100 | | #define RBBIM_ID 0x00000100 |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
#define RBBIM_IDEALSIZE 0x00000200 | | #define RBBIM_IDEALSIZE 0x00000200 |
#define RBBIM_LPARAM 0x00000400 | | #define RBBIM_LPARAM 0x00000400 |
#define RBBIM_HEADERSIZE 0x00000800 // control the size of the header | | #define RBBIM_HEADERSIZE 0x00000800 // control the size of the header |
#endif | | #endif |
|
| | #if (_WIN32_WINNT >= 0x0600) |
| | #define RBBIM_CHEVRONLOCATION 0x00001000 |
| | #define RBBIM_CHEVRONSTATE 0x00002000 |
| | #endif |
| | |
typedef struct tagREBARBANDINFOA | | typedef struct tagREBARBANDINFOA |
{ | | { |
UINT cbSize; | | UINT cbSize; |
UINT fMask; | | UINT fMask; |
UINT fStyle; | | UINT fStyle; |
COLORREF clrFore; | | COLORREF clrFore; |
COLORREF clrBack; | | COLORREF clrBack; |
LPSTR lpText; | | LPSTR lpText; |
UINT cch; | | UINT cch; |
| | |
skipping to change at line 1920 | | skipping to change at line 2095 |
HBITMAP hbmBack; | | HBITMAP hbmBack; |
UINT wID; | | UINT wID; |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
UINT cyChild; | | UINT cyChild; |
UINT cyMaxChild; | | UINT cyMaxChild; |
UINT cyIntegral; | | UINT cyIntegral; |
UINT cxIdeal; | | UINT cxIdeal; |
LPARAM lParam; | | LPARAM lParam; |
UINT cxHeader; | | UINT cxHeader; |
#endif | | #endif |
|
| | #if (_WIN32_WINNT >= 0x0600) |
| | RECT rcChevronLocation; // the rect is in client co-ord wrt hwndChil |
| | d |
| | UINT uChevronState; // STATE_SYSTEM_* |
| | #endif |
} REBARBANDINFOA, *LPREBARBANDINFOA; | | } REBARBANDINFOA, *LPREBARBANDINFOA; |
typedef REBARBANDINFOA CONST *LPCREBARBANDINFOA; | | typedef REBARBANDINFOA CONST *LPCREBARBANDINFOA; |
| | |
#define REBARBANDINFOA_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOA, wID) | | #define REBARBANDINFOA_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOA, wID) |
#define REBARBANDINFOW_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOW, wID) | | #define REBARBANDINFOW_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOW, wID) |
| | |
|
| | #define REBARBANDINFOA_V6_SIZE CCSIZEOF_STRUCT(REBARBANDINFOA, cxHeader) |
| | #define REBARBANDINFOW_V6_SIZE CCSIZEOF_STRUCT(REBARBANDINFOW, cxHeader) |
| | |
typedef struct tagREBARBANDINFOW | | typedef struct tagREBARBANDINFOW |
{ | | { |
UINT cbSize; | | UINT cbSize; |
UINT fMask; | | UINT fMask; |
UINT fStyle; | | UINT fStyle; |
COLORREF clrFore; | | COLORREF clrFore; |
COLORREF clrBack; | | COLORREF clrBack; |
LPWSTR lpText; | | LPWSTR lpText; |
UINT cch; | | UINT cch; |
int iImage; | | int iImage; |
| | |
skipping to change at line 1950 | | skipping to change at line 2132 |
HBITMAP hbmBack; | | HBITMAP hbmBack; |
UINT wID; | | UINT wID; |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
UINT cyChild; | | UINT cyChild; |
UINT cyMaxChild; | | UINT cyMaxChild; |
UINT cyIntegral; | | UINT cyIntegral; |
UINT cxIdeal; | | UINT cxIdeal; |
LPARAM lParam; | | LPARAM lParam; |
UINT cxHeader; | | UINT cxHeader; |
#endif | | #endif |
|
| | #if (_WIN32_WINNT >= 0x0600) |
| | RECT rcChevronLocation; // the rect is in client co-ord wrt hwndCh |
| | ild |
| | UINT uChevronState; // STATE_SYSTEM_* |
| | #endif |
} REBARBANDINFOW, *LPREBARBANDINFOW; | | } REBARBANDINFOW, *LPREBARBANDINFOW; |
typedef REBARBANDINFOW CONST *LPCREBARBANDINFOW; | | typedef REBARBANDINFOW CONST *LPCREBARBANDINFOW; |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
#define REBARBANDINFO REBARBANDINFOW | | #define REBARBANDINFO REBARBANDINFOW |
#define LPREBARBANDINFO LPREBARBANDINFOW | | #define LPREBARBANDINFO LPREBARBANDINFOW |
#define LPCREBARBANDINFO LPCREBARBANDINFOW | | #define LPCREBARBANDINFO LPCREBARBANDINFOW |
#define REBARBANDINFO_V3_SIZE REBARBANDINFOW_V3_SIZE | | #define REBARBANDINFO_V3_SIZE REBARBANDINFOW_V3_SIZE |
|
| | #define REBARBANDINFO_V6_SIZE REBARBANDINFOW_V6_SIZE |
#else | | #else |
#define REBARBANDINFO REBARBANDINFOA | | #define REBARBANDINFO REBARBANDINFOA |
#define LPREBARBANDINFO LPREBARBANDINFOA | | #define LPREBARBANDINFO LPREBARBANDINFOA |
#define LPCREBARBANDINFO LPCREBARBANDINFOA | | #define LPCREBARBANDINFO LPCREBARBANDINFOA |
#define REBARBANDINFO_V3_SIZE REBARBANDINFOA_V3_SIZE | | #define REBARBANDINFO_V3_SIZE REBARBANDINFOA_V3_SIZE |
|
| | #define REBARBANDINFO_V6_SIZE REBARBANDINFOA_V6_SIZE |
#endif | | #endif |
| | |
#define RB_INSERTBANDA (WM_USER + 1) | | #define RB_INSERTBANDA (WM_USER + 1) |
#define RB_DELETEBAND (WM_USER + 2) | | #define RB_DELETEBAND (WM_USER + 2) |
#define RB_GETBARINFO (WM_USER + 3) | | #define RB_GETBARINFO (WM_USER + 3) |
#define RB_SETBARINFO (WM_USER + 4) | | #define RB_SETBARINFO (WM_USER + 4) |
#if (_WIN32_IE < 0x0400) | | #if (_WIN32_IE < 0x0400) |
#define RB_GETBANDINFO (WM_USER + 5) | | #define RB_GETBANDINFO (WM_USER + 5) |
#endif | | #endif |
#define RB_SETBANDINFOA (WM_USER + 6) | | #define RB_SETBANDINFOA (WM_USER + 6) |
| | |
skipping to change at line 2045 | | skipping to change at line 2233 |
#define RB_SHOWBAND (WM_USER + 35) // show/hide band | | #define RB_SHOWBAND (WM_USER + 35) // show/hide band |
#define RB_SETPALETTE (WM_USER + 37) | | #define RB_SETPALETTE (WM_USER + 37) |
#define RB_GETPALETTE (WM_USER + 38) | | #define RB_GETPALETTE (WM_USER + 38) |
#define RB_MOVEBAND (WM_USER + 39) | | #define RB_MOVEBAND (WM_USER + 39) |
| | |
#define RB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT | | #define RB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT |
#define RB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT | | #define RB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT |
| | |
#endif // _WIN32_IE >= 0x0400 | | #endif // _WIN32_IE >= 0x0400 |
| | |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define RB_GETBANDMARGINS (WM_USER + 40) | | #define RB_GETBANDMARGINS (WM_USER + 40) |
#define RB_SETWINDOWTHEME CCM_SETWINDOWTHEME | | #define RB_SETWINDOWTHEME CCM_SETWINDOWTHEME |
#endif | | #endif |
| | |
|
| | #if (_WIN32_IE >= 0x0600) |
| | #define RB_SETEXTENDEDSTYLE (WM_USER + 41) |
| | #define RB_GETEXTENDEDSTYLE (WM_USER + 42) |
| | #endif // _WIN32_IE >= 0x0600 |
| | |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
|
#define RB_PUSHCHEVRON (WM_USER + 43) | | #define RB_PUSHCHEVRON (WM_USER + 43) |
#endif // _WIN32_IE >= 0x0500 | | #endif // _WIN32_IE >= 0x0500 |
| | |
|
| | #if (_WIN32_WINNT >= 0x0600) |
| | #define RB_SETBANDWIDTH (WM_USER + 44) // set width for docked band |
| | #endif // _WIN32_WINNT >= 0x0600 |
| | |
#define RBN_HEIGHTCHANGE (RBN_FIRST - 0) | | #define RBN_HEIGHTCHANGE (RBN_FIRST - 0) |
| | |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
#define RBN_GETOBJECT (RBN_FIRST - 1) | | #define RBN_GETOBJECT (RBN_FIRST - 1) |
#define RBN_LAYOUTCHANGED (RBN_FIRST - 2) | | #define RBN_LAYOUTCHANGED (RBN_FIRST - 2) |
#define RBN_AUTOSIZE (RBN_FIRST - 3) | | #define RBN_AUTOSIZE (RBN_FIRST - 3) |
#define RBN_BEGINDRAG (RBN_FIRST - 4) | | #define RBN_BEGINDRAG (RBN_FIRST - 4) |
#define RBN_ENDDRAG (RBN_FIRST - 5) | | #define RBN_ENDDRAG (RBN_FIRST - 5) |
#define RBN_DELETINGBAND (RBN_FIRST - 6) // Uses NMREBAR | | #define RBN_DELETINGBAND (RBN_FIRST - 6) // Uses NMREBAR |
#define RBN_DELETEDBAND (RBN_FIRST - 7) // Uses NMREBAR | | #define RBN_DELETEDBAND (RBN_FIRST - 7) // Uses NMREBAR |
#define RBN_CHILDSIZE (RBN_FIRST - 8) | | #define RBN_CHILDSIZE (RBN_FIRST - 8) |
| | |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
#define RBN_CHEVRONPUSHED (RBN_FIRST - 10) | | #define RBN_CHEVRONPUSHED (RBN_FIRST - 10) |
#endif // _WIN32_IE >= 0x0500 | | #endif // _WIN32_IE >= 0x0500 |
| | |
|
| | #if (_WIN32_IE >= 0x0600) |
| | #define RBN_SPLITTERDRAG (RBN_FIRST - 11) |
| | #endif // _WIN32_IE >= 0x0600 |
| | |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
#define RBN_MINMAX (RBN_FIRST - 21) | | #define RBN_MINMAX (RBN_FIRST - 21) |
#endif | | #endif |
| | |
#if (_WIN32_WINNT >= 0x0501) | | #if (_WIN32_WINNT >= 0x0501) |
#define RBN_AUTOBREAK (RBN_FIRST - 22) | | #define RBN_AUTOBREAK (RBN_FIRST - 22) |
#endif | | #endif |
| | |
typedef struct tagNMREBARCHILDSIZE | | typedef struct tagNMREBARCHILDSIZE |
{ | | { |
| | |
skipping to change at line 2122 | | skipping to change at line 2323 |
{ | | { |
NMHDR hdr; | | NMHDR hdr; |
UINT uBand; | | UINT uBand; |
UINT wID; | | UINT wID; |
LPARAM lParam; | | LPARAM lParam; |
RECT rc; | | RECT rc; |
LPARAM lParamNM; | | LPARAM lParamNM; |
} NMREBARCHEVRON, *LPNMREBARCHEVRON; | | } NMREBARCHEVRON, *LPNMREBARCHEVRON; |
#endif | | #endif |
| | |
|
| | #if (_WIN32_IE >= 0x0600) |
| | typedef struct tagNMREBARSPLITTER |
| | { |
| | NMHDR hdr; |
| | RECT rcSizing; |
| | } NMREBARSPLITTER, *LPNMREBARSPLITTER; |
| | #endif |
| | |
#if (_WIN32_WINNT >= 0x0501) | | #if (_WIN32_WINNT >= 0x0501) |
#define RBAB_AUTOSIZE 0x0001 // These are not flags and are all mutually exc
lusive | | #define RBAB_AUTOSIZE 0x0001 // These are not flags and are all mutually exc
lusive |
#define RBAB_ADDBAND 0x0002 | | #define RBAB_ADDBAND 0x0002 |
| | |
typedef struct tagNMREBARAUTOBREAK | | typedef struct tagNMREBARAUTOBREAK |
{ | | { |
NMHDR hdr; | | NMHDR hdr; |
UINT uBand; | | UINT uBand; |
UINT wID; | | UINT wID; |
LPARAM lParam; | | LPARAM lParam; |
| | |
skipping to change at line 2145 | | skipping to change at line 2354 |
} NMREBARAUTOBREAK, *LPNMREBARAUTOBREAK; | | } NMREBARAUTOBREAK, *LPNMREBARAUTOBREAK; |
#endif | | #endif |
| | |
#define RBHT_NOWHERE 0x0001 | | #define RBHT_NOWHERE 0x0001 |
#define RBHT_CAPTION 0x0002 | | #define RBHT_CAPTION 0x0002 |
#define RBHT_CLIENT 0x0003 | | #define RBHT_CLIENT 0x0003 |
#define RBHT_GRABBER 0x0004 | | #define RBHT_GRABBER 0x0004 |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
#define RBHT_CHEVRON 0x0008 | | #define RBHT_CHEVRON 0x0008 |
#endif | | #endif |
|
| | #if (_WIN32_IE >= 0x0600) |
| | #define RBHT_SPLITTER 0x0010 |
| | #endif |
| | |
typedef struct _RB_HITTESTINFO | | typedef struct _RB_HITTESTINFO |
{ | | { |
POINT pt; | | POINT pt; |
UINT flags; | | UINT flags; |
int iBand; | | int iBand; |
} RBHITTESTINFO, *LPRBHITTESTINFO; | | } RBHITTESTINFO, *LPRBHITTESTINFO; |
| | |
#endif // _WIN32_IE >= 0x0400 | | #endif // _WIN32_IE >= 0x0400 |
| | |
| | |
skipping to change at line 2254 | | skipping to change at line 2466 |
// begin_r_commctrl | | // begin_r_commctrl |
| | |
#define TTS_ALWAYSTIP 0x01 | | #define TTS_ALWAYSTIP 0x01 |
#define TTS_NOPREFIX 0x02 | | #define TTS_NOPREFIX 0x02 |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
#define TTS_NOANIMATE 0x10 | | #define TTS_NOANIMATE 0x10 |
#define TTS_NOFADE 0x20 | | #define TTS_NOFADE 0x20 |
#define TTS_BALLOON 0x40 | | #define TTS_BALLOON 0x40 |
#define TTS_CLOSE 0x80 | | #define TTS_CLOSE 0x80 |
#endif | | #endif |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | #define TTS_USEVISUALSTYLE 0x100 // Use themed hyperlinks |
| | |
| | #endif |
| | |
// end_r_commctrl | | // end_r_commctrl |
| | |
#define TTF_IDISHWND 0x0001 | | #define TTF_IDISHWND 0x0001 |
| | |
// Use this to center around trackpoint in trackmode | | // Use this to center around trackpoint in trackmode |
// -OR- to center around tool in normal mode. | | // -OR- to center around tool in normal mode. |
// Use TTF_ABSOLUTE to place the tip exactly at the track coords when | | // Use TTF_ABSOLUTE to place the tip exactly at the track coords when |
// in tracking mode. TTF_ABSOLUTE can be used in conjunction with TTF_CENTERTIP | | // in tracking mode. TTF_ABSOLUTE can be used in conjunction with TTF_CENTERTIP |
// to center the tip absolutely about the track point. | | // to center the tip absolutely about the track point. |
| | |
skipping to change at line 2283 | | skipping to change at line 2499 |
#define TTF_PARSELINKS 0x1000 | | #define TTF_PARSELINKS 0x1000 |
#endif // _WIN32_IE >= 0x0501 | | #endif // _WIN32_IE >= 0x0501 |
#define TTF_DI_SETITEM 0x8000 // valid only on the TTN_NEEDTEXT c
allback | | #define TTF_DI_SETITEM 0x8000 // valid only on the TTN_NEEDTEXT c
allback |
#endif // _WIN32_IE >= 0x0300 | | #endif // _WIN32_IE >= 0x0300 |
| | |
#define TTDT_AUTOMATIC 0 | | #define TTDT_AUTOMATIC 0 |
#define TTDT_RESHOW 1 | | #define TTDT_RESHOW 1 |
#define TTDT_AUTOPOP 2 | | #define TTDT_AUTOPOP 2 |
#define TTDT_INITIAL 3 | | #define TTDT_INITIAL 3 |
| | |
|
// ToolTip Icons possible wParam values for TTM_SETTITLE message | | // ToolTip Icons (Set with TTM_SETTITLE) |
#define TTI_NONE 0 | | #define TTI_NONE 0 |
#define TTI_INFO 1 | | #define TTI_INFO 1 |
#define TTI_WARNING 2 | | #define TTI_WARNING 2 |
#define TTI_ERROR 3 | | #define TTI_ERROR 3 |
|
// values larger thant TTI_ERROR are assumed to be an HICON value | | #if (_WIN32_WINNT >= 0x0600) |
| | #define TTI_INFO_LARGE 4 |
| | #define TTI_WARNING_LARGE 5 |
| | #define TTI_ERROR_LARGE 6 |
| | #endif // (_WIN32_WINNT >= 0x0600) |
| | |
// Tool Tip Messages | | // Tool Tip Messages |
#define TTM_ACTIVATE (WM_USER + 1) | | #define TTM_ACTIVATE (WM_USER + 1) |
#define TTM_SETDELAYTIME (WM_USER + 3) | | #define TTM_SETDELAYTIME (WM_USER + 3) |
#define TTM_ADDTOOLA (WM_USER + 4) | | #define TTM_ADDTOOLA (WM_USER + 4) |
#define TTM_ADDTOOLW (WM_USER + 50) | | #define TTM_ADDTOOLW (WM_USER + 50) |
#define TTM_DELTOOLA (WM_USER + 5) | | #define TTM_DELTOOLA (WM_USER + 5) |
#define TTM_DELTOOLW (WM_USER + 51) | | #define TTM_DELTOOLW (WM_USER + 51) |
#define TTM_NEWTOOLRECTA (WM_USER + 6) | | #define TTM_NEWTOOLRECTA (WM_USER + 6) |
#define TTM_NEWTOOLRECTW (WM_USER + 52) | | #define TTM_NEWTOOLRECTW (WM_USER + 52) |
| | |
skipping to change at line 2386 | | skipping to change at line 2606 |
#define TTM_HITTEST TTM_HITTESTA | | #define TTM_HITTEST TTM_HITTESTA |
#define TTM_GETTEXT TTM_GETTEXTA | | #define TTM_GETTEXT TTM_GETTEXTA |
#define TTM_UPDATETIPTEXT TTM_UPDATETIPTEXTA | | #define TTM_UPDATETIPTEXT TTM_UPDATETIPTEXTA |
#define TTM_ENUMTOOLS TTM_ENUMTOOLSA | | #define TTM_ENUMTOOLS TTM_ENUMTOOLSA |
#define TTM_GETCURRENTTOOL TTM_GETCURRENTTOOLA | | #define TTM_GETCURRENTTOOL TTM_GETCURRENTTOOLA |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
#define TTM_SETTITLE TTM_SETTITLEA | | #define TTM_SETTITLE TTM_SETTITLEA |
#endif | | #endif |
#endif | | #endif |
| | |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define TTM_SETWINDOWTHEME CCM_SETWINDOWTHEME | | #define TTM_SETWINDOWTHEME CCM_SETWINDOWTHEME |
#endif | | #endif |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define LPHITTESTINFOW LPTTHITTESTINFOW | | #define LPHITTESTINFOW LPTTHITTESTINFOW |
#define LPHITTESTINFOA LPTTHITTESTINFOA | | #define LPHITTESTINFOA LPTTHITTESTINFOA |
#else | | #else |
#define LPTTHITTESTINFOA LPHITTESTINFOA | | #define LPTTHITTESTINFOA LPHITTESTINFOA |
#define LPTTHITTESTINFOW LPHITTESTINFOW | | #define LPTTHITTESTINFOW LPHITTESTINFOW |
#endif | | #endif |
| | |
skipping to change at line 2508 | | skipping to change at line 2728 |
#define SBARS_TOOLTIPS 0x0800 | | #define SBARS_TOOLTIPS 0x0800 |
#endif | | #endif |
| | |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
// this is a status bar flag, preference to SBARS_TOOLTIPS | | // this is a status bar flag, preference to SBARS_TOOLTIPS |
#define SBT_TOOLTIPS 0x0800 | | #define SBT_TOOLTIPS 0x0800 |
#endif | | #endif |
| | |
// end_r_commctrl | | // end_r_commctrl |
| | |
|
WINCOMMCTRLAPI void WINAPI DrawStatusTextA(HDC hDC, LPRECT lprc, LPCSTR pszText, | | WINCOMMCTRLAPI void WINAPI DrawStatusTextA(HDC hDC, LPCRECT lprc, LPCSTR pszText |
UINT uFlags); | | , UINT uFlags); |
WINCOMMCTRLAPI void WINAPI DrawStatusTextW(HDC hDC, LPRECT lprc, LPCWSTR pszText | | WINCOMMCTRLAPI void WINAPI DrawStatusTextW(HDC hDC, LPCRECT lprc, LPCWSTR pszTex |
, UINT uFlags); | | t, UINT uFlags); |
| | |
WINCOMMCTRLAPI HWND WINAPI CreateStatusWindowA(LONG style, LPCSTR lpszText, HWND
hwndParent, UINT wID); | | WINCOMMCTRLAPI HWND WINAPI CreateStatusWindowA(LONG style, LPCSTR lpszText, HWND
hwndParent, UINT wID); |
WINCOMMCTRLAPI HWND WINAPI CreateStatusWindowW(LONG style, LPCWSTR lpszText, HWN
D hwndParent, UINT wID); | | WINCOMMCTRLAPI HWND WINAPI CreateStatusWindowW(LONG style, LPCWSTR lpszText, HWN
D hwndParent, UINT wID); |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
#define CreateStatusWindow CreateStatusWindowW | | #define CreateStatusWindow CreateStatusWindowW |
#define DrawStatusText DrawStatusTextW | | #define DrawStatusText DrawStatusTextW |
#else | | #else |
#define CreateStatusWindow CreateStatusWindowA | | #define CreateStatusWindow CreateStatusWindowA |
#define DrawStatusText DrawStatusTextA | | #define DrawStatusText DrawStatusTextA |
| | |
skipping to change at line 2591 | | skipping to change at line 2811 |
#define SBT_OWNERDRAW 0x1000 | | #define SBT_OWNERDRAW 0x1000 |
#define SBT_NOBORDERS 0x0100 | | #define SBT_NOBORDERS 0x0100 |
#define SBT_POPOUT 0x0200 | | #define SBT_POPOUT 0x0200 |
#define SBT_RTLREADING 0x0400 | | #define SBT_RTLREADING 0x0400 |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
#define SBT_NOTABPARSING 0x0800 | | #define SBT_NOTABPARSING 0x0800 |
#endif | | #endif |
| | |
#define SB_SETBKCOLOR CCM_SETBKCOLOR // lParam = bkColor | | #define SB_SETBKCOLOR CCM_SETBKCOLOR // lParam = bkColor |
| | |
|
/// status bar notifications | | // status bar notifications |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
#define SBN_SIMPLEMODECHANGE (SBN_FIRST - 0) | | #define SBN_SIMPLEMODECHANGE (SBN_FIRST - 0) |
#endif | | #endif |
| | |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
// refers to the data saved for simple mode | | // refers to the data saved for simple mode |
#define SB_SIMPLEID 0x00ff | | #define SB_SIMPLEID 0x00ff |
#endif | | #endif |
| | |
#endif // NOSTATUSBAR | | #endif // NOSTATUSBAR |
| | |
//====== MENU HELP ============================================================ | | //====== MENU HELP ============================================================ |
| | |
#ifndef NOMENUHELP | | #ifndef NOMENUHELP |
| | |
|
WINCOMMCTRLAPI void WINAPI MenuHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, HME | | WINCOMMCTRLAPI void WINAPI MenuHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, HME |
NU hMainMenu, HINSTANCE hInst, HWND hwndStatus, UINT *lpwIDs); | | NU hMainMenu, HINSTANCE hInst, HWND hwndStatus, __in_ecount(4) UINT *lpwIDs); |
WINCOMMCTRLAPI BOOL WINAPI ShowHideMenuCtl(HWND hWnd, UINT_PTR uFlags, LPINT lpI | | WINCOMMCTRLAPI BOOL WINAPI ShowHideMenuCtl(HWND hWnd, UINT_PTR uFlags, __in __nu |
nfo); | | llterminated LPINT lpInfo); |
WINCOMMCTRLAPI void WINAPI GetEffectiveClientRect(HWND hWnd, LPRECT lprc, LPINT | | WINCOMMCTRLAPI void WINAPI GetEffectiveClientRect(HWND hWnd, LPRECT lprc, __in |
lpInfo); | | __nullterminated const INT *lpInfo); |
| | |
#define MINSYSCOMMAND SC_SIZE | | #define MINSYSCOMMAND SC_SIZE |
| | |
#endif | | #endif |
| | |
//====== TRACKBAR CONTROL ===================================================== | | //====== TRACKBAR CONTROL ===================================================== |
| | |
#ifndef NOTRACKBAR | | #ifndef NOTRACKBAR |
| | |
#ifdef _WIN32 | | #ifdef _WIN32 |
| | |
skipping to change at line 2659 | | skipping to change at line 2879 |
#define TBS_TOOLTIPS 0x0100 | | #define TBS_TOOLTIPS 0x0100 |
#endif | | #endif |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
#define TBS_REVERSED 0x0200 // Accessibility hint: the smaller numbe
r (usually the min value) means "high" and the larger number (usually the max va
lue) means "low" | | #define TBS_REVERSED 0x0200 // Accessibility hint: the smaller numbe
r (usually the min value) means "high" and the larger number (usually the max va
lue) means "low" |
#endif | | #endif |
| | |
#if (_WIN32_IE >= 0x0501) | | #if (_WIN32_IE >= 0x0501) |
#define TBS_DOWNISLEFT 0x0400 // Down=Left and Up=Right (default is Do
wn=Right and Up=Left) | | #define TBS_DOWNISLEFT 0x0400 // Down=Left and Up=Right (default is Do
wn=Right and Up=Left) |
#endif | | #endif |
| | |
|
| | #if (_WIN32_IE >= 0x0600) |
| | #define TBS_NOTIFYBEFOREMOVE 0x0800 // Trackbar should notify parent before |
| | repositioning the slider due to user action (enables snapping) |
| | #endif |
| | |
| | #if (NTDDI_VERSION >= NTDDI_LONGHORN) |
| | #define TBS_TRANSPARENTBKGND 0x1000 // Background is painted by the parent v |
| | ia WM_PRINTCLIENT |
| | #endif |
| | |
// end_r_commctrl | | // end_r_commctrl |
| | |
#define TBM_GETPOS (WM_USER) | | #define TBM_GETPOS (WM_USER) |
#define TBM_GETRANGEMIN (WM_USER+1) | | #define TBM_GETRANGEMIN (WM_USER+1) |
#define TBM_GETRANGEMAX (WM_USER+2) | | #define TBM_GETRANGEMAX (WM_USER+2) |
#define TBM_GETTIC (WM_USER+3) | | #define TBM_GETTIC (WM_USER+3) |
#define TBM_SETTIC (WM_USER+4) | | #define TBM_SETTIC (WM_USER+4) |
#define TBM_SETPOS (WM_USER+5) | | #define TBM_SETPOS (WM_USER+5) |
#define TBM_SETRANGE (WM_USER+6) | | #define TBM_SETRANGE (WM_USER+6) |
#define TBM_SETRANGEMIN (WM_USER+7) | | #define TBM_SETRANGEMIN (WM_USER+7) |
| | |
skipping to change at line 2724 | | skipping to change at line 2952 |
#define TB_BOTTOM 7 | | #define TB_BOTTOM 7 |
#define TB_ENDTRACK 8 | | #define TB_ENDTRACK 8 |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
// custom draw item specs | | // custom draw item specs |
#define TBCD_TICS 0x0001 | | #define TBCD_TICS 0x0001 |
#define TBCD_THUMB 0x0002 | | #define TBCD_THUMB 0x0002 |
#define TBCD_CHANNEL 0x0003 | | #define TBCD_CHANNEL 0x0003 |
#endif | | #endif |
| | |
|
| | #if (_WIN32_WINNT >= 0x0600) |
| | #define TRBN_THUMBPOSCHANGING (TRBN_FIRST-1) |
| | |
| | // Structure for Trackbar's TRBN_THUMBPOSCHANGING notification |
| | typedef struct tagTRBTHUMBPOSCHANGING |
| | { |
| | NMHDR hdr; |
| | DWORD dwPos; |
| | int nReason; |
| | } NMTRBTHUMBPOSCHANGING; |
| | #endif |
| | |
#endif // trackbar | | #endif // trackbar |
| | |
//====== DRAG LIST CONTROL ==================================================== | | //====== DRAG LIST CONTROL ==================================================== |
| | |
#ifndef NODRAGLIST | | #ifndef NODRAGLIST |
| | |
typedef struct tagDRAGLISTINFO { | | typedef struct tagDRAGLISTINFO { |
UINT uNotification; | | UINT uNotification; |
HWND hWnd; | | HWND hWnd; |
POINT ptCursor; | | POINT ptCursor; |
| | |
skipping to change at line 2891 | | skipping to change at line 3131 |
int iHigh; | | int iHigh; |
} PBRANGE, *PPBRANGE; | | } PBRANGE, *PPBRANGE; |
#define PBM_GETRANGE (WM_USER+7) // wParam = return (TRUE ? low : hi
gh). lParam = PPBRANGE or NULL | | #define PBM_GETRANGE (WM_USER+7) // wParam = return (TRUE ? low : hi
gh). lParam = PPBRANGE or NULL |
#define PBM_GETPOS (WM_USER+8) | | #define PBM_GETPOS (WM_USER+8) |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
#define PBM_SETBARCOLOR (WM_USER+9) // lParam = bar color | | #define PBM_SETBARCOLOR (WM_USER+9) // lParam = bar color |
#endif // _WIN32_IE >= 0x0400 | | #endif // _WIN32_IE >= 0x0400 |
#define PBM_SETBKCOLOR CCM_SETBKCOLOR // lParam = bkColor | | #define PBM_SETBKCOLOR CCM_SETBKCOLOR // lParam = bkColor |
#endif // _WIN32_IE >= 0x0300 | | #endif // _WIN32_IE >= 0x0300 |
| | |
|
| | // begin_r_commctrl |
| | |
#if (_WIN32_WINNT >= 0x0501) | | #if (_WIN32_WINNT >= 0x0501) |
#define PBS_MARQUEE 0x08 | | #define PBS_MARQUEE 0x08 |
|
| | #endif // _WIN32_WINNT >= 0x0501 |
| | |
| | // end_r_commctrl |
| | |
| | #if (_WIN32_WINNT >= 0x0501) |
#define PBM_SETMARQUEE (WM_USER+10) | | #define PBM_SETMARQUEE (WM_USER+10) |
#endif // _WIN32_WINNT >= 0x0501 | | #endif // _WIN32_WINNT >= 0x0501 |
| | |
|
| | // begin_r_commctrl |
| | #if _WIN32_WINNT >= 0x0600 |
| | #define PBS_SMOOTHREVERSE 0x10 |
| | #endif // _WIN32_WINNT >= 0x0600 |
| | |
| | // end_r_commctrl |
| | |
| | #if _WIN32_WINNT >= 0x0600 |
| | |
| | #define PBM_GETSTEP (WM_USER+13) |
| | #define PBM_GETBKCOLOR (WM_USER+14) |
| | #define PBM_GETBARCOLOR (WM_USER+15) |
| | #define PBM_SETSTATE (WM_USER+16) // wParam = PBST_[State] (NORMAL, E |
| | RROR, PAUSED) |
| | #define PBM_GETSTATE (WM_USER+17) |
| | |
| | #define PBST_NORMAL 0x0001 |
| | #define PBST_ERROR 0x0002 |
| | #define PBST_PAUSED 0x0003 |
| | #endif // _WIN32_WINNT >= 0x0600 |
| | |
#endif // NOPROGRESS | | #endif // NOPROGRESS |
| | |
//====== HOTKEY CONTROL ======================================================= | | //====== HOTKEY CONTROL ======================================================= |
| | |
#ifndef NOHOTKEY | | #ifndef NOHOTKEY |
| | |
#define HOTKEYF_SHIFT 0x01 | | #define HOTKEYF_SHIFT 0x01 |
#define HOTKEYF_CONTROL 0x02 | | #define HOTKEYF_CONTROL 0x02 |
#define HOTKEYF_ALT 0x04 | | #define HOTKEYF_ALT 0x04 |
#ifdef _MAC | | #ifdef _MAC |
| | |
skipping to change at line 2961 | | skipping to change at line 3228 |
#define CCS_NODIVIDER 0x00000040L | | #define CCS_NODIVIDER 0x00000040L |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define CCS_VERT 0x00000080L | | #define CCS_VERT 0x00000080L |
#define CCS_LEFT (CCS_VERT | CCS_TOP) | | #define CCS_LEFT (CCS_VERT | CCS_TOP) |
#define CCS_RIGHT (CCS_VERT | CCS_BOTTOM) | | #define CCS_RIGHT (CCS_VERT | CCS_BOTTOM) |
#define CCS_NOMOVEX (CCS_VERT | CCS_NOMOVEY) | | #define CCS_NOMOVEX (CCS_VERT | CCS_NOMOVEY) |
#endif | | #endif |
| | |
// end_r_commctrl | | // end_r_commctrl |
| | |
|
| | //====== SysLink control ========================================= |
| | |
| | #ifdef _WIN32 |
| | #if (_WIN32_WINNT >= 0x0501) |
| | |
| | #define INVALID_LINK_INDEX (-1) |
| | #define MAX_LINKID_TEXT 48 |
| | #define L_MAX_URL_LENGTH (2048 + 32 + sizeof("://")) |
| | |
| | #define WC_LINK L"SysLink" |
| | |
| | // begin_r_commctrl |
| | |
| | #define LWS_TRANSPARENT 0x0001 |
| | #define LWS_IGNORERETURN 0x0002 |
| | #if _WIN32_WINNT >= 0x0600 |
| | #define LWS_NOPREFIX 0x0004 |
| | #define LWS_USEVISUALSTYLE 0x0008 |
| | #define LWS_USECUSTOMTEXT 0x0010 |
| | #define LWS_RIGHT 0x0020 |
| | #endif // _WIN32_WINNT >= 0x600 |
| | |
| | // end_r_commctrl |
| | |
| | #define LIF_ITEMINDEX 0x00000001 |
| | #define LIF_STATE 0x00000002 |
| | #define LIF_ITEMID 0x00000004 |
| | #define LIF_URL 0x00000008 |
| | |
| | #define LIS_FOCUSED 0x00000001 |
| | #define LIS_ENABLED 0x00000002 |
| | #define LIS_VISITED 0x00000004 |
| | #if _WIN32_WINNT >= 0x0600 |
| | #define LIS_HOTTRACK 0x00000008 |
| | #define LIS_DEFAULTCOLORS 0x00000010 // Don't use any custom text colors |
| | #endif |
| | |
| | typedef struct tagLITEM |
| | { |
| | UINT mask ; |
| | int iLink ; |
| | UINT state ; |
| | UINT stateMask ; |
| | WCHAR szID[MAX_LINKID_TEXT] ; |
| | WCHAR szUrl[L_MAX_URL_LENGTH] ; |
| | } LITEM, * PLITEM ; |
| | |
| | typedef struct tagLHITTESTINFO |
| | { |
| | POINT pt ; |
| | LITEM item ; |
| | } LHITTESTINFO, *PLHITTESTINFO ; |
| | |
| | typedef struct tagNMLINK |
| | { |
| | NMHDR hdr; |
| | LITEM item ; |
| | } NMLINK, *PNMLINK; |
| | |
| | // SysLink notifications |
| | // NM_CLICK // wParam: control ID, lParam: PNMLINK, ret: ignored. |
| | |
| | // LinkWindow messages |
| | #define LM_HITTEST (WM_USER+0x300) // wParam: n/a, lparam: PLHITTESTINF |
| | O, ret: BOOL |
| | #define LM_GETIDEALHEIGHT (WM_USER+0x301) // wParam: cxMaxWidth, lparam: n/a, |
| | ret: cy |
| | #define LM_SETITEM (WM_USER+0x302) // wParam: n/a, lparam: LITEM*, ret: |
| | BOOL |
| | #define LM_GETITEM (WM_USER+0x303) // wParam: n/a, lparam: LITEM*, ret: |
| | BOOL |
| | #define LM_GETIDEALSIZE (LM_GETIDEALHEIGHT) // wParam: cxMaxWidth, lparam: S |
| | IZE*, ret: cy |
| | |
| | #endif |
| | |
| | #endif // _WIN32 |
| | //====== End SysLink control ========================================= |
| | |
//====== LISTVIEW CONTROL ===================================================== | | //====== LISTVIEW CONTROL ===================================================== |
| | |
#ifndef NOLISTVIEW | | #ifndef NOLISTVIEW |
| | |
#ifdef _WIN32 | | #ifdef _WIN32 |
| | |
#define WC_LISTVIEWA "SysListView32" | | #define WC_LISTVIEWA "SysListView32" |
#define WC_LISTVIEWW L"SysListView32" | | #define WC_LISTVIEWW L"SysListView32" |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
| | |
skipping to change at line 3037 | | skipping to change at line 3378 |
#define ListView_SetBkColor(hwnd, clrBk) \ | | #define ListView_SetBkColor(hwnd, clrBk) \ |
(BOOL)SNDMSG((hwnd), LVM_SETBKCOLOR, 0, (LPARAM)(COLORREF)(clrBk)) | | (BOOL)SNDMSG((hwnd), LVM_SETBKCOLOR, 0, (LPARAM)(COLORREF)(clrBk)) |
| | |
#define LVM_GETIMAGELIST (LVM_FIRST + 2) | | #define LVM_GETIMAGELIST (LVM_FIRST + 2) |
#define ListView_GetImageList(hwnd, iImageList) \ | | #define ListView_GetImageList(hwnd, iImageList) \ |
(HIMAGELIST)SNDMSG((hwnd), LVM_GETIMAGELIST, (WPARAM)(INT)(iImageList), 0L) | | (HIMAGELIST)SNDMSG((hwnd), LVM_GETIMAGELIST, (WPARAM)(INT)(iImageList), 0L) |
| | |
#define LVSIL_NORMAL 0 | | #define LVSIL_NORMAL 0 |
#define LVSIL_SMALL 1 | | #define LVSIL_SMALL 1 |
#define LVSIL_STATE 2 | | #define LVSIL_STATE 2 |
|
| | #define LVSIL_GROUPHEADER 3 |
| | |
#define LVM_SETIMAGELIST (LVM_FIRST + 3) | | #define LVM_SETIMAGELIST (LVM_FIRST + 3) |
#define ListView_SetImageList(hwnd, himl, iImageList) \ | | #define ListView_SetImageList(hwnd, himl, iImageList) \ |
(HIMAGELIST)SNDMSG((hwnd), LVM_SETIMAGELIST, (WPARAM)(iImageList), (LPARAM)(
HIMAGELIST)(himl)) | | (HIMAGELIST)SNDMSG((hwnd), LVM_SETIMAGELIST, (WPARAM)(iImageList), (LPARAM)(
HIMAGELIST)(himl)) |
| | |
#define LVM_GETITEMCOUNT (LVM_FIRST + 4) | | #define LVM_GETITEMCOUNT (LVM_FIRST + 4) |
#define ListView_GetItemCount(hwnd) \ | | #define ListView_GetItemCount(hwnd) \ |
(int)SNDMSG((hwnd), LVM_GETITEMCOUNT, 0, 0L) | | (int)SNDMSG((hwnd), LVM_GETITEMCOUNT, 0, 0L) |
| | |
|
#define LVIF_TEXT 0x0001 | | #define LVIF_TEXT 0x00000001 |
#define LVIF_IMAGE 0x0002 | | #define LVIF_IMAGE 0x00000002 |
#define LVIF_PARAM 0x0004 | | #define LVIF_PARAM 0x00000004 |
#define LVIF_STATE 0x0008 | | #define LVIF_STATE 0x00000008 |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
|
#define LVIF_INDENT 0x0010 | | #define LVIF_INDENT 0x00000010 |
#define LVIF_NORECOMPUTE 0x0800 | | #define LVIF_NORECOMPUTE 0x00000800 |
#endif | | #endif |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define LVIF_GROUPID 0x0100 | | #define LVIF_GROUPID 0x00000100 |
#define LVIF_COLUMNS 0x0200 | | #define LVIF_COLUMNS 0x00000200 |
| | #endif |
| | |
| | #if _WIN32_WINNT >= 0x0600 |
| | #define LVIF_COLFMT 0x00010000 // The piColFmt member is valid in ad |
| | dition to puColumns |
#endif | | #endif |
| | |
#define LVIS_FOCUSED 0x0001 | | #define LVIS_FOCUSED 0x0001 |
#define LVIS_SELECTED 0x0002 | | #define LVIS_SELECTED 0x0002 |
#define LVIS_CUT 0x0004 | | #define LVIS_CUT 0x0004 |
#define LVIS_DROPHILITED 0x0008 | | #define LVIS_DROPHILITED 0x0008 |
#define LVIS_GLOW 0x0010 | | #define LVIS_GLOW 0x0010 |
#define LVIS_ACTIVATING 0x0020 | | #define LVIS_ACTIVATING 0x0020 |
| | |
#define LVIS_OVERLAYMASK 0x0F00 | | #define LVIS_OVERLAYMASK 0x0F00 |
| | |
skipping to change at line 3082 | | skipping to change at line 3428 |
#define I_INDENTCALLBACK (-1) | | #define I_INDENTCALLBACK (-1) |
#define LV_ITEMA LVITEMA | | #define LV_ITEMA LVITEMA |
#define LV_ITEMW LVITEMW | | #define LV_ITEMW LVITEMW |
#else | | #else |
#define tagLVITEMA _LV_ITEMA | | #define tagLVITEMA _LV_ITEMA |
#define LVITEMA LV_ITEMA | | #define LVITEMA LV_ITEMA |
#define tagLVITEMW _LV_ITEMW | | #define tagLVITEMW _LV_ITEMW |
#define LVITEMW LV_ITEMW | | #define LVITEMW LV_ITEMW |
#endif | | #endif |
| | |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define I_GROUPIDCALLBACK (-1) | | #define I_GROUPIDCALLBACK (-1) |
#define I_GROUPIDNONE (-2) | | #define I_GROUPIDNONE (-2) |
#endif | | #endif |
#define LV_ITEM LVITEM | | #define LV_ITEM LVITEM |
| | |
#define LVITEMA_V1_SIZE CCSIZEOF_STRUCT(LVITEMA, lParam) | | #define LVITEMA_V1_SIZE CCSIZEOF_STRUCT(LVITEMA, lParam) |
#define LVITEMW_V1_SIZE CCSIZEOF_STRUCT(LVITEMW, lParam) | | #define LVITEMW_V1_SIZE CCSIZEOF_STRUCT(LVITEMW, lParam) |
| | |
|
| | #if _WIN32_WINNT >= 0x0600 // Will be unused downlevel, but sizeof(LVITEMA) must |
| | be equal to sizeof(LVITEMW) |
| | #define LVITEMA_V5_SIZE CCSIZEOF_STRUCT(LVITEMA, puColumns) |
| | #define LVITEMW_V5_SIZE CCSIZEOF_STRUCT(LVITEMW, puColumns) |
| | |
| | #ifdef UNICODE |
| | #define LVITEM_V5_SIZE LVITEMW_V5_SIZE |
| | #else |
| | #define LVITEM_V5_SIZE LVITEMA_V5_SIZE |
| | #endif |
| | #endif |
| | |
typedef struct tagLVITEMA | | typedef struct tagLVITEMA |
{ | | { |
UINT mask; | | UINT mask; |
int iItem; | | int iItem; |
int iSubItem; | | int iSubItem; |
UINT state; | | UINT state; |
UINT stateMask; | | UINT stateMask; |
LPSTR pszText; | | LPSTR pszText; |
int cchTextMax; | | int cchTextMax; |
int iImage; | | int iImage; |
LPARAM lParam; | | LPARAM lParam; |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
int iIndent; | | int iIndent; |
#endif | | #endif |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
int iGroupId; | | int iGroupId; |
UINT cColumns; // tile view columns | | UINT cColumns; // tile view columns |
PUINT puColumns; | | PUINT puColumns; |
#endif | | #endif |
|
| | #if _WIN32_WINNT >= 0x0600 // Will be unused downlevel, but sizeof(LVITEMA) must |
| | be equal to sizeof(LVITEMW) |
| | int* piColFmt; |
| | int iGroup; // readonly. only valid for owner data. |
| | #endif |
} LVITEMA, *LPLVITEMA; | | } LVITEMA, *LPLVITEMA; |
| | |
typedef struct tagLVITEMW | | typedef struct tagLVITEMW |
{ | | { |
UINT mask; | | UINT mask; |
int iItem; | | int iItem; |
int iSubItem; | | int iSubItem; |
UINT state; | | UINT state; |
UINT stateMask; | | UINT stateMask; |
LPWSTR pszText; | | LPWSTR pszText; |
int cchTextMax; | | int cchTextMax; |
int iImage; | | int iImage; |
LPARAM lParam; | | LPARAM lParam; |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
int iIndent; | | int iIndent; |
#endif | | #endif |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
int iGroupId; | | int iGroupId; |
UINT cColumns; // tile view columns | | UINT cColumns; // tile view columns |
PUINT puColumns; | | PUINT puColumns; |
#endif | | #endif |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | int* piColFmt; |
| | int iGroup; // readonly. only valid for owner data. |
| | #endif |
} LVITEMW, *LPLVITEMW; | | } LVITEMW, *LPLVITEMW; |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
#define LVITEM LVITEMW | | #define LVITEM LVITEMW |
#define LPLVITEM LPLVITEMW | | #define LPLVITEM LPLVITEMW |
#define LVITEM_V1_SIZE LVITEMW_V1_SIZE | | #define LVITEM_V1_SIZE LVITEMW_V1_SIZE |
#else | | #else |
#define LVITEM LVITEMA | | #define LVITEM LVITEMA |
#define LPLVITEM LPLVITEMA | | #define LPLVITEM LPLVITEMA |
#define LVITEM_V1_SIZE LVITEMA_V1_SIZE | | #define LVITEM_V1_SIZE LVITEMA_V1_SIZE |
| | |
skipping to change at line 3156 | | skipping to change at line 3521 |
#define LPSTR_TEXTCALLBACK LPSTR_TEXTCALLBACKW | | #define LPSTR_TEXTCALLBACK LPSTR_TEXTCALLBACKW |
#else | | #else |
#define LPSTR_TEXTCALLBACK LPSTR_TEXTCALLBACKA | | #define LPSTR_TEXTCALLBACK LPSTR_TEXTCALLBACKA |
#endif | | #endif |
| | |
#define I_IMAGECALLBACK (-1) | | #define I_IMAGECALLBACK (-1) |
#if (_WIN32_IE >= 0x0501) | | #if (_WIN32_IE >= 0x0501) |
#define I_IMAGENONE (-2) | | #define I_IMAGENONE (-2) |
#endif // 0x0501 | | #endif // 0x0501 |
| | |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
// For tileview | | // For tileview |
#define I_COLUMNSCALLBACK ((UINT)-1) | | #define I_COLUMNSCALLBACK ((UINT)-1) |
#endif | | #endif |
| | |
#define LVM_GETITEMA (LVM_FIRST + 5) | | #define LVM_GETITEMA (LVM_FIRST + 5) |
#define LVM_GETITEMW (LVM_FIRST + 75) | | #define LVM_GETITEMW (LVM_FIRST + 75) |
#ifdef UNICODE | | #ifdef UNICODE |
#define LVM_GETITEM LVM_GETITEMW | | #define LVM_GETITEM LVM_GETITEMW |
#else | | #else |
#define LVM_GETITEM LVM_GETITEMA | | #define LVM_GETITEM LVM_GETITEMA |
| | |
skipping to change at line 3210 | | skipping to change at line 3575 |
| | |
#define LVM_GETCALLBACKMASK (LVM_FIRST + 10) | | #define LVM_GETCALLBACKMASK (LVM_FIRST + 10) |
#define ListView_GetCallbackMask(hwnd) \ | | #define ListView_GetCallbackMask(hwnd) \ |
(BOOL)SNDMSG((hwnd), LVM_GETCALLBACKMASK, 0, 0) | | (BOOL)SNDMSG((hwnd), LVM_GETCALLBACKMASK, 0, 0) |
| | |
#define LVM_SETCALLBACKMASK (LVM_FIRST + 11) | | #define LVM_SETCALLBACKMASK (LVM_FIRST + 11) |
#define ListView_SetCallbackMask(hwnd, mask) \ | | #define ListView_SetCallbackMask(hwnd, mask) \ |
(BOOL)SNDMSG((hwnd), LVM_SETCALLBACKMASK, (WPARAM)(UINT)(mask), 0) | | (BOOL)SNDMSG((hwnd), LVM_SETCALLBACKMASK, (WPARAM)(UINT)(mask), 0) |
| | |
#define LVNI_ALL 0x0000 | | #define LVNI_ALL 0x0000 |
|
| | |
#define LVNI_FOCUSED 0x0001 | | #define LVNI_FOCUSED 0x0001 |
#define LVNI_SELECTED 0x0002 | | #define LVNI_SELECTED 0x0002 |
#define LVNI_CUT 0x0004 | | #define LVNI_CUT 0x0004 |
#define LVNI_DROPHILITED 0x0008 | | #define LVNI_DROPHILITED 0x0008 |
|
| | #define LVNI_STATEMASK (LVNI_FOCUSED | LVNI_SELECTED | LVNI_CUT | LVNI_ |
| | DROPHILITED) |
| | |
| | #define LVNI_VISIBLEORDER 0x0010 |
| | #define LVNI_PREVIOUS 0x0020 |
| | #define LVNI_VISIBLEONLY 0x0040 |
| | #define LVNI_SAMEGROUPONLY 0x0080 |
| | |
#define LVNI_ABOVE 0x0100 | | #define LVNI_ABOVE 0x0100 |
#define LVNI_BELOW 0x0200 | | #define LVNI_BELOW 0x0200 |
#define LVNI_TOLEFT 0x0400 | | #define LVNI_TOLEFT 0x0400 |
#define LVNI_TORIGHT 0x0800 | | #define LVNI_TORIGHT 0x0800 |
|
| | #define LVNI_DIRECTIONMASK (LVNI_ABOVE | LVNI_BELOW | LVNI_TOLEFT | LVNI_TO
RIGHT) |
| | |
#define LVM_GETNEXTITEM (LVM_FIRST + 12) | | #define LVM_GETNEXTITEM (LVM_FIRST + 12) |
#define ListView_GetNextItem(hwnd, i, flags) \ | | #define ListView_GetNextItem(hwnd, i, flags) \ |
(int)SNDMSG((hwnd), LVM_GETNEXTITEM, (WPARAM)(int)(i), MAKELPARAM((flags), 0
)) | | (int)SNDMSG((hwnd), LVM_GETNEXTITEM, (WPARAM)(int)(i), MAKELPARAM((flags), 0
)) |
| | |
#define LVFI_PARAM 0x0001 | | #define LVFI_PARAM 0x0001 |
#define LVFI_STRING 0x0002 | | #define LVFI_STRING 0x0002 |
|
| | #define LVFI_SUBSTRING 0x0004 // Same as LVFI_PARTIAL |
#define LVFI_PARTIAL 0x0008 | | #define LVFI_PARTIAL 0x0008 |
#define LVFI_WRAP 0x0020 | | #define LVFI_WRAP 0x0020 |
#define LVFI_NEARESTXY 0x0040 | | #define LVFI_NEARESTXY 0x0040 |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define LV_FINDINFOA LVFINDINFOA | | #define LV_FINDINFOA LVFINDINFOA |
#define LV_FINDINFOW LVFINDINFOW | | #define LV_FINDINFOW LVFINDINFOW |
#else | | #else |
#define tagLVFINDINFOA _LV_FINDINFOA | | #define tagLVFINDINFOA _LV_FINDINFOA |
#define LVFINDINFOA LV_FINDINFOA | | #define LVFINDINFOA LV_FINDINFOA |
| | |
skipping to change at line 3306 | | skipping to change at line 3680 |
#define LVM_GETSTRINGWIDTHW (LVM_FIRST + 87) | | #define LVM_GETSTRINGWIDTHW (LVM_FIRST + 87) |
#ifdef UNICODE | | #ifdef UNICODE |
#define LVM_GETSTRINGWIDTH LVM_GETSTRINGWIDTHW | | #define LVM_GETSTRINGWIDTH LVM_GETSTRINGWIDTHW |
#else | | #else |
#define LVM_GETSTRINGWIDTH LVM_GETSTRINGWIDTHA | | #define LVM_GETSTRINGWIDTH LVM_GETSTRINGWIDTHA |
#endif | | #endif |
| | |
#define ListView_GetStringWidth(hwndLV, psz) \ | | #define ListView_GetStringWidth(hwndLV, psz) \ |
(int)SNDMSG((hwndLV), LVM_GETSTRINGWIDTH, 0, (LPARAM)(LPCTSTR)(psz)) | | (int)SNDMSG((hwndLV), LVM_GETSTRINGWIDTH, 0, (LPARAM)(LPCTSTR)(psz)) |
| | |
|
#define LVHT_NOWHERE 0x0001 | | #define LVHT_NOWHERE 0x00000001 |
#define LVHT_ONITEMICON 0x0002 | | #define LVHT_ONITEMICON 0x00000002 |
#define LVHT_ONITEMLABEL 0x0004 | | #define LVHT_ONITEMLABEL 0x00000004 |
#define LVHT_ONITEMSTATEICON 0x0008 | | #define LVHT_ONITEMSTATEICON 0x00000008 |
#define LVHT_ONITEM (LVHT_ONITEMICON | LVHT_ONITEMLABEL | LVHT_ONITE
MSTATEICON) | | #define LVHT_ONITEM (LVHT_ONITEMICON | LVHT_ONITEMLABEL | LVHT_ONITE
MSTATEICON) |
| | |
|
#define LVHT_ABOVE 0x0008 | | #define LVHT_ABOVE 0x00000008 |
#define LVHT_BELOW 0x0010 | | #define LVHT_BELOW 0x00000010 |
#define LVHT_TORIGHT 0x0020 | | #define LVHT_TORIGHT 0x00000020 |
#define LVHT_TOLEFT 0x0040 | | #define LVHT_TOLEFT 0x00000040 |
| | |
| | #define LVHT_EX_GROUP_HEADER 0x10000000 |
| | #define LVHT_EX_GROUP_FOOTER 0x20000000 |
| | #define LVHT_EX_GROUP_COLLAPSE 0x40000000 |
| | #define LVHT_EX_GROUP_BACKGROUND 0x80000000 |
| | #define LVHT_EX_GROUP_STATEICON 0x01000000 |
| | #define LVHT_EX_GROUP_SUBSETLINK 0x02000000 |
| | #define LVHT_EX_GROUP (LVHT_EX_GROUP_BACKGROUND | LVHT_EX_GROUP_COL |
| | LAPSE | LVHT_EX_GROUP_FOOTER | LVHT_EX_GROUP_HEADER | LVHT_EX_GROUP_STATEICON | |
| | LVHT_EX_GROUP_SUBSETLINK) |
| | #define LVHT_EX_ONCONTENTS 0x04000000 // On item AND not on the backgrou |
| | nd |
| | #define LVHT_EX_FOOTER 0x08000000 |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define LV_HITTESTINFO LVHITTESTINFO | | #define LV_HITTESTINFO LVHITTESTINFO |
#else | | #else |
#define tagLVHITTESTINFO _LV_HITTESTINFO | | #define tagLVHITTESTINFO _LV_HITTESTINFO |
#define LVHITTESTINFO LV_HITTESTINFO | | #define LVHITTESTINFO LV_HITTESTINFO |
#endif | | #endif |
| | |
#define LVHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(LVHITTESTINFO, iItem) | | #define LVHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(LVHITTESTINFO, iItem) |
| | |
typedef struct tagLVHITTESTINFO | | typedef struct tagLVHITTESTINFO |
{ | | { |
POINT pt; | | POINT pt; |
UINT flags; | | UINT flags; |
int iItem; | | int iItem; |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
int iSubItem; // this is was NOT in win95. valid only for LVM_SUBITEMHIT
TEST | | int iSubItem; // this is was NOT in win95. valid only for LVM_SUBITEMHIT
TEST |
#endif | | #endif |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | int iGroup; // readonly. index of group. only valid for owner data. |
| | // supports single item in multiple groups. |
| | #endif |
} LVHITTESTINFO, *LPLVHITTESTINFO; | | } LVHITTESTINFO, *LPLVHITTESTINFO; |
| | |
#define LVM_HITTEST (LVM_FIRST + 18) | | #define LVM_HITTEST (LVM_FIRST + 18) |
#define ListView_HitTest(hwndLV, pinfo) \ | | #define ListView_HitTest(hwndLV, pinfo) \ |
(int)SNDMSG((hwndLV), LVM_HITTEST, 0, (LPARAM)(LV_HITTESTINFO *)(pinfo)) | | (int)SNDMSG((hwndLV), LVM_HITTEST, 0, (LPARAM)(LV_HITTESTINFO *)(pinfo)) |
|
| | #define ListView_HitTestEx(hwndLV, pinfo) \ |
| | (int)SNDMSG((hwndLV), LVM_HITTEST, (WPARAM)-1, (LPARAM)(LV_HITTESTINFO *)(pi |
| | nfo)) |
| | |
#define LVM_ENSUREVISIBLE (LVM_FIRST + 19) | | #define LVM_ENSUREVISIBLE (LVM_FIRST + 19) |
#define ListView_EnsureVisible(hwndLV, i, fPartialOK) \ | | #define ListView_EnsureVisible(hwndLV, i, fPartialOK) \ |
(BOOL)SNDMSG((hwndLV), LVM_ENSUREVISIBLE, (WPARAM)(int)(i), MAKELPARAM((fPar
tialOK), 0)) | | (BOOL)SNDMSG((hwndLV), LVM_ENSUREVISIBLE, (WPARAM)(int)(i), MAKELPARAM((fPar
tialOK), 0)) |
| | |
#define LVM_SCROLL (LVM_FIRST + 20) | | #define LVM_SCROLL (LVM_FIRST + 20) |
#define ListView_Scroll(hwndLV, dx, dy) \ | | #define ListView_Scroll(hwndLV, dx, dy) \ |
(BOOL)SNDMSG((hwndLV), LVM_SCROLL, (WPARAM)(int)(dx), (LPARAM)(int)(dy)) | | (BOOL)SNDMSG((hwndLV), LVM_SCROLL, (WPARAM)(int)(dx), (LPARAM)(int)(dy)) |
| | |
#define LVM_REDRAWITEMS (LVM_FIRST + 21) | | #define LVM_REDRAWITEMS (LVM_FIRST + 21) |
| | |
skipping to change at line 3403 | | skipping to change at line 3793 |
UINT mask; | | UINT mask; |
int fmt; | | int fmt; |
int cx; | | int cx; |
LPSTR pszText; | | LPSTR pszText; |
int cchTextMax; | | int cchTextMax; |
int iSubItem; | | int iSubItem; |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
int iImage; | | int iImage; |
int iOrder; | | int iOrder; |
#endif | | #endif |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | int cxMin; // min snap point |
| | int cxDefault; // default snap point |
| | int cxIdeal; // read only. ideal may not eqaul current width if auto siz |
| | ed (LVS_EX_AUTOSIZECOLUMNS) to a lesser width. |
| | #endif |
} LVCOLUMNA, *LPLVCOLUMNA; | | } LVCOLUMNA, *LPLVCOLUMNA; |
| | |
typedef struct tagLVCOLUMNW | | typedef struct tagLVCOLUMNW |
{ | | { |
UINT mask; | | UINT mask; |
int fmt; | | int fmt; |
int cx; | | int cx; |
LPWSTR pszText; | | LPWSTR pszText; |
int cchTextMax; | | int cchTextMax; |
int iSubItem; | | int iSubItem; |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
int iImage; | | int iImage; |
int iOrder; | | int iOrder; |
#endif | | #endif |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | int cxMin; // min snap point |
| | int cxDefault; // default snap point |
| | int cxIdeal; // read only. ideal may not eqaul current width if auto siz |
| | ed (LVS_EX_AUTOSIZECOLUMNS) to a lesser width. |
| | #endif |
} LVCOLUMNW, *LPLVCOLUMNW; | | } LVCOLUMNW, *LPLVCOLUMNW; |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
#define LVCOLUMN LVCOLUMNW | | #define LVCOLUMN LVCOLUMNW |
#define LPLVCOLUMN LPLVCOLUMNW | | #define LPLVCOLUMN LPLVCOLUMNW |
#define LVCOLUMN_V1_SIZE LVCOLUMNW_V1_SIZE | | #define LVCOLUMN_V1_SIZE LVCOLUMNW_V1_SIZE |
#else | | #else |
#define LVCOLUMN LVCOLUMNA | | #define LVCOLUMN LVCOLUMNA |
#define LPLVCOLUMN LPLVCOLUMNA | | #define LPLVCOLUMN LPLVCOLUMNA |
#define LVCOLUMN_V1_SIZE LVCOLUMNA_V1_SIZE | | #define LVCOLUMN_V1_SIZE LVCOLUMNA_V1_SIZE |
#endif | | #endif |
| | |
#define LVCF_FMT 0x0001 | | #define LVCF_FMT 0x0001 |
#define LVCF_WIDTH 0x0002 | | #define LVCF_WIDTH 0x0002 |
#define LVCF_TEXT 0x0004 | | #define LVCF_TEXT 0x0004 |
#define LVCF_SUBITEM 0x0008 | | #define LVCF_SUBITEM 0x0008 |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define LVCF_IMAGE 0x0010 | | #define LVCF_IMAGE 0x0010 |
#define LVCF_ORDER 0x0020 | | #define LVCF_ORDER 0x0020 |
#endif | | #endif |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | #define LVCF_MINWIDTH 0x0040 |
| | #define LVCF_DEFAULTWIDTH 0x0080 |
| | #define LVCF_IDEALWIDTH 0x0100 |
| | #endif |
| | |
|
#define LVCFMT_LEFT 0x0000 | | // LVCFMT_ flags up to FFFF are shared with the header control (HDF_ flags). |
#define LVCFMT_RIGHT 0x0001 | | // Flags above FFFF are listview-specific. |
#define LVCFMT_CENTER 0x0002 | | |
#define LVCFMT_JUSTIFYMASK 0x0003 | | #define LVCFMT_LEFT 0x0000 // Same as HDF_LEFT |
| | #define LVCFMT_RIGHT 0x0001 // Same as HDF_RIGHT |
| | #define LVCFMT_CENTER 0x0002 // Same as HDF_CENTER |
| | #define LVCFMT_JUSTIFYMASK 0x0003 // Same as HDF_JUSTIFYMASK |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
|
#define LVCFMT_IMAGE 0x0800 | | #define LVCFMT_IMAGE 0x0800 // Same as HDF_IMAGE |
#define LVCFMT_BITMAP_ON_RIGHT 0x1000 | | #define LVCFMT_BITMAP_ON_RIGHT 0x1000 // Same as HDF_BITMAP_ON_RIGHT |
#define LVCFMT_COL_HAS_IMAGES 0x8000 | | #define LVCFMT_COL_HAS_IMAGES 0x8000 // Same as HDF_OWNERDRAW |
| | #endif |
| | |
| | #if _WIN32_WINNT >= 0x0600 |
| | #define LVCFMT_FIXED_WIDTH 0x00100 // Can't resize the column; same as |
| | HDF_FIXEDWIDTH |
| | #define LVCFMT_NO_DPI_SCALE 0x40000 // If not set, CCM_DPISCALE will go |
| | vern scaling up fixed width |
| | #define LVCFMT_FIXED_RATIO 0x80000 // Width will augment with the row |
| | height |
| | |
| | // The following flags |
| | #define LVCFMT_LINE_BREAK 0x100000 // Move to the top of the next list |
| | of columns |
| | #define LVCFMT_FILL 0x200000 // Fill the remainder of the tile ar |
| | ea. Might have a title. |
| | #define LVCFMT_WRAP 0x400000 // This sub-item can be wrapped. |
| | #define LVCFMT_NO_TITLE 0x800000 // This sub-item doesn't have an ti |
| | tle. |
| | #define LVCFMT_TILE_PLACEMENTMASK (LVCFMT_LINE_BREAK | LVCFMT_FILL) |
| | |
| | #define LVCFMT_SPLITBUTTON 0x1000000 // Column is a split button; same as |
| | HDF_SPLITBUTTON |
#endif | | #endif |
| | |
#define LVM_GETCOLUMNA (LVM_FIRST + 25) | | #define LVM_GETCOLUMNA (LVM_FIRST + 25) |
#define LVM_GETCOLUMNW (LVM_FIRST + 95) | | #define LVM_GETCOLUMNW (LVM_FIRST + 95) |
#ifdef UNICODE | | #ifdef UNICODE |
#define LVM_GETCOLUMN LVM_GETCOLUMNW | | #define LVM_GETCOLUMN LVM_GETCOLUMNW |
#else | | #else |
#define LVM_GETCOLUMN LVM_GETCOLUMNA | | #define LVM_GETCOLUMN LVM_GETCOLUMNA |
#endif | | #endif |
| | |
| | |
skipping to change at line 3545 | | skipping to change at line 3968 |
#define LVM_GETORIGIN (LVM_FIRST + 41) | | #define LVM_GETORIGIN (LVM_FIRST + 41) |
#define ListView_GetOrigin(hwndLV, ppt) \ | | #define ListView_GetOrigin(hwndLV, ppt) \ |
(BOOL)SNDMSG((hwndLV), LVM_GETORIGIN, (WPARAM)0, (LPARAM)(POINT *)(ppt)) | | (BOOL)SNDMSG((hwndLV), LVM_GETORIGIN, (WPARAM)0, (LPARAM)(POINT *)(ppt)) |
| | |
#define LVM_UPDATE (LVM_FIRST + 42) | | #define LVM_UPDATE (LVM_FIRST + 42) |
#define ListView_Update(hwndLV, i) \ | | #define ListView_Update(hwndLV, i) \ |
(BOOL)SNDMSG((hwndLV), LVM_UPDATE, (WPARAM)(i), 0L) | | (BOOL)SNDMSG((hwndLV), LVM_UPDATE, (WPARAM)(i), 0L) |
| | |
#define LVM_SETITEMSTATE (LVM_FIRST + 43) | | #define LVM_SETITEMSTATE (LVM_FIRST + 43) |
#define ListView_SetItemState(hwndLV, i, data, mask) \ | | #define ListView_SetItemState(hwndLV, i, data, mask) \ |
|
{ LV_ITEM _ms_lvi;\ | | { LV_ITEM _macro_lvi;\ |
_ms_lvi.stateMask = mask;\ | | _macro_lvi.stateMask = (mask);\ |
_ms_lvi.state = data;\ | | _macro_lvi.state = (data);\ |
SNDMSG((hwndLV), LVM_SETITEMSTATE, (WPARAM)(i), (LPARAM)(LV_ITEM *)&_ms_lvi);\ | | SNDMSG((hwndLV), LVM_SETITEMSTATE, (WPARAM)(i), (LPARAM)(LV_ITEM *)&_macro_lvi |
| | );\ |
} | | } |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define ListView_SetCheckState(hwndLV, i, fCheck) \ | | #define ListView_SetCheckState(hwndLV, i, fCheck) \ |
ListView_SetItemState(hwndLV, i, INDEXTOSTATEIMAGEMASK((fCheck)?2:1), LVIS_STA
TEIMAGEMASK) | | ListView_SetItemState(hwndLV, i, INDEXTOSTATEIMAGEMASK((fCheck)?2:1), LVIS_STA
TEIMAGEMASK) |
#endif | | #endif |
| | |
#define LVM_GETITEMSTATE (LVM_FIRST + 44) | | #define LVM_GETITEMSTATE (LVM_FIRST + 44) |
#define ListView_GetItemState(hwndLV, i, mask) \ | | #define ListView_GetItemState(hwndLV, i, mask) \ |
(UINT)SNDMSG((hwndLV), LVM_GETITEMSTATE, (WPARAM)(i), (LPARAM)(mask)) | | (UINT)SNDMSG((hwndLV), LVM_GETITEMSTATE, (WPARAM)(i), (LPARAM)(mask)) |
| | |
skipping to change at line 3575 | | skipping to change at line 3998 |
#define LVM_GETITEMTEXTA (LVM_FIRST + 45) | | #define LVM_GETITEMTEXTA (LVM_FIRST + 45) |
#define LVM_GETITEMTEXTW (LVM_FIRST + 115) | | #define LVM_GETITEMTEXTW (LVM_FIRST + 115) |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
#define LVM_GETITEMTEXT LVM_GETITEMTEXTW | | #define LVM_GETITEMTEXT LVM_GETITEMTEXTW |
#else | | #else |
#define LVM_GETITEMTEXT LVM_GETITEMTEXTA | | #define LVM_GETITEMTEXT LVM_GETITEMTEXTA |
#endif | | #endif |
| | |
#define ListView_GetItemText(hwndLV, i, iSubItem_, pszText_, cchTextMax_) \ | | #define ListView_GetItemText(hwndLV, i, iSubItem_, pszText_, cchTextMax_) \ |
|
{ LV_ITEM _ms_lvi;\ | | { LV_ITEM _macro_lvi;\ |
_ms_lvi.iSubItem = iSubItem_;\ | | _macro_lvi.iSubItem = (iSubItem_);\ |
_ms_lvi.cchTextMax = cchTextMax_;\ | | _macro_lvi.cchTextMax = (cchTextMax_);\ |
_ms_lvi.pszText = pszText_;\ | | _macro_lvi.pszText = (pszText_);\ |
SNDMSG((hwndLV), LVM_GETITEMTEXT, (WPARAM)(i), (LPARAM)(LV_ITEM *)&_ms_lvi);\ | | SNDMSG((hwndLV), LVM_GETITEMTEXT, (WPARAM)(i), (LPARAM)(LV_ITEM *)&_macro_lvi) |
| | ;\ |
} | | } |
| | |
#define LVM_SETITEMTEXTA (LVM_FIRST + 46) | | #define LVM_SETITEMTEXTA (LVM_FIRST + 46) |
#define LVM_SETITEMTEXTW (LVM_FIRST + 116) | | #define LVM_SETITEMTEXTW (LVM_FIRST + 116) |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
#define LVM_SETITEMTEXT LVM_SETITEMTEXTW | | #define LVM_SETITEMTEXT LVM_SETITEMTEXTW |
#else | | #else |
#define LVM_SETITEMTEXT LVM_SETITEMTEXTA | | #define LVM_SETITEMTEXT LVM_SETITEMTEXTA |
#endif | | #endif |
| | |
#define ListView_SetItemText(hwndLV, i, iSubItem_, pszText_) \ | | #define ListView_SetItemText(hwndLV, i, iSubItem_, pszText_) \ |
|
{ LV_ITEM _ms_lvi;\ | | { LV_ITEM _macro_lvi;\ |
_ms_lvi.iSubItem = iSubItem_;\ | | _macro_lvi.iSubItem = (iSubItem_);\ |
_ms_lvi.pszText = pszText_;\ | | _macro_lvi.pszText = (pszText_);\ |
SNDMSG((hwndLV), LVM_SETITEMTEXT, (WPARAM)(i), (LPARAM)(LV_ITEM *)&_ms_lvi);\ | | SNDMSG((hwndLV), LVM_SETITEMTEXT, (WPARAM)(i), (LPARAM)(LV_ITEM *)&_macro_lvi) |
| | ;\ |
} | | } |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
// these flags only apply to LVS_OWNERDATA listviews in report or list mode | | // these flags only apply to LVS_OWNERDATA listviews in report or list mode |
#define LVSICF_NOINVALIDATEALL 0x00000001 | | #define LVSICF_NOINVALIDATEALL 0x00000001 |
#define LVSICF_NOSCROLL 0x00000002 | | #define LVSICF_NOSCROLL 0x00000002 |
#endif | | #endif |
| | |
#define LVM_SETITEMCOUNT (LVM_FIRST + 47) | | #define LVM_SETITEMCOUNT (LVM_FIRST + 47) |
#define ListView_SetItemCount(hwndLV, cItems) \ | | #define ListView_SetItemCount(hwndLV, cItems) \ |
| | |
skipping to change at line 3623 | | skipping to change at line 4046 |
typedef int (CALLBACK *PFNLVCOMPARE)(LPARAM, LPARAM, LPARAM); | | typedef int (CALLBACK *PFNLVCOMPARE)(LPARAM, LPARAM, LPARAM); |
| | |
#define LVM_SORTITEMS (LVM_FIRST + 48) | | #define LVM_SORTITEMS (LVM_FIRST + 48) |
#define ListView_SortItems(hwndLV, _pfnCompare, _lPrm) \ | | #define ListView_SortItems(hwndLV, _pfnCompare, _lPrm) \ |
(BOOL)SNDMSG((hwndLV), LVM_SORTITEMS, (WPARAM)(LPARAM)(_lPrm), \ | | (BOOL)SNDMSG((hwndLV), LVM_SORTITEMS, (WPARAM)(LPARAM)(_lPrm), \ |
(LPARAM)(PFNLVCOMPARE)(_pfnCompare)) | | (LPARAM)(PFNLVCOMPARE)(_pfnCompare)) |
| | |
#define LVM_SETITEMPOSITION32 (LVM_FIRST + 49) | | #define LVM_SETITEMPOSITION32 (LVM_FIRST + 49) |
#define ListView_SetItemPosition32(hwndLV, i, x0, y0) \ | | #define ListView_SetItemPosition32(hwndLV, i, x0, y0) \ |
{ POINT ptNewPos; \ | | { POINT ptNewPos; \ |
|
ptNewPos.x = x0; ptNewPos.y = y0; \ | | ptNewPos.x = (x0); ptNewPos.y = (y0); \ |
SNDMSG((hwndLV), LVM_SETITEMPOSITION32, (WPARAM)(int)(i), (LPARAM)&ptNewPos)
; \ | | SNDMSG((hwndLV), LVM_SETITEMPOSITION32, (WPARAM)(int)(i), (LPARAM)&ptNewPos)
; \ |
} | | } |
| | |
#define LVM_GETSELECTEDCOUNT (LVM_FIRST + 50) | | #define LVM_GETSELECTEDCOUNT (LVM_FIRST + 50) |
#define ListView_GetSelectedCount(hwndLV) \ | | #define ListView_GetSelectedCount(hwndLV) \ |
(UINT)SNDMSG((hwndLV), LVM_GETSELECTEDCOUNT, 0, 0L) | | (UINT)SNDMSG((hwndLV), LVM_GETSELECTEDCOUNT, 0, 0L) |
| | |
#define LVM_GETITEMSPACING (LVM_FIRST + 51) | | #define LVM_GETITEMSPACING (LVM_FIRST + 51) |
#define ListView_GetItemSpacing(hwndLV, fSmall) \ | | #define ListView_GetItemSpacing(hwndLV, fSmall) \ |
(DWORD)SNDMSG((hwndLV), LVM_GETITEMSPACING, fSmall, 0L) | | (DWORD)SNDMSG((hwndLV), LVM_GETITEMSPACING, fSmall, 0L) |
| | |
skipping to change at line 3686 | | skipping to change at line 4109 |
#define LVS_EX_REGIONAL 0x00000200 | | #define LVS_EX_REGIONAL 0x00000200 |
#define LVS_EX_INFOTIP 0x00000400 // listview does InfoTips for you | | #define LVS_EX_INFOTIP 0x00000400 // listview does InfoTips for you |
#define LVS_EX_UNDERLINEHOT 0x00000800 | | #define LVS_EX_UNDERLINEHOT 0x00000800 |
#define LVS_EX_UNDERLINECOLD 0x00001000 | | #define LVS_EX_UNDERLINECOLD 0x00001000 |
#define LVS_EX_MULTIWORKAREAS 0x00002000 | | #define LVS_EX_MULTIWORKAREAS 0x00002000 |
#endif | | #endif |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
#define LVS_EX_LABELTIP 0x00004000 // listview unfolds partly hidden lab
els if it does not have infotip text | | #define LVS_EX_LABELTIP 0x00004000 // listview unfolds partly hidden lab
els if it does not have infotip text |
#define LVS_EX_BORDERSELECT 0x00008000 // border selection style instead of
highlight | | #define LVS_EX_BORDERSELECT 0x00008000 // border selection style instead of
highlight |
#endif // End (_WIN32_IE >= 0x0500) | | #endif // End (_WIN32_IE >= 0x0500) |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define LVS_EX_DOUBLEBUFFER 0x00010000 | | #define LVS_EX_DOUBLEBUFFER 0x00010000 |
#define LVS_EX_HIDELABELS 0x00020000 | | #define LVS_EX_HIDELABELS 0x00020000 |
#define LVS_EX_SINGLEROW 0x00040000 | | #define LVS_EX_SINGLEROW 0x00040000 |
#define LVS_EX_SNAPTOGRID 0x00080000 // Icons automatically snap to grid. | | #define LVS_EX_SNAPTOGRID 0x00080000 // Icons automatically snap to grid. |
#define LVS_EX_SIMPLESELECT 0x00100000 // Also changes overlay rendering to
top right for icon mode. | | #define LVS_EX_SIMPLESELECT 0x00100000 // Also changes overlay rendering to
top right for icon mode. |
#endif | | #endif |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | #define LVS_EX_JUSTIFYCOLUMNS 0x00200000 // Icons are lined up in columns tha |
| | t use up the whole view area. |
| | #define LVS_EX_TRANSPARENTBKGND 0x00400000 // Background is painted by the pare |
| | nt via WM_PRINTCLIENT |
| | #define LVS_EX_TRANSPARENTSHADOWTEXT 0x00800000 // Enable shadow text on transp |
| | arent backgrounds only (useful with bitmaps) |
| | #define LVS_EX_AUTOAUTOARRANGE 0x01000000 // Icons automatically arrange if no |
| | icon positions have been set |
| | #define LVS_EX_HEADERINALLVIEWS 0x02000000 // Display column header in all view |
| | modes |
| | #define LVS_EX_AUTOCHECKSELECT 0x08000000 |
| | #define LVS_EX_AUTOSIZECOLUMNS 0x10000000 |
| | #define LVS_EX_COLUMNSNAPPOINTS 0x40000000 |
| | #define LVS_EX_COLUMNOVERFLOW 0x80000000 |
| | |
| | #endif |
| | |
#define LVM_GETSUBITEMRECT (LVM_FIRST + 56) | | #define LVM_GETSUBITEMRECT (LVM_FIRST + 56) |
#define ListView_GetSubItemRect(hwnd, iItem, iSubItem, code, prc) \ | | #define ListView_GetSubItemRect(hwnd, iItem, iSubItem, code, prc) \ |
(BOOL)SNDMSG((hwnd), LVM_GETSUBITEMRECT, (WPARAM)(int)(iItem), \ | | (BOOL)SNDMSG((hwnd), LVM_GETSUBITEMRECT, (WPARAM)(int)(iItem), \ |
|
((prc) ? ((((LPRECT)(prc))->top = iSubItem), (((LPRECT)(prc))->l
eft = code), (LPARAM)(prc)) : (LPARAM)(LPRECT)NULL)) | | ((prc) ? ((((LPRECT)(prc))->top = (iSubItem)), (((LPRECT)(prc))-
>left = (code)), (LPARAM)(prc)) : (LPARAM)(LPRECT)NULL)) |
| | |
#define LVM_SUBITEMHITTEST (LVM_FIRST + 57) | | #define LVM_SUBITEMHITTEST (LVM_FIRST + 57) |
#define ListView_SubItemHitTest(hwnd, plvhti) \ | | #define ListView_SubItemHitTest(hwnd, plvhti) \ |
(int)SNDMSG((hwnd), LVM_SUBITEMHITTEST, 0, (LPARAM)(LPLVHITTESTINFO)(plv
hti)) | | (int)SNDMSG((hwnd), LVM_SUBITEMHITTEST, 0, (LPARAM)(LPLVHITTESTINFO)(plv
hti)) |
|
| | #define ListView_SubItemHitTestEx(hwnd, plvhti) \ |
| | (int)SNDMSG((hwnd), LVM_SUBITEMHITTEST, (WPARAM)-1, (LPARAM)(LPLVHITTEST |
| | INFO)(plvhti)) |
| | |
#define LVM_SETCOLUMNORDERARRAY (LVM_FIRST + 58) | | #define LVM_SETCOLUMNORDERARRAY (LVM_FIRST + 58) |
#define ListView_SetColumnOrderArray(hwnd, iCount, pi) \ | | #define ListView_SetColumnOrderArray(hwnd, iCount, pi) \ |
(BOOL)SNDMSG((hwnd), LVM_SETCOLUMNORDERARRAY, (WPARAM)(iCount), (LPARAM)
(LPINT)(pi)) | | (BOOL)SNDMSG((hwnd), LVM_SETCOLUMNORDERARRAY, (WPARAM)(iCount), (LPARAM)
(LPINT)(pi)) |
| | |
#define LVM_GETCOLUMNORDERARRAY (LVM_FIRST + 59) | | #define LVM_GETCOLUMNORDERARRAY (LVM_FIRST + 59) |
#define ListView_GetColumnOrderArray(hwnd, iCount, pi) \ | | #define ListView_GetColumnOrderArray(hwnd, iCount, pi) \ |
(BOOL)SNDMSG((hwnd), LVM_GETCOLUMNORDERARRAY, (WPARAM)(iCount), (LPARAM)
(LPINT)(pi)) | | (BOOL)SNDMSG((hwnd), LVM_GETCOLUMNORDERARRAY, (WPARAM)(iCount), (LPARAM)
(LPINT)(pi)) |
| | |
#define LVM_SETHOTITEM (LVM_FIRST + 60) | | #define LVM_SETHOTITEM (LVM_FIRST + 60) |
| | |
skipping to change at line 3729 | | skipping to change at line 4166 |
#define LVM_SETHOTCURSOR (LVM_FIRST + 62) | | #define LVM_SETHOTCURSOR (LVM_FIRST + 62) |
#define ListView_SetHotCursor(hwnd, hcur) \ | | #define ListView_SetHotCursor(hwnd, hcur) \ |
(HCURSOR)SNDMSG((hwnd), LVM_SETHOTCURSOR, 0, (LPARAM)(hcur)) | | (HCURSOR)SNDMSG((hwnd), LVM_SETHOTCURSOR, 0, (LPARAM)(hcur)) |
| | |
#define LVM_GETHOTCURSOR (LVM_FIRST + 63) | | #define LVM_GETHOTCURSOR (LVM_FIRST + 63) |
#define ListView_GetHotCursor(hwnd) \ | | #define ListView_GetHotCursor(hwnd) \ |
(HCURSOR)SNDMSG((hwnd), LVM_GETHOTCURSOR, 0, 0) | | (HCURSOR)SNDMSG((hwnd), LVM_GETHOTCURSOR, 0, 0) |
| | |
#define LVM_APPROXIMATEVIEWRECT (LVM_FIRST + 64) | | #define LVM_APPROXIMATEVIEWRECT (LVM_FIRST + 64) |
#define ListView_ApproximateViewRect(hwnd, iWidth, iHeight, iCount) \ | | #define ListView_ApproximateViewRect(hwnd, iWidth, iHeight, iCount) \ |
|
(DWORD)SNDMSG((hwnd), LVM_APPROXIMATEVIEWRECT, iCount, MAKELPARAM(iWidth
, iHeight)) | | (DWORD)SNDMSG((hwnd), LVM_APPROXIMATEVIEWRECT, (WPARAM)(iCount), MAKELPA
RAM(iWidth, iHeight)) |
#endif // _WIN32_IE >= 0x0300 | | #endif // _WIN32_IE >= 0x0300 |
| | |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
| | |
#define LV_MAX_WORKAREAS 16 | | #define LV_MAX_WORKAREAS 16 |
#define LVM_SETWORKAREAS (LVM_FIRST + 65) | | #define LVM_SETWORKAREAS (LVM_FIRST + 65) |
#define ListView_SetWorkAreas(hwnd, nWorkAreas, prc) \ | | #define ListView_SetWorkAreas(hwnd, nWorkAreas, prc) \ |
(BOOL)SNDMSG((hwnd), LVM_SETWORKAREAS, (WPARAM)(int)(nWorkAreas), (LPARAM)(R
ECT *)(prc)) | | (BOOL)SNDMSG((hwnd), LVM_SETWORKAREAS, (WPARAM)(int)(nWorkAreas), (LPARAM)(R
ECT *)(prc)) |
| | |
#define LVM_GETWORKAREAS (LVM_FIRST + 70) | | #define LVM_GETWORKAREAS (LVM_FIRST + 70) |
| | |
skipping to change at line 3801 | | skipping to change at line 4238 |
int yOffsetPercent; | | int yOffsetPercent; |
} LVBKIMAGEW, *LPLVBKIMAGEW; | | } LVBKIMAGEW, *LPLVBKIMAGEW; |
| | |
#define LVBKIF_SOURCE_NONE 0x00000000 | | #define LVBKIF_SOURCE_NONE 0x00000000 |
#define LVBKIF_SOURCE_HBITMAP 0x00000001 | | #define LVBKIF_SOURCE_HBITMAP 0x00000001 |
#define LVBKIF_SOURCE_URL 0x00000002 | | #define LVBKIF_SOURCE_URL 0x00000002 |
#define LVBKIF_SOURCE_MASK 0x00000003 | | #define LVBKIF_SOURCE_MASK 0x00000003 |
#define LVBKIF_STYLE_NORMAL 0x00000000 | | #define LVBKIF_STYLE_NORMAL 0x00000000 |
#define LVBKIF_STYLE_TILE 0x00000010 | | #define LVBKIF_STYLE_TILE 0x00000010 |
#define LVBKIF_STYLE_MASK 0x00000010 | | #define LVBKIF_STYLE_MASK 0x00000010 |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define LVBKIF_FLAG_TILEOFFSET 0x00000100 | | #define LVBKIF_FLAG_TILEOFFSET 0x00000100 |
#define LVBKIF_TYPE_WATERMARK 0x10000000 | | #define LVBKIF_TYPE_WATERMARK 0x10000000 |
|
| | #define LVBKIF_FLAG_ALPHABLEND 0x20000000 |
#endif | | #endif |
| | |
#define LVM_SETBKIMAGEA (LVM_FIRST + 68) | | #define LVM_SETBKIMAGEA (LVM_FIRST + 68) |
#define LVM_SETBKIMAGEW (LVM_FIRST + 138) | | #define LVM_SETBKIMAGEW (LVM_FIRST + 138) |
#define LVM_GETBKIMAGEA (LVM_FIRST + 69) | | #define LVM_GETBKIMAGEA (LVM_FIRST + 69) |
#define LVM_GETBKIMAGEW (LVM_FIRST + 139) | | #define LVM_GETBKIMAGEW (LVM_FIRST + 139) |
| | |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define LVM_SETSELECTEDCOLUMN (LVM_FIRST + 140) | | #define LVM_SETSELECTEDCOLUMN (LVM_FIRST + 140) |
#define ListView_SetSelectedColumn(hwnd, iCol) \ | | #define ListView_SetSelectedColumn(hwnd, iCol) \ |
|
SNDMSG((hwnd), LVM_SETSELECTEDCOLUMN, (WPARAM)iCol, 0) | | SNDMSG((hwnd), LVM_SETSELECTEDCOLUMN, (WPARAM)(iCol), 0) |
| | |
#define LVM_SETTILEWIDTH (LVM_FIRST + 141) | | |
#define ListView_SetTileWidth(hwnd, cpWidth) \ | | |
SNDMSG((hwnd), LVM_SETTILEWIDTH, (WPARAM)cpWidth, 0) | | |
| | |
|
#define LV_VIEW_ICON 0x0000 | | #define LV_VIEW_ICON 0x0000 |
#define LV_VIEW_DETAILS 0x0001 | | #define LV_VIEW_DETAILS 0x0001 |
#define LV_VIEW_SMALLICON 0x0002 | | #define LV_VIEW_SMALLICON 0x0002 |
#define LV_VIEW_LIST 0x0003 | | #define LV_VIEW_LIST 0x0003 |
#define LV_VIEW_TILE 0x0004 | | #define LV_VIEW_TILE 0x0004 |
#define LV_VIEW_MAX 0x0004 | | #define LV_VIEW_MAX 0x0004 |
| | |
#define LVM_SETVIEW (LVM_FIRST + 142) | | #define LVM_SETVIEW (LVM_FIRST + 142) |
#define ListView_SetView(hwnd, iView) \ | | #define ListView_SetView(hwnd, iView) \ |
|
(DWORD)SNDMSG((hwnd), LVM_SETVIEW, (WPARAM)(DWORD)iView, 0) | | (DWORD)SNDMSG((hwnd), LVM_SETVIEW, (WPARAM)(DWORD)(iView), 0) |
| | |
#define LVM_GETVIEW (LVM_FIRST + 143) | | #define LVM_GETVIEW (LVM_FIRST + 143) |
#define ListView_GetView(hwnd) \ | | #define ListView_GetView(hwnd) \ |
(DWORD)SNDMSG((hwnd), LVM_GETVIEW, 0, 0) | | (DWORD)SNDMSG((hwnd), LVM_GETVIEW, 0, 0) |
| | |
#define LVGF_NONE 0x00000000 | | #define LVGF_NONE 0x00000000 |
#define LVGF_HEADER 0x00000001 | | #define LVGF_HEADER 0x00000001 |
#define LVGF_FOOTER 0x00000002 | | #define LVGF_FOOTER 0x00000002 |
#define LVGF_STATE 0x00000004 | | #define LVGF_STATE 0x00000004 |
#define LVGF_ALIGN 0x00000008 | | #define LVGF_ALIGN 0x00000008 |
#define LVGF_GROUPID 0x00000010 | | #define LVGF_GROUPID 0x00000010 |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | #define LVGF_SUBTITLE 0x00000100 // pszSubtitle is valid |
| | #define LVGF_TASK 0x00000200 // pszTask is valid |
| | #define LVGF_DESCRIPTIONTOP 0x00000400 // pszDescriptionTop is valid |
| | #define LVGF_DESCRIPTIONBOTTOM 0x00000800 // pszDescriptionBottom is valid |
| | #define LVGF_TITLEIMAGE 0x00001000 // iTitleImage is valid |
| | #define LVGF_EXTENDEDIMAGE 0x00002000 // iExtendedImage is valid |
| | #define LVGF_ITEMS 0x00004000 // iFirstItem and cItems are valid |
| | #define LVGF_SUBSET 0x00008000 // pszSubsetTitle is valid |
| | #define LVGF_SUBSETITEMS 0x00010000 // readonly, cItems holds count of i |
| | tems in visible subset, iFirstItem is valid |
| | #endif |
| | |
|
#define LVGS_NORMAL 0x00000000 | | #define LVGS_NORMAL 0x00000000 |
#define LVGS_COLLAPSED 0x00000001 | | #define LVGS_COLLAPSED 0x00000001 |
#define LVGS_HIDDEN 0x00000002 | | #define LVGS_HIDDEN 0x00000002 |
| | #define LVGS_NOHEADER 0x00000004 |
| | #define LVGS_COLLAPSIBLE 0x00000008 |
| | #define LVGS_FOCUSED 0x00000010 |
| | #define LVGS_SELECTED 0x00000020 |
| | #define LVGS_SUBSETED 0x00000040 |
| | #define LVGS_SUBSETLINKFOCUSED 0x00000080 |
| | |
#define LVGA_HEADER_LEFT 0x00000001 | | #define LVGA_HEADER_LEFT 0x00000001 |
#define LVGA_HEADER_CENTER 0x00000002 | | #define LVGA_HEADER_CENTER 0x00000002 |
#define LVGA_HEADER_RIGHT 0x00000004 // Don't forget to validate exclusivity | | #define LVGA_HEADER_RIGHT 0x00000004 // Don't forget to validate exclusivity |
#define LVGA_FOOTER_LEFT 0x00000008 | | #define LVGA_FOOTER_LEFT 0x00000008 |
#define LVGA_FOOTER_CENTER 0x00000010 | | #define LVGA_FOOTER_CENTER 0x00000010 |
#define LVGA_FOOTER_RIGHT 0x00000020 // Don't forget to validate exclusivity | | #define LVGA_FOOTER_RIGHT 0x00000020 // Don't forget to validate exclusivity |
| | |
typedef struct tagLVGROUP | | typedef struct tagLVGROUP |
{ | | { |
| | |
skipping to change at line 3868 | | skipping to change at line 4319 |
int cchHeader; | | int cchHeader; |
| | |
LPWSTR pszFooter; | | LPWSTR pszFooter; |
int cchFooter; | | int cchFooter; |
| | |
int iGroupId; | | int iGroupId; |
| | |
UINT stateMask; | | UINT stateMask; |
UINT state; | | UINT state; |
UINT uAlign; | | UINT uAlign; |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | LPWSTR pszSubtitle; |
| | UINT cchSubtitle; |
| | LPWSTR pszTask; |
| | UINT cchTask; |
| | LPWSTR pszDescriptionTop; |
| | UINT cchDescriptionTop; |
| | LPWSTR pszDescriptionBottom; |
| | UINT cchDescriptionBottom; |
| | int iTitleImage; |
| | int iExtendedImage; |
| | int iFirstItem; // Read only |
| | UINT cItems; // Read only |
| | LPWSTR pszSubsetTitle; // NULL if group is not subset |
| | UINT cchSubsetTitle; |
| | |
| | #define LVGROUP_V5_SIZE CCSIZEOF_STRUCT(LVGROUP, uAlign) |
| | |
| | #endif |
} LVGROUP, *PLVGROUP; | | } LVGROUP, *PLVGROUP; |
| | |
#define LVM_INSERTGROUP (LVM_FIRST + 145) | | #define LVM_INSERTGROUP (LVM_FIRST + 145) |
#define ListView_InsertGroup(hwnd, index, pgrp) \ | | #define ListView_InsertGroup(hwnd, index, pgrp) \ |
|
SNDMSG((hwnd), LVM_INSERTGROUP, (WPARAM)index, (LPARAM)pgrp) | | SNDMSG((hwnd), LVM_INSERTGROUP, (WPARAM)(index), (LPARAM)(pgrp)) |
| | |
#define LVM_SETGROUPINFO (LVM_FIRST + 147) | | #define LVM_SETGROUPINFO (LVM_FIRST + 147) |
#define ListView_SetGroupInfo(hwnd, iGroupId, pgrp) \ | | #define ListView_SetGroupInfo(hwnd, iGroupId, pgrp) \ |
|
SNDMSG((hwnd), LVM_SETGROUPINFO, (WPARAM)iGroupId, (LPARAM)pgrp) | | SNDMSG((hwnd), LVM_SETGROUPINFO, (WPARAM)(iGroupId), (LPARAM)(pgrp)) |
| | |
#define LVM_GETGROUPINFO (LVM_FIRST + 149) | | #define LVM_GETGROUPINFO (LVM_FIRST + 149) |
#define ListView_GetGroupInfo(hwnd, iGroupId, pgrp) \ | | #define ListView_GetGroupInfo(hwnd, iGroupId, pgrp) \ |
|
SNDMSG((hwnd), LVM_GETGROUPINFO, (WPARAM)iGroupId, (LPARAM)pgrp) | | SNDMSG((hwnd), LVM_GETGROUPINFO, (WPARAM)(iGroupId), (LPARAM)(pgrp)) |
| | |
#define LVM_REMOVEGROUP (LVM_FIRST + 150) | | #define LVM_REMOVEGROUP (LVM_FIRST + 150) |
#define ListView_RemoveGroup(hwnd, iGroupId) \ | | #define ListView_RemoveGroup(hwnd, iGroupId) \ |
|
SNDMSG((hwnd), LVM_REMOVEGROUP, (WPARAM)iGroupId, 0) | | SNDMSG((hwnd), LVM_REMOVEGROUP, (WPARAM)(iGroupId), 0) |
| | |
#define LVM_MOVEGROUP (LVM_FIRST + 151) | | #define LVM_MOVEGROUP (LVM_FIRST + 151) |
#define ListView_MoveGroup(hwnd, iGroupId, toIndex) \ | | #define ListView_MoveGroup(hwnd, iGroupId, toIndex) \ |
|
SNDMSG((hwnd), LVM_MOVEGROUP, (WPARAM)iGroupId, (LPARAM)toIndex) | | SNDMSG((hwnd), LVM_MOVEGROUP, (WPARAM)(iGroupId), (LPARAM)(toIndex)) |
| | |
| | #define LVM_GETGROUPCOUNT (LVM_FIRST + 152) |
| | #define ListView_GetGroupCount(hwnd) \ |
| | SNDMSG((hwnd), LVM_GETGROUPCOUNT, (WPARAM)0, (LPARAM)0) |
| | |
| | #define LVM_GETGROUPINFOBYINDEX (LVM_FIRST + 153) |
| | #define ListView_GetGroupInfoByIndex(hwnd, iIndex, pgrp) \ |
| | SNDMSG((hwnd), LVM_GETGROUPINFOBYINDEX, (WPARAM)(iIndex), (LPARAM)(pgrp)) |
| | |
#define LVM_MOVEITEMTOGROUP (LVM_FIRST + 154) | | #define LVM_MOVEITEMTOGROUP (LVM_FIRST + 154) |
#define ListView_MoveItemToGroup(hwnd, idItemFrom, idGroupTo) \ | | #define ListView_MoveItemToGroup(hwnd, idItemFrom, idGroupTo) \ |
|
SNDMSG((hwnd), LVM_MOVEITEMTOGROUP, (WPARAM)idItemFrom, (LPARAM)idGroupTo) | | SNDMSG((hwnd), LVM_MOVEITEMTOGROUP, (WPARAM)(idItemFrom), (LPARAM)(idGroupTo |
| | )) |
| | |
| | #define LVGGR_GROUP 0 // Entire expanded group |
| | #define LVGGR_HEADER 1 // Header only (collapsed group) |
| | #define LVGGR_LABEL 2 // Label only |
| | #define LVGGR_SUBSETLINK 3 // subset link only |
| | |
| | #define LVM_GETGROUPRECT (LVM_FIRST + 98) |
| | #define ListView_GetGroupRect(hwnd, iGroupId, type, prc) \ |
| | SNDMSG((hwnd), LVM_GETGROUPRECT, (WPARAM)(iGroupId), \ |
| | ((prc) ? (((RECT*)(prc))->top = (type)), (LPARAM)(RECT*)(prc) : (LPARAM) |
| | (RECT*)NULL)) |
| | |
#define LVGMF_NONE 0x00000000 | | #define LVGMF_NONE 0x00000000 |
#define LVGMF_BORDERSIZE 0x00000001 | | #define LVGMF_BORDERSIZE 0x00000001 |
#define LVGMF_BORDERCOLOR 0x00000002 | | #define LVGMF_BORDERCOLOR 0x00000002 |
#define LVGMF_TEXTCOLOR 0x00000004 | | #define LVGMF_TEXTCOLOR 0x00000004 |
| | |
typedef struct tagLVGROUPMETRICS | | typedef struct tagLVGROUPMETRICS |
{ | | { |
UINT cbSize; | | UINT cbSize; |
UINT mask; | | UINT mask; |
| | |
skipping to change at line 3917 | | skipping to change at line 4405 |
COLORREF crLeft; | | COLORREF crLeft; |
COLORREF crTop; | | COLORREF crTop; |
COLORREF crRight; | | COLORREF crRight; |
COLORREF crBottom; | | COLORREF crBottom; |
COLORREF crHeader; | | COLORREF crHeader; |
COLORREF crFooter; | | COLORREF crFooter; |
} LVGROUPMETRICS, *PLVGROUPMETRICS; | | } LVGROUPMETRICS, *PLVGROUPMETRICS; |
| | |
#define LVM_SETGROUPMETRICS (LVM_FIRST + 155) | | #define LVM_SETGROUPMETRICS (LVM_FIRST + 155) |
#define ListView_SetGroupMetrics(hwnd, pGroupMetrics) \ | | #define ListView_SetGroupMetrics(hwnd, pGroupMetrics) \ |
|
SNDMSG((hwnd), LVM_SETGROUPMETRICS, 0, (LPARAM)pGroupMetrics) | | SNDMSG((hwnd), LVM_SETGROUPMETRICS, 0, (LPARAM)(pGroupMetrics)) |
| | |
#define LVM_GETGROUPMETRICS (LVM_FIRST + 156) | | #define LVM_GETGROUPMETRICS (LVM_FIRST + 156) |
#define ListView_GetGroupMetrics(hwnd, pGroupMetrics) \ | | #define ListView_GetGroupMetrics(hwnd, pGroupMetrics) \ |
|
SNDMSG((hwnd), LVM_GETGROUPMETRICS, 0, (LPARAM)pGroupMetrics) | | SNDMSG((hwnd), LVM_GETGROUPMETRICS, 0, (LPARAM)(pGroupMetrics)) |
| | |
#define LVM_ENABLEGROUPVIEW (LVM_FIRST + 157) | | #define LVM_ENABLEGROUPVIEW (LVM_FIRST + 157) |
#define ListView_EnableGroupView(hwnd, fEnable) \ | | #define ListView_EnableGroupView(hwnd, fEnable) \ |
|
SNDMSG((hwnd), LVM_ENABLEGROUPVIEW, (WPARAM)fEnable, 0) | | SNDMSG((hwnd), LVM_ENABLEGROUPVIEW, (WPARAM)(fEnable), 0) |
| | |
typedef int (CALLBACK *PFNLVGROUPCOMPARE)(int, int, void *); | | typedef int (CALLBACK *PFNLVGROUPCOMPARE)(int, int, void *); |
| | |
#define LVM_SORTGROUPS (LVM_FIRST + 158) | | #define LVM_SORTGROUPS (LVM_FIRST + 158) |
#define ListView_SortGroups(hwnd, _pfnGroupCompate, _plv) \ | | #define ListView_SortGroups(hwnd, _pfnGroupCompate, _plv) \ |
|
SNDMSG((hwnd), LVM_SORTGROUPS, (WPARAM)_pfnGroupCompate, (LPARAM)_plv) | | SNDMSG((hwnd), LVM_SORTGROUPS, (WPARAM)(_pfnGroupCompate), (LPARAM)(_plv)) |
| | |
typedef struct tagLVINSERTGROUPSORTED | | typedef struct tagLVINSERTGROUPSORTED |
{ | | { |
PFNLVGROUPCOMPARE pfnGroupCompare; | | PFNLVGROUPCOMPARE pfnGroupCompare; |
void *pvData; | | void *pvData; |
LVGROUP lvGroup; | | LVGROUP lvGroup; |
}LVINSERTGROUPSORTED, *PLVINSERTGROUPSORTED; | | }LVINSERTGROUPSORTED, *PLVINSERTGROUPSORTED; |
| | |
#define LVM_INSERTGROUPSORTED (LVM_FIRST + 159) | | #define LVM_INSERTGROUPSORTED (LVM_FIRST + 159) |
#define ListView_InsertGroupSorted(hwnd, structInsert) \ | | #define ListView_InsertGroupSorted(hwnd, structInsert) \ |
|
SNDMSG((hwnd), LVM_INSERTGROUPSORTED, (WPARAM)structInsert, 0) | | SNDMSG((hwnd), LVM_INSERTGROUPSORTED, (WPARAM)(structInsert), 0) |
| | |
#define LVM_REMOVEALLGROUPS (LVM_FIRST + 160) | | #define LVM_REMOVEALLGROUPS (LVM_FIRST + 160) |
#define ListView_RemoveAllGroups(hwnd) \ | | #define ListView_RemoveAllGroups(hwnd) \ |
SNDMSG((hwnd), LVM_REMOVEALLGROUPS, 0, 0) | | SNDMSG((hwnd), LVM_REMOVEALLGROUPS, 0, 0) |
| | |
#define LVM_HASGROUP (LVM_FIRST + 161) | | #define LVM_HASGROUP (LVM_FIRST + 161) |
#define ListView_HasGroup(hwnd, dwGroupId) \ | | #define ListView_HasGroup(hwnd, dwGroupId) \ |
SNDMSG((hwnd), LVM_HASGROUP, dwGroupId, 0) | | SNDMSG((hwnd), LVM_HASGROUP, dwGroupId, 0) |
| | |
|
| | #define ListView_SetGroupState(hwnd, dwGroupId, dwMask, dwState) \ |
| | { LVGROUP _macro_lvg;\ |
| | _macro_lvg.cbSize = sizeof(_macro_lvg);\ |
| | _macro_lvg.mask = LVGF_STATE;\ |
| | _macro_lvg.stateMask = dwMask;\ |
| | _macro_lvg.state = dwState;\ |
| | SNDMSG((hwnd), LVM_SETGROUPINFO, (WPARAM)(dwGroupId), (LPARAM)(LVGROUP *)&_mac |
| | ro_lvg);\ |
| | } |
| | #define LVM_GETGROUPSTATE (LVM_FIRST + 92) |
| | #define ListView_GetGroupState(hwnd, dwGroupId, dwMask) \ |
| | (UINT) SNDMSG((hwnd), LVM_GETGROUPSTATE, (WPARAM)(dwGroupId), (LPARAM)(dwMask) |
| | ) |
| | |
| | #define LVM_GETFOCUSEDGROUP (LVM_FIRST + 93) |
| | #define ListView_GetFocusedGroup(hwnd) \ |
| | SNDMSG((hwnd), LVM_GETFOCUSEDGROUP, 0, 0) |
| | |
#define LVTVIF_AUTOSIZE 0x00000000 | | #define LVTVIF_AUTOSIZE 0x00000000 |
#define LVTVIF_FIXEDWIDTH 0x00000001 | | #define LVTVIF_FIXEDWIDTH 0x00000001 |
#define LVTVIF_FIXEDHEIGHT 0x00000002 | | #define LVTVIF_FIXEDHEIGHT 0x00000002 |
#define LVTVIF_FIXEDSIZE 0x00000003 | | #define LVTVIF_FIXEDSIZE 0x00000003 |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | #define LVTVIF_EXTENDED 0x00000004 |
| | #endif |
| | |
#define LVTVIM_TILESIZE 0x00000001 | | #define LVTVIM_TILESIZE 0x00000001 |
#define LVTVIM_COLUMNS 0x00000002 | | #define LVTVIM_COLUMNS 0x00000002 |
#define LVTVIM_LABELMARGIN 0x00000004 | | #define LVTVIM_LABELMARGIN 0x00000004 |
| | |
typedef struct tagLVTILEVIEWINFO | | typedef struct tagLVTILEVIEWINFO |
{ | | { |
|
UINT cbSize; | | UINT cbSize; |
DWORD dwMask; //LVTVIM_* | | DWORD dwMask; //LVTVIM_* |
DWORD dwFlags; //LVTVIF_* | | DWORD dwFlags; //LVTVIF_* |
SIZE sizeTile; | | SIZE sizeTile; |
int cLines; | | int cLines; |
RECT rcLabelMargin; | | RECT rcLabelMargin; |
} LVTILEVIEWINFO, *PLVTILEVIEWINFO; | | } LVTILEVIEWINFO, *PLVTILEVIEWINFO; |
| | |
typedef struct tagLVTILEINFO | | typedef struct tagLVTILEINFO |
{ | | { |
|
UINT cbSize; | | UINT cbSize; |
int iItem; | | int iItem; |
UINT cColumns; | | UINT cColumns; |
PUINT puColumns; | | PUINT puColumns; |
| | #if _WIN32_WINNT >= 0x0600 |
| | int* piColFmt; |
| | #endif |
} LVTILEINFO, *PLVTILEINFO; | | } LVTILEINFO, *PLVTILEINFO; |
| | |
|
| | #define LVTILEINFO_V5_SIZE CCSIZEOF_STRUCT(LVTILEINFO, puColumns) |
| | |
#define LVM_SETTILEVIEWINFO (LVM_FIRST + 162) | | #define LVM_SETTILEVIEWINFO (LVM_FIRST + 162) |
#define ListView_SetTileViewInfo(hwnd, ptvi) \ | | #define ListView_SetTileViewInfo(hwnd, ptvi) \ |
|
SNDMSG((hwnd), LVM_SETTILEVIEWINFO, 0, (LPARAM)ptvi) | | SNDMSG((hwnd), LVM_SETTILEVIEWINFO, 0, (LPARAM)(ptvi)) |
| | |
#define LVM_GETTILEVIEWINFO (LVM_FIRST + 163) | | #define LVM_GETTILEVIEWINFO (LVM_FIRST + 163) |
#define ListView_GetTileViewInfo(hwnd, ptvi) \ | | #define ListView_GetTileViewInfo(hwnd, ptvi) \ |
|
SNDMSG((hwnd), LVM_GETTILEVIEWINFO, 0, (LPARAM)ptvi) | | SNDMSG((hwnd), LVM_GETTILEVIEWINFO, 0, (LPARAM)(ptvi)) |
| | |
#define LVM_SETTILEINFO (LVM_FIRST + 164) | | #define LVM_SETTILEINFO (LVM_FIRST + 164) |
#define ListView_SetTileInfo(hwnd, pti) \ | | #define ListView_SetTileInfo(hwnd, pti) \ |
|
SNDMSG((hwnd), LVM_SETTILEINFO, 0, (LPARAM)pti) | | SNDMSG((hwnd), LVM_SETTILEINFO, 0, (LPARAM)(pti)) |
| | |
#define LVM_GETTILEINFO (LVM_FIRST + 165) | | #define LVM_GETTILEINFO (LVM_FIRST + 165) |
#define ListView_GetTileInfo(hwnd, pti) \ | | #define ListView_GetTileInfo(hwnd, pti) \ |
|
SNDMSG((hwnd), LVM_GETTILEINFO, 0, (LPARAM)pti) | | SNDMSG((hwnd), LVM_GETTILEINFO, 0, (LPARAM)(pti)) |
| | |
typedef struct | | typedef struct |
{ | | { |
UINT cbSize; | | UINT cbSize; |
DWORD dwFlags; | | DWORD dwFlags; |
int iItem; | | int iItem; |
DWORD dwReserved; | | DWORD dwReserved; |
} LVINSERTMARK, * LPLVINSERTMARK; | | } LVINSERTMARK, * LPLVINSERTMARK; |
| | |
#define LVIM_AFTER 0x00000001 // TRUE = insert After iItem, otherwise befor
e | | #define LVIM_AFTER 0x00000001 // TRUE = insert After iItem, otherwise befor
e |
| | |
skipping to change at line 4041 | | skipping to change at line 4553 |
UINT cbSize; | | UINT cbSize; |
DWORD dwFlags; | | DWORD dwFlags; |
LPWSTR pszText; | | LPWSTR pszText; |
int iItem; | | int iItem; |
int iSubItem; | | int iSubItem; |
} LVSETINFOTIP, *PLVSETINFOTIP; | | } LVSETINFOTIP, *PLVSETINFOTIP; |
| | |
#define LVM_SETINFOTIP (LVM_FIRST + 173) | | #define LVM_SETINFOTIP (LVM_FIRST + 173) |
| | |
#define ListView_SetInfoTip(hwndLV, plvInfoTip)\ | | #define ListView_SetInfoTip(hwndLV, plvInfoTip)\ |
|
(BOOL)SNDMSG((hwndLV), LVM_SETINFOTIP, (WPARAM)0, (LPARAM)plvInfoTip) | | (BOOL)SNDMSG((hwndLV), LVM_SETINFOTIP, (WPARAM)0, (LPARAM)(plvInfoTip)) |
| | |
#define LVM_GETSELECTEDCOLUMN (LVM_FIRST + 174) | | #define LVM_GETSELECTEDCOLUMN (LVM_FIRST + 174) |
#define ListView_GetSelectedColumn(hwnd) \ | | #define ListView_GetSelectedColumn(hwnd) \ |
(UINT)SNDMSG((hwnd), LVM_GETSELECTEDCOLUMN, 0, 0) | | (UINT)SNDMSG((hwnd), LVM_GETSELECTEDCOLUMN, 0, 0) |
| | |
#define LVM_ISGROUPVIEWENABLED (LVM_FIRST + 175) | | #define LVM_ISGROUPVIEWENABLED (LVM_FIRST + 175) |
#define ListView_IsGroupViewEnabled(hwnd) \ | | #define ListView_IsGroupViewEnabled(hwnd) \ |
(BOOL)SNDMSG((hwnd), LVM_ISGROUPVIEWENABLED, 0, 0) | | (BOOL)SNDMSG((hwnd), LVM_ISGROUPVIEWENABLED, 0, 0) |
| | |
#define LVM_GETOUTLINECOLOR (LVM_FIRST + 176) | | #define LVM_GETOUTLINECOLOR (LVM_FIRST + 176) |
| | |
skipping to change at line 4069 | | skipping to change at line 4581 |
#define LVM_CANCELEDITLABEL (LVM_FIRST + 179) | | #define LVM_CANCELEDITLABEL (LVM_FIRST + 179) |
#define ListView_CancelEditLabel(hwnd) \ | | #define ListView_CancelEditLabel(hwnd) \ |
(VOID)SNDMSG((hwnd), LVM_CANCELEDITLABEL, (WPARAM)0, (LPARAM)0) | | (VOID)SNDMSG((hwnd), LVM_CANCELEDITLABEL, (WPARAM)0, (LPARAM)0) |
| | |
// These next to methods make it easy to identify an item that can be reposition
ed | | // These next to methods make it easy to identify an item that can be reposition
ed |
// within listview. For example: Many developers use the lParam to store an iden
tifier that is | | // within listview. For example: Many developers use the lParam to store an iden
tifier that is |
// unique. Unfortunatly, in order to find this item, they have to iterate throug
h all of the items | | // unique. Unfortunatly, in order to find this item, they have to iterate throug
h all of the items |
// in the listview. Listview will maintain a unique identifier. The upper bound
is the size of a DWORD. | | // in the listview. Listview will maintain a unique identifier. The upper bound
is the size of a DWORD. |
#define LVM_MAPINDEXTOID (LVM_FIRST + 180) | | #define LVM_MAPINDEXTOID (LVM_FIRST + 180) |
#define ListView_MapIndexToID(hwnd, index) \ | | #define ListView_MapIndexToID(hwnd, index) \ |
|
(UINT)SNDMSG((hwnd), LVM_MAPINDEXTOID, (WPARAM)index, (LPARAM)0) | | (UINT)SNDMSG((hwnd), LVM_MAPINDEXTOID, (WPARAM)(index), (LPARAM)0) |
| | |
#define LVM_MAPIDTOINDEX (LVM_FIRST + 181) | | #define LVM_MAPIDTOINDEX (LVM_FIRST + 181) |
#define ListView_MapIDToIndex(hwnd, id) \ | | #define ListView_MapIDToIndex(hwnd, id) \ |
|
(UINT)SNDMSG((hwnd), LVM_MAPIDTOINDEX, (WPARAM)id, (LPARAM)0) | | (UINT)SNDMSG((hwnd), LVM_MAPIDTOINDEX, (WPARAM)(id), (LPARAM)0) |
| | |
| | #define LVM_ISITEMVISIBLE (LVM_FIRST + 182) |
| | #define ListView_IsItemVisible(hwnd, index) \ |
| | (UINT)SNDMSG((hwnd), LVM_ISITEMVISIBLE, (WPARAM)(index), (LPARAM)0) |
| | |
| | #if _WIN32_WINNT >= 0x0600 |
| | #define ListView_SetGroupHeaderImageList(hwnd, himl) \ |
| | (HIMAGELIST)SNDMSG((hwnd), LVM_SETIMAGELIST, (WPARAM)LVSIL_GROUPHEADER, (LPA |
| | RAM)(HIMAGELIST)(himl)) |
| | |
| | #define ListView_GetGroupHeaderImageList(hwnd) \ |
| | (HIMAGELIST)SNDMSG((hwnd), LVM_GETIMAGELIST, (WPARAM)LVSIL_GROUPHEADER, 0L) |
| | |
| | #define LVM_GETEMPTYTEXT (LVM_FIRST + 204) |
| | #define ListView_GetEmptyText(hwnd, pszText, cchText) \ |
| | (BOOL)SNDMSG((hwnd), LVM_GETEMPTYTEXT, (WPARAM)(cchText), (LPARAM)(pszText)) |
| | |
| | #define LVM_GETFOOTERRECT (LVM_FIRST + 205) |
| | #define ListView_GetFooterRect(hwnd, prc) \ |
| | (BOOL)SNDMSG((hwnd), LVM_GETFOOTERRECT, (WPARAM)(0), (LPARAM)(prc)) |
| | |
| | // footer flags |
| | #define LVFF_ITEMCOUNT 0x00000001 |
| | |
| | typedef struct tagLVFOOTERINFO |
| | { |
| | UINT mask; // LVFF_* |
| | LPWSTR pszText; |
| | int cchTextMax; |
| | UINT cItems; |
| | } LVFOOTERINFO, *LPLVFOOTERINFO; |
| | |
| | #define LVM_GETFOOTERINFO (LVM_FIRST + 206) |
| | #define ListView_GetFooterInfo(hwnd, plvfi) \ |
| | (BOOL)SNDMSG((hwnd), LVM_GETFOOTERINFO, (WPARAM)(0), (LPARAM)(plvfi)) |
| | |
| | #define LVM_GETFOOTERITEMRECT (LVM_FIRST + 207) |
| | #define ListView_GetFooterItemRect(hwnd, iItem, prc) \ |
| | (BOOL)SNDMSG((hwnd), LVM_GETFOOTERITEMRECT, (WPARAM)(iItem), (LPARAM)(prc)) |
| | |
| | // footer item flags |
| | #define LVFIF_TEXT 0x00000001 |
| | #define LVFIF_STATE 0x00000002 |
| | |
| | // footer item state |
| | #define LVFIS_FOCUSED 0x0001 |
| | |
| | typedef struct tagLVFOOTERITEM |
| | { |
| | UINT mask; // LVFIF_* |
| | int iItem; |
| | LPWSTR pszText; |
| | int cchTextMax; |
| | UINT state; // LVFIS_* |
| | UINT stateMask; // LVFIS_* |
| | } LVFOOTERITEM, *LPLVFOOTERITEM; |
| | |
| | #define LVM_GETFOOTERITEM (LVM_FIRST + 208) |
| | #define ListView_GetFooterItem(hwnd, iItem, pfi) \ |
| | (BOOL)SNDMSG((hwnd), LVM_GETFOOTERITEM, (WPARAM)(iItem), (LPARAM)(pfi)) |
| | |
| | // supports a single item in multiple groups. |
| | typedef struct tagLVITEMINDEX |
| | { |
| | int iItem; // listview item index |
| | int iGroup; // group index (must be -1 if group view is not enabled) |
| | } LVITEMINDEX, *PLVITEMINDEX; |
| | |
| | #define LVM_GETITEMINDEXRECT (LVM_FIRST + 209) |
| | #define ListView_GetItemIndexRect(hwnd, plvii, iSubItem, code, prc) \ |
| | (BOOL)SNDMSG((hwnd), LVM_GETITEMINDEXRECT, (WPARAM)(LVITEMINDEX*)(plvii) |
| | , \ |
| | ((prc) ? ((((LPRECT)(prc))->top = (iSubItem)), (((LPRECT)(prc))- |
| | >left = (code)), (LPARAM)(prc)) : (LPARAM)(LPRECT)NULL)) |
| | |
| | #define LVM_SETITEMINDEXSTATE (LVM_FIRST + 210) |
| | #define ListView_SetItemIndexState(hwndLV, plvii, data, mask) \ |
| | { LV_ITEM _macro_lvi;\ |
| | _macro_lvi.stateMask = (mask);\ |
| | _macro_lvi.state = (data);\ |
| | SNDMSG((hwndLV), LVM_SETITEMINDEXSTATE, (WPARAM)(LVITEMINDEX*)(plvii), (LPARAM |
| | )(LV_ITEM *)&_macro_lvi);\ |
| | } |
| | |
| | #define LVM_GETNEXTITEMINDEX (LVM_FIRST + 211) |
| | #define ListView_GetNextItemIndex(hwnd, plvii, flags) \ |
| | (BOOL)SNDMSG((hwnd), LVM_GETNEXTITEMINDEX, (WPARAM)(LVITEMINDEX*)(plvii), MA |
| | KELPARAM((flags), 0)) |
| | |
| | #endif |
| | |
#endif | | #endif |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
#define LVBKIMAGE LVBKIMAGEW | | #define LVBKIMAGE LVBKIMAGEW |
#define LPLVBKIMAGE LPLVBKIMAGEW | | #define LPLVBKIMAGE LPLVBKIMAGEW |
#define LVM_SETBKIMAGE LVM_SETBKIMAGEW | | #define LVM_SETBKIMAGE LVM_SETBKIMAGEW |
#define LVM_GETBKIMAGE LVM_GETBKIMAGEW | | #define LVM_GETBKIMAGE LVM_GETBKIMAGEW |
#else | | #else |
#define LVBKIMAGE LVBKIMAGEA | | #define LVBKIMAGE LVBKIMAGEA |
| | |
skipping to change at line 4144 | | skipping to change at line 4741 |
UINT uKeyFlags; | | UINT uKeyFlags; |
} NMITEMACTIVATE, *LPNMITEMACTIVATE; | | } NMITEMACTIVATE, *LPNMITEMACTIVATE; |
| | |
// key flags stored in uKeyFlags | | // key flags stored in uKeyFlags |
#define LVKF_ALT 0x0001 | | #define LVKF_ALT 0x0001 |
#define LVKF_CONTROL 0x0002 | | #define LVKF_CONTROL 0x0002 |
#define LVKF_SHIFT 0x0004 | | #define LVKF_SHIFT 0x0004 |
#endif //(_WIN32_IE >= 0x0400) | | #endif //(_WIN32_IE >= 0x0400) |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
|
#define NMLVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMLVCUSTOMDRW, clrTextBk) | | #define NMLVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMLVCUSTOMDRAW, clrTextBk) |
| | |
typedef struct tagNMLVCUSTOMDRAW | | typedef struct tagNMLVCUSTOMDRAW |
{ | | { |
NMCUSTOMDRAW nmcd; | | NMCUSTOMDRAW nmcd; |
COLORREF clrText; | | COLORREF clrText; |
COLORREF clrTextBk; | | COLORREF clrTextBk; |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
int iSubItem; | | int iSubItem; |
#endif | | #endif |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
DWORD dwItemType; | | DWORD dwItemType; |
| | |
// Item custom draw | | // Item custom draw |
COLORREF clrFace; | | COLORREF clrFace; |
int iIconEffect; | | int iIconEffect; |
int iIconPhase; | | int iIconPhase; |
int iPartId; | | int iPartId; |
int iStateId; | | int iStateId; |
| | |
// Group Custom Draw | | // Group Custom Draw |
| | |
skipping to change at line 4346 | | skipping to change at line 4943 |
} NMLVKEYDOWN, *LPNMLVKEYDOWN; | | } NMLVKEYDOWN, *LPNMLVKEYDOWN; |
| | |
#ifdef _WIN32 | | #ifdef _WIN32 |
#include <poppack.h> | | #include <poppack.h> |
#endif | | #endif |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define LVN_MARQUEEBEGIN (LVN_FIRST-56) | | #define LVN_MARQUEEBEGIN (LVN_FIRST-56) |
#endif | | #endif |
| | |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | typedef struct tagNMLVLINK |
| | { |
| | NMHDR hdr; |
| | LITEM link; |
| | int iItem; |
| | int iSubItem; |
| | } NMLVLINK, *PNMLVLINK; |
| | #endif |
| | |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
typedef struct tagNMLVGETINFOTIPA | | typedef struct tagNMLVGETINFOTIPA |
{ | | { |
NMHDR hdr; | | NMHDR hdr; |
DWORD dwFlags; | | DWORD dwFlags; |
LPSTR pszText; | | LPSTR pszText; |
int cchTextMax; | | int cchTextMax; |
int iItem; | | int iItem; |
int iSubItem; | | int iSubItem; |
LPARAM lParam; | | LPARAM lParam; |
| | |
skipping to change at line 4388 | | skipping to change at line 4995 |
#define NMLVGETINFOTIP NMLVGETINFOTIPW | | #define NMLVGETINFOTIP NMLVGETINFOTIPW |
#define LPNMLVGETINFOTIP LPNMLVGETINFOTIPW | | #define LPNMLVGETINFOTIP LPNMLVGETINFOTIPW |
#else | | #else |
#define LVN_GETINFOTIP LVN_GETINFOTIPA | | #define LVN_GETINFOTIP LVN_GETINFOTIPA |
#define NMLVGETINFOTIP NMLVGETINFOTIPA | | #define NMLVGETINFOTIP NMLVGETINFOTIPA |
#define LPNMLVGETINFOTIP LPNMLVGETINFOTIPA | | #define LPNMLVGETINFOTIP LPNMLVGETINFOTIPA |
#endif | | #endif |
| | |
#endif // _WIN32_IE >= 0x0400 | | #endif // _WIN32_IE >= 0x0400 |
| | |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_IE >= 0x0500) |
| | |
| | // |
| | // LVN_INCREMENTALSEARCH gives the app the opportunity to customize |
| | // incremental search. For example, if the items are numeric, |
| | // the app can do numerical search instead of string search. |
| | // |
| | // ListView notifies the app with NMLVFINDITEM. |
| | // The app sets pnmfi->lvfi.lParam to the result of the incremental search, |
| | // or to LVNSCH_DEFAULT if ListView should do the default search, |
| | // or to LVNSCH_ERROR to fail the search and just beep, |
| | // or to LVNSCH_IGNORE to stop all ListView processing. |
| | // |
| | // The return value is not used. |
| | |
| | #define LVNSCH_DEFAULT -1 |
| | #define LVNSCH_ERROR -2 |
| | #define LVNSCH_IGNORE -3 |
| | |
| | #define LVN_INCREMENTALSEARCHA (LVN_FIRST-62) |
| | #define LVN_INCREMENTALSEARCHW (LVN_FIRST-63) |
| | |
| | #ifdef UNICODE |
| | #define LVN_INCREMENTALSEARCH LVN_INCREMENTALSEARCHW |
| | #else |
| | #define LVN_INCREMENTALSEARCH LVN_INCREMENTALSEARCHA |
| | #endif |
| | |
| | #endif // _WIN32_IE >= 0x0500 |
| | |
| | #if _WIN32_WINNT >= 0x0600 |
| | #define LVN_COLUMNDROPDOWN (LVN_FIRST-64) |
| | |
| | #define LVN_COLUMNOVERFLOWCLICK (LVN_FIRST-66) |
| | |
| | #endif // _WIN32_WINNT >= 0x0600 |
| | |
| | #if (_WIN32_WINNT >= 0x0501) |
typedef struct tagNMLVSCROLL | | typedef struct tagNMLVSCROLL |
{ | | { |
NMHDR hdr; | | NMHDR hdr; |
int dx; | | int dx; |
int dy; | | int dy; |
} NMLVSCROLL, *LPNMLVSCROLL; | | } NMLVSCROLL, *LPNMLVSCROLL; |
| | |
#define LVN_BEGINSCROLL (LVN_FIRST-80) | | #define LVN_BEGINSCROLL (LVN_FIRST-80) |
#define LVN_ENDSCROLL (LVN_FIRST-81) | | #define LVN_ENDSCROLL (LVN_FIRST-81) |
#endif | | #endif |
| | |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | #define LVN_LINKCLICK (LVN_FIRST-84) |
| | |
| | #define EMF_CENTERED 0x00000001 // render markup centered in the lis |
| | tview area |
| | |
| | typedef struct tagNMLVEMPTYMARKUP |
| | { |
| | NMHDR hdr; |
| | // out params from client back to listview |
| | DWORD dwFlags; // EMF_* |
| | WCHAR szMarkup[L_MAX_URL_LENGTH]; // markup displayed |
| | } NMLVEMPTYMARKUP; |
| | |
| | #define LVN_GETEMPTYMARKUP (LVN_FIRST-87) |
| | |
| | #endif |
| | |
#endif // NOLISTVIEW | | #endif // NOLISTVIEW |
| | |
//====== TREEVIEW CONTROL ===================================================== | | //====== TREEVIEW CONTROL ===================================================== |
| | |
#ifndef NOTREEVIEW | | #ifndef NOTREEVIEW |
| | |
#ifdef _WIN32 | | #ifdef _WIN32 |
#define WC_TREEVIEWA "SysTreeView32" | | #define WC_TREEVIEWA "SysTreeView32" |
#define WC_TREEVIEWW L"SysTreeView32" | | #define WC_TREEVIEWW L"SysTreeView32" |
| | |
| | |
skipping to change at line 4446 | | skipping to change at line 5107 |
#define TVS_INFOTIP 0x0800 | | #define TVS_INFOTIP 0x0800 |
#define TVS_FULLROWSELECT 0x1000 | | #define TVS_FULLROWSELECT 0x1000 |
#define TVS_NOSCROLL 0x2000 | | #define TVS_NOSCROLL 0x2000 |
#define TVS_NONEVENHEIGHT 0x4000 | | #define TVS_NONEVENHEIGHT 0x4000 |
#endif | | #endif |
#if (_WIN32_IE >= 0x500) | | #if (_WIN32_IE >= 0x500) |
#define TVS_NOHSCROLL 0x8000 // TVS_NOSCROLL overrides this | | #define TVS_NOHSCROLL 0x8000 // TVS_NOSCROLL overrides this |
#endif | | #endif |
#endif | | #endif |
| | |
|
| | #if (_WIN32_WINNT >= 0x0600) |
| | #define TVS_EX_MULTISELECT 0x0002 |
| | #define TVS_EX_DOUBLEBUFFER 0x0004 |
| | #define TVS_EX_NOINDENTSTATE 0x0008 |
| | #define TVS_EX_RICHTOOLTIP 0x0010 |
| | #define TVS_EX_AUTOHSCROLL 0x0020 |
| | #define TVS_EX_FADEINOUTEXPANDOS 0x0040 |
| | #define TVS_EX_PARTIALCHECKBOXES 0x0080 |
| | #define TVS_EX_EXCLUSIONCHECKBOXES 0x0100 |
| | #define TVS_EX_DIMMEDCHECKBOXES 0x0200 |
| | #define TVS_EX_DRAWIMAGEASYNC 0x0400 |
| | #endif |
| | |
// end_r_commctrl | | // end_r_commctrl |
| | |
|
| | struct _TREEITEM; |
typedef struct _TREEITEM *HTREEITEM; | | typedef struct _TREEITEM *HTREEITEM; |
| | |
#define TVIF_TEXT 0x0001 | | #define TVIF_TEXT 0x0001 |
#define TVIF_IMAGE 0x0002 | | #define TVIF_IMAGE 0x0002 |
#define TVIF_PARAM 0x0004 | | #define TVIF_PARAM 0x0004 |
#define TVIF_STATE 0x0008 | | #define TVIF_STATE 0x0008 |
#define TVIF_HANDLE 0x0010 | | #define TVIF_HANDLE 0x0010 |
#define TVIF_SELECTEDIMAGE 0x0020 | | #define TVIF_SELECTEDIMAGE 0x0020 |
#define TVIF_CHILDREN 0x0040 | | #define TVIF_CHILDREN 0x0040 |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
#define TVIF_INTEGRAL 0x0080 | | #define TVIF_INTEGRAL 0x0080 |
#endif | | #endif |
|
| | #if (_WIN32_IE >= 0x0600) |
| | #define TVIF_STATEEX 0x0100 |
| | #define TVIF_EXPANDEDIMAGE 0x0200 |
| | #endif |
#define TVIS_SELECTED 0x0002 | | #define TVIS_SELECTED 0x0002 |
#define TVIS_CUT 0x0004 | | #define TVIS_CUT 0x0004 |
#define TVIS_DROPHILITED 0x0008 | | #define TVIS_DROPHILITED 0x0008 |
#define TVIS_BOLD 0x0010 | | #define TVIS_BOLD 0x0010 |
#define TVIS_EXPANDED 0x0020 | | #define TVIS_EXPANDED 0x0020 |
#define TVIS_EXPANDEDONCE 0x0040 | | #define TVIS_EXPANDEDONCE 0x0040 |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define TVIS_EXPANDPARTIAL 0x0080 | | #define TVIS_EXPANDPARTIAL 0x0080 |
#endif | | #endif |
| | |
#define TVIS_OVERLAYMASK 0x0F00 | | #define TVIS_OVERLAYMASK 0x0F00 |
#define TVIS_STATEIMAGEMASK 0xF000 | | #define TVIS_STATEIMAGEMASK 0xF000 |
#define TVIS_USERMASK 0xF000 | | #define TVIS_USERMASK 0xF000 |
| | |
|
| | #if (_WIN32_IE >= 0x0600) |
| | #define TVIS_EX_FLAT 0x0001 |
| | #if (_WIN32_WINNT >= 0x0600) |
| | #define TVIS_EX_DISABLED 0x0002 |
| | #endif |
| | #define TVIS_EX_ALL 0x0002 |
| | |
| | // Structure for TreeView's NM_TVSTATEIMAGECHANGING notification |
| | typedef struct tagNMTVSTATEIMAGECHANGING |
| | { |
| | NMHDR hdr; |
| | HTREEITEM hti; |
| | int iOldStateImageIndex; |
| | int iNewStateImageIndex; |
| | } NMTVSTATEIMAGECHANGING, *LPNMTVSTATEIMAGECHANGING; |
| | #endif |
| | |
#define I_CHILDRENCALLBACK (-1) | | #define I_CHILDRENCALLBACK (-1) |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define LPTV_ITEMW LPTVITEMW | | #define LPTV_ITEMW LPTVITEMW |
#define LPTV_ITEMA LPTVITEMA | | #define LPTV_ITEMA LPTVITEMA |
#define TV_ITEMW TVITEMW | | #define TV_ITEMW TVITEMW |
#define TV_ITEMA TVITEMA | | #define TV_ITEMA TVITEMA |
#else | | #else |
#define tagTVITEMA _TV_ITEMA | | #define tagTVITEMA _TV_ITEMA |
#define TVITEMA TV_ITEMA | | #define TVITEMA TV_ITEMA |
| | |
skipping to change at line 4533 | | skipping to change at line 5229 |
HTREEITEM hItem; | | HTREEITEM hItem; |
UINT state; | | UINT state; |
UINT stateMask; | | UINT stateMask; |
LPSTR pszText; | | LPSTR pszText; |
int cchTextMax; | | int cchTextMax; |
int iImage; | | int iImage; |
int iSelectedImage; | | int iSelectedImage; |
int cChildren; | | int cChildren; |
LPARAM lParam; | | LPARAM lParam; |
int iIntegral; | | int iIntegral; |
|
| | #if (_WIN32_IE >= 0x0600) |
| | UINT uStateEx; |
| | HWND hwnd; |
| | int iExpandedImage; |
| | #endif |
} TVITEMEXA, *LPTVITEMEXA; | | } TVITEMEXA, *LPTVITEMEXA; |
// only used for Get and Set messages. no notifies | | // only used for Get and Set messages. no notifies |
typedef struct tagTVITEMEXW { | | typedef struct tagTVITEMEXW { |
UINT mask; | | UINT mask; |
HTREEITEM hItem; | | HTREEITEM hItem; |
UINT state; | | UINT state; |
UINT stateMask; | | UINT stateMask; |
LPWSTR pszText; | | LPWSTR pszText; |
int cchTextMax; | | int cchTextMax; |
int iImage; | | int iImage; |
int iSelectedImage; | | int iSelectedImage; |
int cChildren; | | int cChildren; |
LPARAM lParam; | | LPARAM lParam; |
int iIntegral; | | int iIntegral; |
|
| | #if (_WIN32_IE >= 0x0600) |
| | UINT uStateEx; |
| | HWND hwnd; |
| | int iExpandedImage; |
| | #endif |
} TVITEMEXW, *LPTVITEMEXW; | | } TVITEMEXW, *LPTVITEMEXW; |
#ifdef UNICODE | | #ifdef UNICODE |
typedef TVITEMEXW TVITEMEX; | | typedef TVITEMEXW TVITEMEX; |
typedef LPTVITEMEXW LPTVITEMEX; | | typedef LPTVITEMEXW LPTVITEMEX; |
#else | | #else |
typedef TVITEMEXA TVITEMEX; | | typedef TVITEMEXA TVITEMEX; |
typedef LPTVITEMEXA LPTVITEMEX; | | typedef LPTVITEMEXA LPTVITEMEX; |
#endif // UNICODE | | #endif // UNICODE |
| | |
#endif | | #endif |
| | |
skipping to change at line 4661 | | skipping to change at line 5367 |
#define TVE_COLLAPSE 0x0001 | | #define TVE_COLLAPSE 0x0001 |
#define TVE_EXPAND 0x0002 | | #define TVE_EXPAND 0x0002 |
#define TVE_TOGGLE 0x0003 | | #define TVE_TOGGLE 0x0003 |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define TVE_EXPANDPARTIAL 0x4000 | | #define TVE_EXPANDPARTIAL 0x4000 |
#endif | | #endif |
#define TVE_COLLAPSERESET 0x8000 | | #define TVE_COLLAPSERESET 0x8000 |
| | |
#define TVM_GETITEMRECT (TV_FIRST + 4) | | #define TVM_GETITEMRECT (TV_FIRST + 4) |
#define TreeView_GetItemRect(hwnd, hitem, prc, code) \ | | #define TreeView_GetItemRect(hwnd, hitem, prc, code) \ |
|
(*(HTREEITEM *)prc = (hitem), (BOOL)SNDMSG((hwnd), TVM_GETITEMRECT, (WPARAM)
(code), (LPARAM)(RECT *)(prc))) | | (*(HTREEITEM *)(prc) = (hitem), (BOOL)SNDMSG((hwnd), TVM_GETITEMRECT, (WPARA
M)(code), (LPARAM)(RECT *)(prc))) |
| | |
#define TVM_GETCOUNT (TV_FIRST + 5) | | #define TVM_GETCOUNT (TV_FIRST + 5) |
#define TreeView_GetCount(hwnd) \ | | #define TreeView_GetCount(hwnd) \ |
(UINT)SNDMSG((hwnd), TVM_GETCOUNT, 0, 0) | | (UINT)SNDMSG((hwnd), TVM_GETCOUNT, 0, 0) |
| | |
#define TVM_GETINDENT (TV_FIRST + 6) | | #define TVM_GETINDENT (TV_FIRST + 6) |
#define TreeView_GetIndent(hwnd) \ | | #define TreeView_GetIndent(hwnd) \ |
(UINT)SNDMSG((hwnd), TVM_GETINDENT, 0, 0) | | (UINT)SNDMSG((hwnd), TVM_GETINDENT, 0, 0) |
| | |
#define TVM_SETINDENT (TV_FIRST + 7) | | #define TVM_SETINDENT (TV_FIRST + 7) |
| | |
skipping to change at line 4703 | | skipping to change at line 5409 |
#define TVGN_PARENT 0x0003 | | #define TVGN_PARENT 0x0003 |
#define TVGN_CHILD 0x0004 | | #define TVGN_CHILD 0x0004 |
#define TVGN_FIRSTVISIBLE 0x0005 | | #define TVGN_FIRSTVISIBLE 0x0005 |
#define TVGN_NEXTVISIBLE 0x0006 | | #define TVGN_NEXTVISIBLE 0x0006 |
#define TVGN_PREVIOUSVISIBLE 0x0007 | | #define TVGN_PREVIOUSVISIBLE 0x0007 |
#define TVGN_DROPHILITE 0x0008 | | #define TVGN_DROPHILITE 0x0008 |
#define TVGN_CARET 0x0009 | | #define TVGN_CARET 0x0009 |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
#define TVGN_LASTVISIBLE 0x000A | | #define TVGN_LASTVISIBLE 0x000A |
#endif // _WIN32_IE >= 0x0400 | | #endif // _WIN32_IE >= 0x0400 |
|
| | #if (_WIN32_IE >= 0x0600) |
| | #define TVGN_NEXTSELECTED 0x000B |
| | #endif |
| | |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define TVSI_NOSINGLEEXPAND 0x8000 // Should not conflict with TVGN flags. | | #define TVSI_NOSINGLEEXPAND 0x8000 // Should not conflict with TVGN flags. |
#endif | | #endif |
| | |
#define TreeView_GetChild(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem
, TVGN_CHILD) | | #define TreeView_GetChild(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem
, TVGN_CHILD) |
#define TreeView_GetNextSibling(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem
, TVGN_NEXT) | | #define TreeView_GetNextSibling(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem
, TVGN_NEXT) |
#define TreeView_GetPrevSibling(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem
, TVGN_PREVIOUS) | | #define TreeView_GetPrevSibling(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem
, TVGN_PREVIOUS) |
#define TreeView_GetParent(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem
, TVGN_PARENT) | | #define TreeView_GetParent(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem
, TVGN_PARENT) |
#define TreeView_GetFirstVisible(hwnd) TreeView_GetNextItem(hwnd, NULL,
TVGN_FIRSTVISIBLE) | | #define TreeView_GetFirstVisible(hwnd) TreeView_GetNextItem(hwnd, NULL,
TVGN_FIRSTVISIBLE) |
#define TreeView_GetNextVisible(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem
, TVGN_NEXTVISIBLE) | | #define TreeView_GetNextVisible(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem
, TVGN_NEXTVISIBLE) |
#define TreeView_GetPrevVisible(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem
, TVGN_PREVIOUSVISIBLE) | | #define TreeView_GetPrevVisible(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem
, TVGN_PREVIOUSVISIBLE) |
#define TreeView_GetSelection(hwnd) TreeView_GetNextItem(hwnd, NULL,
TVGN_CARET) | | #define TreeView_GetSelection(hwnd) TreeView_GetNextItem(hwnd, NULL,
TVGN_CARET) |
#define TreeView_GetDropHilight(hwnd) TreeView_GetNextItem(hwnd, NULL,
TVGN_DROPHILITE) | | #define TreeView_GetDropHilight(hwnd) TreeView_GetNextItem(hwnd, NULL,
TVGN_DROPHILITE) |
#define TreeView_GetRoot(hwnd) TreeView_GetNextItem(hwnd, NULL,
TVGN_ROOT) | | #define TreeView_GetRoot(hwnd) TreeView_GetNextItem(hwnd, NULL,
TVGN_ROOT) |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
|
#define TreeView_GetLastVisible(hwnd) TreeView_GetNextItem(hwnd, NULL,
TVGN_LASTVISIBLE) | | #define TreeView_GetLastVisible(hwnd) TreeView_GetNextItem(hwnd, NULL,
TVGN_LASTVISIBLE) |
#endif // _WIN32_IE >= 0x0400 | | #endif // _WIN32_IE >= 0x0400 |
|
| | #if (_WIN32_IE >= 0x0600) |
| | #define TreeView_GetNextSelected(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem |
| | , TVGN_NEXTSELECTED) |
| | #endif |
| | |
#define TVM_SELECTITEM (TV_FIRST + 11) | | #define TVM_SELECTITEM (TV_FIRST + 11) |
#define TreeView_Select(hwnd, hitem, code) \ | | #define TreeView_Select(hwnd, hitem, code) \ |
(BOOL)SNDMSG((hwnd), TVM_SELECTITEM, (WPARAM)(code), (LPARAM)(HTREEITEM)(hit
em)) | | (BOOL)SNDMSG((hwnd), TVM_SELECTITEM, (WPARAM)(code), (LPARAM)(HTREEITEM)(hit
em)) |
| | |
#define TreeView_SelectItem(hwnd, hitem) TreeView_Select(hwnd, hitem,
TVGN_CARET) | | #define TreeView_SelectItem(hwnd, hitem) TreeView_Select(hwnd, hitem,
TVGN_CARET) |
#define TreeView_SelectDropTarget(hwnd, hitem) TreeView_Select(hwnd, hitem,
TVGN_DROPHILITE) | | #define TreeView_SelectDropTarget(hwnd, hitem) TreeView_Select(hwnd, hitem,
TVGN_DROPHILITE) |
#define TreeView_SelectSetFirstVisible(hwnd, hitem) TreeView_Select(hwnd, hitem,
TVGN_FIRSTVISIBLE) | | #define TreeView_SelectSetFirstVisible(hwnd, hitem) TreeView_Select(hwnd, hitem,
TVGN_FIRSTVISIBLE) |
| | |
#define TVM_GETITEMA (TV_FIRST + 12) | | #define TVM_GETITEMA (TV_FIRST + 12) |
| | |
skipping to change at line 4910 | | skipping to change at line 5622 |
(COLORREF)SNDMSG((hwnd), TVM_GETINSERTMARKCOLOR, 0, 0) | | (COLORREF)SNDMSG((hwnd), TVM_GETINSERTMARKCOLOR, 0, 0) |
| | |
#endif /* (_WIN32_IE >= 0x0400) */ | | #endif /* (_WIN32_IE >= 0x0400) */ |
| | |
#if (_WIN32_IE >= 0x0500) | | #if (_WIN32_IE >= 0x0500) |
// tvm_?etitemstate only uses mask, state and stateMask. | | // tvm_?etitemstate only uses mask, state and stateMask. |
// so unicode or ansi is irrelevant. | | // so unicode or ansi is irrelevant. |
#define TreeView_SetItemState(hwndTV, hti, data, _mask) \ | | #define TreeView_SetItemState(hwndTV, hti, data, _mask) \ |
{ TVITEM _ms_TVi;\ | | { TVITEM _ms_TVi;\ |
_ms_TVi.mask = TVIF_STATE; \ | | _ms_TVi.mask = TVIF_STATE; \ |
|
_ms_TVi.hItem = hti; \ | | _ms_TVi.hItem = (hti); \ |
_ms_TVi.stateMask = _mask;\ | | _ms_TVi.stateMask = (_mask);\ |
_ms_TVi.state = data;\ | | _ms_TVi.state = (data);\ |
SNDMSG((hwndTV), TVM_SETITEM, 0, (LPARAM)(TV_ITEM *)&_ms_TVi);\ | | SNDMSG((hwndTV), TVM_SETITEM, 0, (LPARAM)(TV_ITEM *)&_ms_TVi);\ |
} | | } |
| | |
#define TreeView_SetCheckState(hwndTV, hti, fCheck) \ | | #define TreeView_SetCheckState(hwndTV, hti, fCheck) \ |
TreeView_SetItemState(hwndTV, hti, INDEXTOSTATEIMAGEMASK((fCheck)?2:1), TVIS_S
TATEIMAGEMASK) | | TreeView_SetItemState(hwndTV, hti, INDEXTOSTATEIMAGEMASK((fCheck)?2:1), TVIS_S
TATEIMAGEMASK) |
| | |
#define TVM_GETITEMSTATE (TV_FIRST + 39) | | #define TVM_GETITEMSTATE (TV_FIRST + 39) |
#define TreeView_GetItemState(hwndTV, hti, mask) \ | | #define TreeView_GetItemState(hwndTV, hti, mask) \ |
(UINT)SNDMSG((hwndTV), TVM_GETITEMSTATE, (WPARAM)(hti), (LPARAM)(mask)) | | (UINT)SNDMSG((hwndTV), TVM_GETITEMSTATE, (WPARAM)(hti), (LPARAM)(mask)) |
| | |
| | |
skipping to change at line 4943 | | skipping to change at line 5655 |
| | |
#endif | | #endif |
| | |
#if (_WIN32_WINNT >= 0x0501) | | #if (_WIN32_WINNT >= 0x0501) |
#define TVM_MAPACCIDTOHTREEITEM (TV_FIRST + 42) | | #define TVM_MAPACCIDTOHTREEITEM (TV_FIRST + 42) |
#define TreeView_MapAccIDToHTREEITEM(hwnd, id) \ | | #define TreeView_MapAccIDToHTREEITEM(hwnd, id) \ |
(HTREEITEM)SNDMSG((hwnd), TVM_MAPACCIDTOHTREEITEM, id, 0) | | (HTREEITEM)SNDMSG((hwnd), TVM_MAPACCIDTOHTREEITEM, id, 0) |
| | |
#define TVM_MAPHTREEITEMTOACCID (TV_FIRST + 43) | | #define TVM_MAPHTREEITEMTOACCID (TV_FIRST + 43) |
#define TreeView_MapHTREEITEMToAccID(hwnd, htreeitem) \ | | #define TreeView_MapHTREEITEMToAccID(hwnd, htreeitem) \ |
|
(UINT)SNDMSG((hwnd), TVM_MAPHTREEITEMTOACCID, (WPARAM)htreeitem, 0) | | (UINT)SNDMSG((hwnd), TVM_MAPHTREEITEMTOACCID, (WPARAM)(htreeitem), 0) |
| | |
| | #define TVM_SETEXTENDEDSTYLE (TV_FIRST + 44) |
| | #define TreeView_SetExtendedStyle(hwnd, dw, mask) \ |
| | (DWORD)SNDMSG((hwnd), TVM_SETEXTENDEDSTYLE, mask, dw) |
| | |
| | #define TVM_GETEXTENDEDSTYLE (TV_FIRST + 45) |
| | #define TreeView_GetExtendedStyle(hwnd) \ |
| | (DWORD)SNDMSG((hwnd), TVM_GETEXTENDEDSTYLE, 0, 0) |
| | |
| | #define TVM_SETAUTOSCROLLINFO (TV_FIRST + 59) |
| | #define TreeView_SetAutoScrollInfo(hwnd, uPixPerSec, uUpdateTime) \ |
| | SNDMSG((hwnd), TVM_SETAUTOSCROLLINFO, (WPARAM)(uPixPerSec), (LPARAM)(uUpdate |
| | Time)) |
| | #endif |
| | |
| | #if (_WIN32_WINNT >= 0x0600) |
| | #define TVM_GETSELECTEDCOUNT (TV_FIRST + 70) |
| | #define TreeView_GetSelectedCount(hwnd) \ |
| | (DWORD)SNDMSG((hwnd), TVM_GETSELECTEDCOUNT, 0, 0) |
| | |
| | #define TVM_SHOWINFOTIP (TV_FIRST + 71) |
| | #define TreeView_ShowInfoTip(hwnd, hitem) \ |
| | (DWORD)SNDMSG((hwnd), TVM_SHOWINFOTIP, 0, (LPARAM)(hitem)) |
| | |
| | typedef enum _TVITEMPART |
| | { |
| | TVGIPR_BUTTON = 0x0001, |
| | } TVITEMPART; |
| | |
| | typedef struct tagTVGETITEMPARTRECTINFO { |
| | HTREEITEM hti; |
| | RECT* prc; |
| | TVITEMPART partID; |
| | } TVGETITEMPARTRECTINFO; |
| | |
| | #define TVM_GETITEMPARTRECT (TV_FIRST + 72) |
| | #define TreeView_GetItemPartRect(hwnd, hitem, prc, partid) \ |
| | { TVGETITEMPARTRECTINFO info; \ |
| | info.hti = (hitem); \ |
| | info.prc = (prc); \ |
| | info.partID = (partid); \ |
| | (BOOL)SNDMSG((hwnd), TVM_GETITEMPARTRECT, 0, (LPARAM)&info); \ |
| | } |
| | |
#endif | | #endif |
| | |
typedef int (CALLBACK *PFNTVCOMPARE)(LPARAM lParam1, LPARAM lParam2, LPARAM lPar
amSort); | | typedef int (CALLBACK *PFNTVCOMPARE)(LPARAM lParam1, LPARAM lParam2, LPARAM lPar
amSort); |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define LPTV_SORTCB LPTVSORTCB | | #define LPTV_SORTCB LPTVSORTCB |
#define TV_SORTCB TVSORTCB | | #define TV_SORTCB TVSORTCB |
#else | | #else |
#define tagTVSORTCB _TV_SORTCB | | #define tagTVSORTCB _TV_SORTCB |
#define TVSORTCB TV_SORTCB | | #define TVSORTCB TV_SORTCB |
#define LPTVSORTCB LPTV_SORTCB | | #define LPTVSORTCB LPTV_SORTCB |
#endif | | #endif |
| | |
typedef struct tagTVSORTCB | | typedef struct tagTVSORTCB |
{ | | { |
|
HTREEITEM hParent; | | HTREEITEM hParent; |
PFNTVCOMPARE lpfnCompare; | | PFNTVCOMPARE lpfnCompare; |
LPARAM lParam; | | LPARAM lParam; |
} TVSORTCB, *LPTVSORTCB; | | } TVSORTCB, *LPTVSORTCB; |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define LPNM_TREEVIEWA LPNMTREEVIEWA | | #define LPNM_TREEVIEWA LPNMTREEVIEWA |
#define LPNM_TREEVIEWW LPNMTREEVIEWW | | #define LPNM_TREEVIEWW LPNMTREEVIEWW |
#define NM_TREEVIEWW NMTREEVIEWW | | #define NM_TREEVIEWW NMTREEVIEWW |
#define NM_TREEVIEWA NMTREEVIEWA | | #define NM_TREEVIEWA NMTREEVIEWA |
#else | | #else |
#define tagNMTREEVIEWA _NM_TREEVIEWA | | #define tagNMTREEVIEWA _NM_TREEVIEWA |
#define tagNMTREEVIEWW _NM_TREEVIEWW | | #define tagNMTREEVIEWW _NM_TREEVIEWW |
| | |
skipping to change at line 5052 | | skipping to change at line 5806 |
} NMTVDISPINFOW, *LPNMTVDISPINFOW; | | } NMTVDISPINFOW, *LPNMTVDISPINFOW; |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
#define NMTVDISPINFO NMTVDISPINFOW | | #define NMTVDISPINFO NMTVDISPINFOW |
#define LPNMTVDISPINFO LPNMTVDISPINFOW | | #define LPNMTVDISPINFO LPNMTVDISPINFOW |
#else | | #else |
#define NMTVDISPINFO NMTVDISPINFOA | | #define NMTVDISPINFO NMTVDISPINFOA |
#define LPNMTVDISPINFO LPNMTVDISPINFOA | | #define LPNMTVDISPINFO LPNMTVDISPINFOA |
#endif | | #endif |
| | |
|
| | #if (_WIN32_IE >= 0x0600) |
| | |
| | typedef struct tagTVDISPINFOEXA { |
| | NMHDR hdr; |
| | TVITEMEXA item; |
| | } NMTVDISPINFOEXA, *LPNMTVDISPINFOEXA; |
| | |
| | typedef struct tagTVDISPINFOEXW { |
| | NMHDR hdr; |
| | TVITEMEXW item; |
| | } NMTVDISPINFOEXW, *LPNMTVDISPINFOEXW; |
| | |
| | #ifdef UNICODE |
| | #define NMTVDISPINFOEX NMTVDISPINFOEXW |
| | #define LPNMTVDISPINFOEX LPNMTVDISPINFOEXW |
| | #else |
| | #define NMTVDISPINFOEX NMTVDISPINFOEXA |
| | #define LPNMTVDISPINFOEX LPNMTVDISPINFOEXA |
| | #endif |
| | |
| | #define TV_DISPINFOEXA NMTVDISPINFOEXA |
| | #define TV_DISPINFOEXW NMTVDISPINFOEXW |
| | #define TV_DISPINFOEX NMTVDISPINFOEX |
| | |
| | #endif |
#define TVN_ITEMEXPANDINGA (TVN_FIRST-5) | | #define TVN_ITEMEXPANDINGA (TVN_FIRST-5) |
#define TVN_ITEMEXPANDINGW (TVN_FIRST-54) | | #define TVN_ITEMEXPANDINGW (TVN_FIRST-54) |
#define TVN_ITEMEXPANDEDA (TVN_FIRST-6) | | #define TVN_ITEMEXPANDEDA (TVN_FIRST-6) |
#define TVN_ITEMEXPANDEDW (TVN_FIRST-55) | | #define TVN_ITEMEXPANDEDW (TVN_FIRST-55) |
#define TVN_BEGINDRAGA (TVN_FIRST-7) | | #define TVN_BEGINDRAGA (TVN_FIRST-7) |
#define TVN_BEGINDRAGW (TVN_FIRST-56) | | #define TVN_BEGINDRAGW (TVN_FIRST-56) |
#define TVN_BEGINRDRAGA (TVN_FIRST-8) | | #define TVN_BEGINRDRAGA (TVN_FIRST-8) |
#define TVN_BEGINRDRAGW (TVN_FIRST-57) | | #define TVN_BEGINRDRAGW (TVN_FIRST-57) |
#define TVN_DELETEITEMA (TVN_FIRST-9) | | #define TVN_DELETEITEMA (TVN_FIRST-9) |
#define TVN_DELETEITEMW (TVN_FIRST-58) | | #define TVN_DELETEITEMW (TVN_FIRST-58) |
| | |
skipping to change at line 5076 | | skipping to change at line 5855 |
#define TVN_KEYDOWN (TVN_FIRST-12) | | #define TVN_KEYDOWN (TVN_FIRST-12) |
| | |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
#define TVN_GETINFOTIPA (TVN_FIRST-13) | | #define TVN_GETINFOTIPA (TVN_FIRST-13) |
#define TVN_GETINFOTIPW (TVN_FIRST-14) | | #define TVN_GETINFOTIPW (TVN_FIRST-14) |
#define TVN_SINGLEEXPAND (TVN_FIRST-15) | | #define TVN_SINGLEEXPAND (TVN_FIRST-15) |
| | |
#define TVNRET_DEFAULT 0 | | #define TVNRET_DEFAULT 0 |
#define TVNRET_SKIPOLD 1 | | #define TVNRET_SKIPOLD 1 |
#define TVNRET_SKIPNEW 2 | | #define TVNRET_SKIPNEW 2 |
|
| | |
#endif // 0x400 | | #endif // 0x400 |
| | |
|
| | #if (_WIN32_IE >= 0x0600) |
| | #define TVN_ITEMCHANGINGA (TVN_FIRST-16) |
| | #define TVN_ITEMCHANGINGW (TVN_FIRST-17) |
| | #define TVN_ITEMCHANGEDA (TVN_FIRST-18) |
| | #define TVN_ITEMCHANGEDW (TVN_FIRST-19) |
| | #define TVN_ASYNCDRAW (TVN_FIRST-20) |
| | #endif |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
#define TV_KEYDOWN NMTVKEYDOWN | | #define TV_KEYDOWN NMTVKEYDOWN |
#else | | #else |
#define tagTVKEYDOWN _TV_KEYDOWN | | #define tagTVKEYDOWN _TV_KEYDOWN |
#define NMTVKEYDOWN TV_KEYDOWN | | #define NMTVKEYDOWN TV_KEYDOWN |
#endif | | #endif |
| | |
#ifdef _WIN32 | | #ifdef _WIN32 |
#include <pshpack1.h> | | #include <pshpack1.h> |
#endif | | #endif |
| | |
skipping to change at line 5177 | | skipping to change at line 5963 |
#define TVN_GETINFOTIP TVN_GETINFOTIPA | | #define TVN_GETINFOTIP TVN_GETINFOTIPA |
#define NMTVGETINFOTIP NMTVGETINFOTIPA | | #define NMTVGETINFOTIP NMTVGETINFOTIPA |
#define LPNMTVGETINFOTIP LPNMTVGETINFOTIPA | | #define LPNMTVGETINFOTIP LPNMTVGETINFOTIPA |
#endif | | #endif |
| | |
// treeview's customdraw return meaning don't draw images. valid on CDRF_NOTIFY
ITEMPREPAINT | | // treeview's customdraw return meaning don't draw images. valid on CDRF_NOTIFY
ITEMPREPAINT |
#define TVCDRF_NOIMAGES 0x00010000 | | #define TVCDRF_NOIMAGES 0x00010000 |
| | |
#endif // _WIN32_IE >= 0x0400 | | #endif // _WIN32_IE >= 0x0400 |
| | |
|
| | #if (_WIN32_IE > 0x0600) |
| | typedef struct tagTVITEMCHANGE { |
| | NMHDR hdr; |
| | UINT uChanged; |
| | HTREEITEM hItem; |
| | UINT uStateNew; |
| | UINT uStateOld; |
| | LPARAM lParam; |
| | } NMTVITEMCHANGE; |
| | |
| | typedef struct tagNMTVASYNCDRAW |
| | { |
| | NMHDR hdr; |
| | IMAGELISTDRAWPARAMS *pimldp; // the draw that failed |
| | HRESULT hr; // why it failed |
| | HTREEITEM hItem; // item that failed to draw icon |
| | LPARAM lParam; // its data |
| | // Out Params |
| | DWORD dwRetFlags; // What listview should do on return |
| | int iRetImageIndex; // used if ADRF_DRAWIMAGE is returned |
| | } NMTVASYNCDRAW; |
| | |
| | #ifdef UNICODE |
| | #define TVN_ITEMCHANGING TVN_ITEMCHANGINGW |
| | #define TVN_ITEMCHANGED TVN_ITEMCHANGEDW |
| | #else |
| | #define TVN_ITEMCHANGING TVN_ITEMCHANGINGA |
| | #define TVN_ITEMCHANGED TVN_ITEMCHANGEDA |
| | #endif |
| | |
| | #endif // _WIN32_IE >= 0x0600 |
| | |
#endif // NOTREEVIEW | | #endif // NOTREEVIEW |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
| | |
#ifndef NOUSEREXCONTROLS | | #ifndef NOUSEREXCONTROLS |
| | |
//////////////////// ComboBoxEx //////////////////////////////// | | //////////////////// ComboBoxEx //////////////////////////////// |
| | |
#define WC_COMBOBOXEXW L"ComboBoxEx32" | | #define WC_COMBOBOXEXW L"ComboBoxEx32" |
#define WC_COMBOBOXEXA "ComboBoxEx32" | | #define WC_COMBOBOXEXA "ComboBoxEx32" |
| | |
skipping to change at line 5275 | | skipping to change at line 6093 |
#ifdef UNICODE | | #ifdef UNICODE |
#define CBEM_INSERTITEM CBEM_INSERTITEMW | | #define CBEM_INSERTITEM CBEM_INSERTITEMW |
#define CBEM_SETITEM CBEM_SETITEMW | | #define CBEM_SETITEM CBEM_SETITEMW |
#define CBEM_GETITEM CBEM_GETITEMW | | #define CBEM_GETITEM CBEM_GETITEMW |
#else | | #else |
#define CBEM_INSERTITEM CBEM_INSERTITEMA | | #define CBEM_INSERTITEM CBEM_INSERTITEMA |
#define CBEM_SETITEM CBEM_SETITEMA | | #define CBEM_SETITEM CBEM_SETITEMA |
#define CBEM_GETITEM CBEM_GETITEMA | | #define CBEM_GETITEM CBEM_GETITEMA |
#endif | | #endif |
| | |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define CBEM_SETWINDOWTHEME CCM_SETWINDOWTHEME | | #define CBEM_SETWINDOWTHEME CCM_SETWINDOWTHEME |
#endif | | #endif |
| | |
#define CBES_EX_NOEDITIMAGE 0x00000001 | | #define CBES_EX_NOEDITIMAGE 0x00000001 |
#define CBES_EX_NOEDITIMAGEINDENT 0x00000002 | | #define CBES_EX_NOEDITIMAGEINDENT 0x00000002 |
#define CBES_EX_PATHWORDBREAKPROC 0x00000004 | | #define CBES_EX_PATHWORDBREAKPROC 0x00000004 |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
#define CBES_EX_NOSIZELIMIT 0x00000008 | | #define CBES_EX_NOSIZELIMIT 0x00000008 |
#define CBES_EX_CASESENSITIVE 0x00000010 | | #define CBES_EX_CASESENSITIVE 0x00000010 |
|
| | #if (_WIN32_WINNT >= 0x0600) |
| | #define CBES_EX_TEXTENDELLIPSIS 0x00000020 |
| | #endif |
| | |
typedef struct { | | typedef struct { |
NMHDR hdr; | | NMHDR hdr; |
COMBOBOXEXITEMA ceItem; | | COMBOBOXEXITEMA ceItem; |
} NMCOMBOBOXEXA, *PNMCOMBOBOXEXA; | | } NMCOMBOBOXEXA, *PNMCOMBOBOXEXA; |
| | |
typedef struct { | | typedef struct { |
NMHDR hdr; | | NMHDR hdr; |
COMBOBOXEXITEMW ceItem; | | COMBOBOXEXITEMW ceItem; |
} NMCOMBOBOXEXW, *PNMCOMBOBOXEXW; | | } NMCOMBOBOXEXW, *PNMCOMBOBOXEXW; |
| | |
skipping to change at line 5674 | | skipping to change at line 6495 |
#define TCM_HITTEST (TCM_FIRST + 13) | | #define TCM_HITTEST (TCM_FIRST + 13) |
#define TabCtrl_HitTest(hwndTC, pinfo) \ | | #define TabCtrl_HitTest(hwndTC, pinfo) \ |
(int)SNDMSG((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO *)(pinfo)) | | (int)SNDMSG((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO *)(pinfo)) |
| | |
#define TCM_SETITEMEXTRA (TCM_FIRST + 14) | | #define TCM_SETITEMEXTRA (TCM_FIRST + 14) |
#define TabCtrl_SetItemExtra(hwndTC, cb) \ | | #define TabCtrl_SetItemExtra(hwndTC, cb) \ |
(BOOL)SNDMSG((hwndTC), TCM_SETITEMEXTRA, (WPARAM)(cb), 0L) | | (BOOL)SNDMSG((hwndTC), TCM_SETITEMEXTRA, (WPARAM)(cb), 0L) |
| | |
#define TCM_ADJUSTRECT (TCM_FIRST + 40) | | #define TCM_ADJUSTRECT (TCM_FIRST + 40) |
#define TabCtrl_AdjustRect(hwnd, bLarger, prc) \ | | #define TabCtrl_AdjustRect(hwnd, bLarger, prc) \ |
|
(int)SNDMSG(hwnd, TCM_ADJUSTRECT, (WPARAM)(BOOL)(bLarger), (LPARAM)(RECT *)p
rc) | | (int)SNDMSG(hwnd, TCM_ADJUSTRECT, (WPARAM)(BOOL)(bLarger), (LPARAM)(RECT *)(
prc)) |
| | |
#define TCM_SETITEMSIZE (TCM_FIRST + 41) | | #define TCM_SETITEMSIZE (TCM_FIRST + 41) |
#define TabCtrl_SetItemSize(hwnd, x, y) \ | | #define TabCtrl_SetItemSize(hwnd, x, y) \ |
(DWORD)SNDMSG((hwnd), TCM_SETITEMSIZE, 0, MAKELPARAM(x,y)) | | (DWORD)SNDMSG((hwnd), TCM_SETITEMSIZE, 0, MAKELPARAM(x,y)) |
| | |
#define TCM_REMOVEIMAGE (TCM_FIRST + 42) | | #define TCM_REMOVEIMAGE (TCM_FIRST + 42) |
#define TabCtrl_RemoveImage(hwnd, i) \ | | #define TabCtrl_RemoveImage(hwnd, i) \ |
(void)SNDMSG((hwnd), TCM_REMOVEIMAGE, i, 0L) | | (void)SNDMSG((hwnd), TCM_REMOVEIMAGE, i, 0L) |
| | |
#define TCM_SETPADDING (TCM_FIRST + 43) | | #define TCM_SETPADDING (TCM_FIRST + 43) |
| | |
skipping to change at line 5813 | | skipping to change at line 6634 |
#define ACM_OPENW (WM_USER+103) | | #define ACM_OPENW (WM_USER+103) |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
#define ACM_OPEN ACM_OPENW | | #define ACM_OPEN ACM_OPENW |
#else | | #else |
#define ACM_OPEN ACM_OPENA | | #define ACM_OPEN ACM_OPENA |
#endif | | #endif |
| | |
#define ACM_PLAY (WM_USER+101) | | #define ACM_PLAY (WM_USER+101) |
#define ACM_STOP (WM_USER+102) | | #define ACM_STOP (WM_USER+102) |
|
| | #define ACM_ISPLAYING (WM_USER+104) |
| | |
#define ACN_START 1 | | #define ACN_START 1 |
#define ACN_STOP 2 | | #define ACN_STOP 2 |
| | |
#define Animate_Create(hwndP, id, dwStyle, hInstance) \ | | #define Animate_Create(hwndP, id, dwStyle, hInstance) \ |
CreateWindow(ANIMATE_CLASS, NULL, \ | | CreateWindow(ANIMATE_CLASS, NULL, \ |
dwStyle, 0, 0, 0, 0, hwndP, (HMENU)(id), hInstance, NULL) | | dwStyle, 0, 0, 0, 0, hwndP, (HMENU)(id), hInstance, NULL) |
| | |
#define Animate_Open(hwnd, szName) (BOOL)SNDMSG(hwnd, ACM_OPEN, 0, (LPA
RAM)(LPTSTR)(szName)) | | #define Animate_Open(hwnd, szName) (BOOL)SNDMSG(hwnd, ACM_OPEN, 0, (LPA
RAM)(LPTSTR)(szName)) |
#define Animate_OpenEx(hwnd, hInst, szName) (BOOL)SNDMSG(hwnd, ACM_OPEN, (WPARAM
)(hInst), (LPARAM)(LPTSTR)(szName)) | | #define Animate_OpenEx(hwnd, hInst, szName) (BOOL)SNDMSG(hwnd, ACM_OPEN, (WPARAM
)(hInst), (LPARAM)(LPTSTR)(szName)) |
#define Animate_Play(hwnd, from, to, rep) (BOOL)SNDMSG(hwnd, ACM_PLAY, (WPARAM
)(rep), (LPARAM)MAKELONG(from, to)) | | #define Animate_Play(hwnd, from, to, rep) (BOOL)SNDMSG(hwnd, ACM_PLAY, (WPARAM
)(rep), (LPARAM)MAKELONG(from, to)) |
#define Animate_Stop(hwnd) (BOOL)SNDMSG(hwnd, ACM_STOP, 0, 0) | | #define Animate_Stop(hwnd) (BOOL)SNDMSG(hwnd, ACM_STOP, 0, 0) |
|
| | #define Animate_IsPlaying(hwnd) (BOOL)SNDMSG(hwnd, ACM_ISPLAYING, 0,
0) |
#define Animate_Close(hwnd) Animate_Open(hwnd, NULL) | | #define Animate_Close(hwnd) Animate_Open(hwnd, NULL) |
#define Animate_Seek(hwnd, frame) Animate_Play(hwnd, frame, frame, 1) | | #define Animate_Seek(hwnd, frame) Animate_Play(hwnd, frame, frame, 1) |
#endif | | #endif |
| | |
#endif // NOANIMATE | | #endif // NOANIMATE |
| | |
#if (_WIN32_IE >= 0x0300) | | #if (_WIN32_IE >= 0x0300) |
//====== MONTHCAL CONTROL ====================================================== | | //====== MONTHCAL CONTROL ====================================================== |
| | |
#ifndef NOMONTHCAL | | #ifndef NOMONTHCAL |
| | |
skipping to change at line 5948 | | skipping to change at line 6771 |
#define MCM_HITTEST (MCM_FIRST + 14) | | #define MCM_HITTEST (MCM_FIRST + 14) |
#define MonthCal_HitTest(hmc, pinfo) \ | | #define MonthCal_HitTest(hmc, pinfo) \ |
SNDMSG(hmc, MCM_HITTEST, 0, (LPARAM)(PMCHITTESTINFO)(pinfo)) | | SNDMSG(hmc, MCM_HITTEST, 0, (LPARAM)(PMCHITTESTINFO)(pinfo)) |
| | |
typedef struct { | | typedef struct { |
UINT cbSize; | | UINT cbSize; |
POINT pt; | | POINT pt; |
| | |
UINT uHit; // out param | | UINT uHit; // out param |
SYSTEMTIME st; | | SYSTEMTIME st; |
|
| | #if (NTDDI_VERSION >= NTDDI_LONGHORN) |
| | RECT rc; |
| | int iOffset; |
| | int iRow; |
| | int iCol; |
| | #endif |
} MCHITTESTINFO, *PMCHITTESTINFO; | | } MCHITTESTINFO, *PMCHITTESTINFO; |
| | |
|
| | #define MCHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(MCHITTESTINFO, st) |
| | |
#define MCHT_TITLE 0x00010000 | | #define MCHT_TITLE 0x00010000 |
#define MCHT_CALENDAR 0x00020000 | | #define MCHT_CALENDAR 0x00020000 |
#define MCHT_TODAYLINK 0x00030000 | | #define MCHT_TODAYLINK 0x00030000 |
| | |
|
| | #if (NTDDI_VERSION >= NTDDI_LONGHORN) |
| | #define MCHT_CALENDARCONTROL 0x00100000 |
| | #endif |
| | |
#define MCHT_NEXT 0x01000000 // these indicate that hitt
ing | | #define MCHT_NEXT 0x01000000 // these indicate that hitt
ing |
#define MCHT_PREV 0x02000000 // here will go to the next/
prev month | | #define MCHT_PREV 0x02000000 // here will go to the next/
prev month |
| | |
#define MCHT_NOWHERE 0x00000000 | | #define MCHT_NOWHERE 0x00000000 |
| | |
#define MCHT_TITLEBK (MCHT_TITLE) | | #define MCHT_TITLEBK (MCHT_TITLE) |
#define MCHT_TITLEMONTH (MCHT_TITLE | 0x0001) | | #define MCHT_TITLEMONTH (MCHT_TITLE | 0x0001) |
#define MCHT_TITLEYEAR (MCHT_TITLE | 0x0002) | | #define MCHT_TITLEYEAR (MCHT_TITLE | 0x0002) |
#define MCHT_TITLEBTNNEXT (MCHT_TITLE | MCHT_NEXT | 0x0003) | | #define MCHT_TITLEBTNNEXT (MCHT_TITLE | MCHT_NEXT | 0x0003) |
#define MCHT_TITLEBTNPREV (MCHT_TITLE | MCHT_PREV | 0x0003) | | #define MCHT_TITLEBTNPREV (MCHT_TITLE | MCHT_PREV | 0x0003) |
| | |
#define MCHT_CALENDARBK (MCHT_CALENDAR) | | #define MCHT_CALENDARBK (MCHT_CALENDAR) |
#define MCHT_CALENDARDATE (MCHT_CALENDAR | 0x0001) | | #define MCHT_CALENDARDATE (MCHT_CALENDAR | 0x0001) |
#define MCHT_CALENDARDATENEXT (MCHT_CALENDARDATE | MCHT_NEXT) | | #define MCHT_CALENDARDATENEXT (MCHT_CALENDARDATE | MCHT_NEXT) |
#define MCHT_CALENDARDATEPREV (MCHT_CALENDARDATE | MCHT_PREV) | | #define MCHT_CALENDARDATEPREV (MCHT_CALENDARDATE | MCHT_PREV) |
#define MCHT_CALENDARDAY (MCHT_CALENDAR | 0x0002) | | #define MCHT_CALENDARDAY (MCHT_CALENDAR | 0x0002) |
#define MCHT_CALENDARWEEKNUM (MCHT_CALENDAR | 0x0003) | | #define MCHT_CALENDARWEEKNUM (MCHT_CALENDAR | 0x0003) |
|
| | #define MCHT_CALENDARDATEMIN (MCHT_CALENDAR | 0x0004) |
| | #define MCHT_CALENDARDATEMAX (MCHT_CALENDAR | 0x0005) |
| | |
// set first day of week to iDay: | | // set first day of week to iDay: |
// 0 for Monday, 1 for Tuesday, ..., 6 for Sunday | | // 0 for Monday, 1 for Tuesday, ..., 6 for Sunday |
// -1 for means use locale info | | // -1 for means use locale info |
#define MCM_SETFIRSTDAYOFWEEK (MCM_FIRST + 15) | | #define MCM_SETFIRSTDAYOFWEEK (MCM_FIRST + 15) |
#define MonthCal_SetFirstDayOfWeek(hmc, iDay) \ | | #define MonthCal_SetFirstDayOfWeek(hmc, iDay) \ |
SNDMSG(hmc, MCM_SETFIRSTDAYOFWEEK, 0, iDay) | | SNDMSG(hmc, MCM_SETFIRSTDAYOFWEEK, 0, iDay) |
| | |
// DWORD result... low word has the day. high word is bool if this is app set | | // DWORD result... low word has the day. high word is bool if this is app set |
// or not (FALSE == using locale info) | | // or not (FALSE == using locale info) |
| | |
skipping to change at line 6031 | | skipping to change at line 6868 |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
#define MCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT | | #define MCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT |
#define MonthCal_SetUnicodeFormat(hwnd, fUnicode) \ | | #define MonthCal_SetUnicodeFormat(hwnd, fUnicode) \ |
(BOOL)SNDMSG((hwnd), MCM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0) | | (BOOL)SNDMSG((hwnd), MCM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0) |
| | |
#define MCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT | | #define MCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT |
#define MonthCal_GetUnicodeFormat(hwnd) \ | | #define MonthCal_GetUnicodeFormat(hwnd) \ |
(BOOL)SNDMSG((hwnd), MCM_GETUNICODEFORMAT, 0, 0) | | (BOOL)SNDMSG((hwnd), MCM_GETUNICODEFORMAT, 0, 0) |
#endif | | #endif |
| | |
|
| | #if (NTDDI_VERSION >= NTDDI_LONGHORN) |
| | // View |
| | #define MCMV_MONTH 0 |
| | #define MCMV_YEAR 1 |
| | #define MCMV_DECADE 2 |
| | #define MCMV_CENTURY 3 |
| | #define MCMV_MAX MCMV_CENTURY |
| | |
| | #define MCM_GETCURRENTVIEW (MCM_FIRST + 22) |
| | #define MonthCal_GetCurrentView(hmc) \ |
| | (DWORD)SNDMSG(hmc, MCM_GETCURRENTVIEW, 0, 0) |
| | |
| | #define MCM_GETCALENDARCOUNT (MCM_FIRST + 23) |
| | #define MonthCal_GetCalendarCount(hmc) \ |
| | (DWORD)SNDMSG(hmc, MCM_GETCALENDARCOUNT, 0, 0) |
| | |
| | // Part |
| | #define MCGIP_CALENDARCONTROL 0 |
| | #define MCGIP_NEXT 1 |
| | #define MCGIP_PREV 2 |
| | #define MCGIP_FOOTER 3 |
| | #define MCGIP_CALENDAR 4 |
| | #define MCGIP_CALENDARHEADER 5 |
| | #define MCGIP_CALENDARBODY 6 |
| | #define MCGIP_CALENDARROW 7 |
| | #define MCGIP_CALENDARCELL 8 |
| | |
| | #define MCGIF_DATE 0x00000001 |
| | #define MCGIF_RECT 0x00000002 |
| | #define MCGIF_NAME 0x00000004 |
| | |
| | // Note: iRow of -1 refers to the row header and iCol of -1 refers to the col he |
| | ader. |
| | typedef struct tagMCGRIDINFO { |
| | UINT cbSize; |
| | DWORD dwPart; |
| | DWORD dwFlags; |
| | int iCalendar; |
| | int iRow; |
| | int iCol; |
| | BOOL bSelected; |
| | SYSTEMTIME stStart; |
| | SYSTEMTIME stEnd; |
| | RECT rc; |
| | PWSTR pszName; |
| | size_t cchName; |
| | } MCGRIDINFO, *PMCGRIDINFO; |
| | |
| | #define MCM_GETCALENDARGRIDINFO (MCM_FIRST + 24) |
| | #define MonthCal_GetCalendarGridInfo(hmc, pmcGridInfo) \ |
| | (BOOL)SNDMSG(hmc, MCM_GETCALENDARGRIDINFO, 0, (LPARAM)(PMCGRIDINFO)(pmcG |
| | ridInfo)) |
| | |
| | #define MCM_GETCALID (MCM_FIRST + 27) |
| | #define MonthCal_GetCALID(hmc) \ |
| | (CALID)SNDMSG(hmc, MCM_GETCALID, 0, 0) |
| | |
| | #define MCM_SETCALID (MCM_FIRST + 28) |
| | #define MonthCal_SetCALID(hmc, calid) \ |
| | SNDMSG(hmc, MCM_SETCALID, (WPARAM)(calid), 0) |
| | |
| | // Returns the min rect that will fit the max number of calendars for the passed |
| | in rect. |
| | #define MCM_SIZERECTTOMIN (MCM_FIRST + 29) |
| | #define MonthCal_SizeRectToMin(hmc, prc) \ |
| | SNDMSG(hmc, MCM_SIZERECTTOMIN, 0, (LPARAM)(prc)) |
| | |
| | #define MCM_SETCALENDARBORDER (MCM_FIRST + 30) |
| | #define MonthCal_SetCalendarBorder(hmc, fset, xyborder) \ |
| | SNDMSG(hmc, MCM_SETCALENDARBORDER, (WPARAM)(fset), (LPARAM)(xyborder)) |
| | |
| | #define MCM_GETCALENDARBORDER (MCM_FIRST + 31) |
| | #define MonthCal_GetCalendarBorder(hmc) \ |
| | (int)SNDMSG(hmc, MCM_GETCALENDARBORDER, 0, 0) |
| | |
| | #define MCM_SETCURRENTVIEW (MCM_FIRST + 32) |
| | #define MonthCal_SetCurrentView(hmc, dwNewView) \ |
| | (BOOL)SNDMSG(hmc, MCM_SETCURRENTVIEW, 0, (LPARAM)(dwNewView)) |
| | |
| | #endif |
| | |
// MCN_SELCHANGE is sent whenever the currently displayed date changes | | // MCN_SELCHANGE is sent whenever the currently displayed date changes |
// via month change, year change, keyboard navigation, prev/next button | | // via month change, year change, keyboard navigation, prev/next button |
// | | // |
typedef struct tagNMSELCHANGE | | typedef struct tagNMSELCHANGE |
{ | | { |
NMHDR nmhdr; // this must be first, so we don't break WM_NOTIFY | | NMHDR nmhdr; // this must be first, so we don't break WM_NOTIFY |
| | |
SYSTEMTIME stSelStart; | | SYSTEMTIME stSelStart; |
SYSTEMTIME stSelEnd; | | SYSTEMTIME stSelEnd; |
} NMSELCHANGE, *LPNMSELCHANGE; | | } NMSELCHANGE, *LPNMSELCHANGE; |
| | |
|
#define MCN_SELCHANGE (MCN_FIRST + 1) | | #define MCN_SELCHANGE (MCN_FIRST - 3) // -749 |
| | |
// MCN_GETDAYSTATE is sent for MCS_DAYSTATE controls whenever new daystate | | // MCN_GETDAYSTATE is sent for MCS_DAYSTATE controls whenever new daystate |
// information is needed (month or year scroll) to draw bolding information. | | // information is needed (month or year scroll) to draw bolding information. |
// The app must fill in cDayState months worth of information starting from | | // The app must fill in cDayState months worth of information starting from |
// stStart date. The app may fill in the array at prgDayState or change | | // stStart date. The app may fill in the array at prgDayState or change |
// prgDayState to point to a different array out of which the information | | // prgDayState to point to a different array out of which the information |
// will be copied. (similar to tooltips) | | // will be copied. (similar to tooltips) |
// | | // |
typedef struct tagNMDAYSTATE | | typedef struct tagNMDAYSTATE |
{ | | { |
NMHDR nmhdr; // this must be first, so we don't break WM_NOTIFY | | NMHDR nmhdr; // this must be first, so we don't break WM_NOTIFY |
| | |
SYSTEMTIME stStart; | | SYSTEMTIME stStart; |
int cDayState; | | int cDayState; |
| | |
LPMONTHDAYSTATE prgDayState; // points to cDayState MONTHDAYSTATEs | | LPMONTHDAYSTATE prgDayState; // points to cDayState MONTHDAYSTATEs |
} NMDAYSTATE, *LPNMDAYSTATE; | | } NMDAYSTATE, *LPNMDAYSTATE; |
| | |
|
#define MCN_GETDAYSTATE (MCN_FIRST + 3) | | #define MCN_GETDAYSTATE (MCN_FIRST - 1) // -747 |
| | |
// MCN_SELECT is sent whenever a selection has occured (via mouse or keyboard) | | // MCN_SELECT is sent whenever a selection has occured (via mouse or keyboard) |
// | | // |
typedef NMSELCHANGE NMSELECT, *LPNMSELECT; | | typedef NMSELCHANGE NMSELECT, *LPNMSELECT; |
| | |
|
#define MCN_SELECT (MCN_FIRST + 4) | | #define MCN_SELECT (MCN_FIRST) // -746 |
| | |
| | typedef struct tagNMVIEWCHANGE |
| | { |
| | NMHDR nmhdr; // this must be first, so we don't break WM_NOTIFY |
| | DWORD dwOldView; |
| | DWORD dwNewView; |
| | } NMVIEWCHANGE, *LPNMVIEWCHANGE; |
| | |
| | #define MCN_VIEWCHANGE (MCN_FIRST - 4) // -750 |
| | |
// begin_r_commctrl | | // begin_r_commctrl |
| | |
#define MCS_DAYSTATE 0x0001 | | #define MCS_DAYSTATE 0x0001 |
#define MCS_MULTISELECT 0x0002 | | #define MCS_MULTISELECT 0x0002 |
#define MCS_WEEKNUMBERS 0x0004 | | #define MCS_WEEKNUMBERS 0x0004 |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
#define MCS_NOTODAYCIRCLE 0x0008 | | #define MCS_NOTODAYCIRCLE 0x0008 |
#define MCS_NOTODAY 0x0010 | | #define MCS_NOTODAY 0x0010 |
#else | | #else |
#define MCS_NOTODAY 0x0008 | | #define MCS_NOTODAY 0x0008 |
#endif | | #endif |
|
| | #if (NTDDI_VERSION >= NTDDI_LONGHORN) |
| | #define MCS_NOTRAILINGDATES 0x0040 |
| | #define MCS_SHORTDAYSOFWEEK 0x0080 |
| | #define MCS_NOSELCHANGEONNAV 0x0100 |
| | #endif |
| | |
// end_r_commctrl | | // end_r_commctrl |
| | |
#define GMR_VISIBLE 0 // visible portion of display | | #define GMR_VISIBLE 0 // visible portion of display |
#define GMR_DAYSTATE 1 // above plus the grayed out parts of | | #define GMR_DAYSTATE 1 // above plus the grayed out parts of |
// partially displayed months | | // partially displayed months |
| | |
#endif // _WIN32 | | #endif // _WIN32 |
#endif // NOMONTHCAL | | #endif // NOMONTHCAL |
| | |
| | |
skipping to change at line 6104 | | skipping to change at line 7033 |
| | |
#define DATETIMEPICK_CLASSW L"SysDateTimePick32" | | #define DATETIMEPICK_CLASSW L"SysDateTimePick32" |
#define DATETIMEPICK_CLASSA "SysDateTimePick32" | | #define DATETIMEPICK_CLASSA "SysDateTimePick32" |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
#define DATETIMEPICK_CLASS DATETIMEPICK_CLASSW | | #define DATETIMEPICK_CLASS DATETIMEPICK_CLASSW |
#else | | #else |
#define DATETIMEPICK_CLASS DATETIMEPICK_CLASSA | | #define DATETIMEPICK_CLASS DATETIMEPICK_CLASSA |
#endif | | #endif |
| | |
|
| | #if (NTDDI_VERSION >= NTDDI_LONGHORN) |
| | |
| | typedef struct tagDATETIMEPICKERINFO |
| | { |
| | DWORD cbSize; |
| | |
| | RECT rcCheck; |
| | DWORD stateCheck; |
| | |
| | RECT rcButton; |
| | DWORD stateButton; |
| | |
| | HWND hwndEdit; |
| | HWND hwndUD; |
| | HWND hwndDropDown; |
| | } DATETIMEPICKERINFO, *LPDATETIMEPICKERINFO; |
| | |
| | #endif // (NTDDI_VERSION >= NTDDI_LONGHORN) |
| | |
#define DTM_FIRST 0x1000 | | #define DTM_FIRST 0x1000 |
| | |
// DWORD DateTimePick_GetSystemtime(HWND hdp, LPSYSTEMTIME pst) | | // DWORD DateTimePick_GetSystemtime(HWND hdp, LPSYSTEMTIME pst) |
// returns GDT_NONE if "none" is selected (DTS_SHOWNONE only) | | // returns GDT_NONE if "none" is selected (DTS_SHOWNONE only) |
// returns GDT_VALID and modifies *pst to be the currently selected value | | // returns GDT_VALID and modifies *pst to be the currently selected value |
#define DTM_GETSYSTEMTIME (DTM_FIRST + 1) | | #define DTM_GETSYSTEMTIME (DTM_FIRST + 1) |
#define DateTime_GetSystemtime(hdp, pst) (DWORD)SNDMSG(hdp, DTM_GETSYSTEMTIME
, 0, (LPARAM)(pst)) | | #define DateTime_GetSystemtime(hdp, pst) (DWORD)SNDMSG(hdp, DTM_GETSYSTEMTIME
, 0, (LPARAM)(pst)) |
| | |
// BOOL DateTime_SetSystemtime(HWND hdp, DWORD gd, LPSYSTEMTIME pst) | | // BOOL DateTime_SetSystemtime(HWND hdp, DWORD gd, LPSYSTEMTIME pst) |
// if gd==GDT_NONE, sets datetimepick to None (DTS_SHOWNONE only) | | // if gd==GDT_NONE, sets datetimepick to None (DTS_SHOWNONE only) |
| | |
skipping to change at line 6171 | | skipping to change at line 7119 |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
| | |
#define DTM_SETMCFONT (DTM_FIRST + 9) | | #define DTM_SETMCFONT (DTM_FIRST + 9) |
#define DateTime_SetMonthCalFont(hdp, hfont, fRedraw) SNDMSG(hdp, DTM_SETMCFONT,
(WPARAM)(hfont), (LPARAM)(fRedraw)) | | #define DateTime_SetMonthCalFont(hdp, hfont, fRedraw) SNDMSG(hdp, DTM_SETMCFONT,
(WPARAM)(hfont), (LPARAM)(fRedraw)) |
| | |
#define DTM_GETMCFONT (DTM_FIRST + 10) | | #define DTM_GETMCFONT (DTM_FIRST + 10) |
#define DateTime_GetMonthCalFont(hdp) SNDMSG(hdp, DTM_GETMCFONT, 0, 0) | | #define DateTime_GetMonthCalFont(hdp) SNDMSG(hdp, DTM_GETMCFONT, 0, 0) |
| | |
#endif // _WIN32_IE >= 0x0400 | | #endif // _WIN32_IE >= 0x0400 |
| | |
|
| | #if (NTDDI_VERSION >= NTDDI_LONGHORN) |
| | |
| | #define DTM_SETMCSTYLE (DTM_FIRST + 11) |
| | #define DateTime_SetMonthCalStyle(hdp, dwStyle) SNDMSG(hdp, DTM_SETMCSTYLE, 0, ( |
| | LPARAM)dwStyle) |
| | |
| | #define DTM_GETMCSTYLE (DTM_FIRST + 12) |
| | #define DateTime_GetMonthCalStyle(hdp) SNDMSG(hdp, DTM_GETMCSTYLE, 0, 0) |
| | |
| | #define DTM_CLOSEMONTHCAL (DTM_FIRST + 13) |
| | #define DateTime_CloseMonthCal(hdp) SNDMSG(hdp, DTM_CLOSEMONTHCAL, 0, 0) |
| | |
| | // DateTime_GetDateTimePickerInfo(HWND hdp, DATETIMEPICKERINFO* pdtpi) |
| | // Retrieves information about the selected date time picker. |
| | #define DTM_GETDATETIMEPICKERINFO (DTM_FIRST + 14) |
| | #define DateTime_GetDateTimePickerInfo(hdp, pdtpi) SNDMSG(hdp, DTM_GETDATETIMEPI |
| | CKERINFO, 0, (LPARAM)(pdtpi)) |
| | |
| | #define DTM_GETIDEALSIZE (DTM_FIRST + 15) |
| | #define DateTime_GetIdealSize(hdp, psize) (BOOL)SNDMSG((hdp), DTM_GETIDEALSIZE, |
| | 0, (LPARAM)(psize)) |
| | |
| | #endif // (NTDDI_VERSION >= NTDDI_LONGHORN) |
| | |
// begin_r_commctrl | | // begin_r_commctrl |
| | |
#define DTS_UPDOWN 0x0001 // use UPDOWN instead of MONTHCAL | | #define DTS_UPDOWN 0x0001 // use UPDOWN instead of MONTHCAL |
#define DTS_SHOWNONE 0x0002 // allow a NONE selection | | #define DTS_SHOWNONE 0x0002 // allow a NONE selection |
#define DTS_SHORTDATEFORMAT 0x0000 // use the short date format (app must forwar
d WM_WININICHANGE messages) | | #define DTS_SHORTDATEFORMAT 0x0000 // use the short date format (app must forwar
d WM_WININICHANGE messages) |
#define DTS_LONGDATEFORMAT 0x0004 // use the long date format (app must forward
WM_WININICHANGE messages) | | #define DTS_LONGDATEFORMAT 0x0004 // use the long date format (app must forward
WM_WININICHANGE messages) |
#if (_WIN32_IE >= 0x500) | | #if (_WIN32_IE >= 0x500) |
#define DTS_SHORTDATECENTURYFORMAT 0x000C// short date format with century (app
must forward WM_WININICHANGE messages) | | #define DTS_SHORTDATECENTURYFORMAT 0x000C// short date format with century (app
must forward WM_WININICHANGE messages) |
#endif // (_WIN32_IE >= 0x500) | | #endif // (_WIN32_IE >= 0x500) |
#define DTS_TIMEFORMAT 0x0009 // use the time format (app must forward WM_W
ININICHANGE messages) | | #define DTS_TIMEFORMAT 0x0009 // use the time format (app must forward WM_W
ININICHANGE messages) |
#define DTS_APPCANPARSE 0x0010 // allow user entered strings (app MUST respo
nd to DTN_USERSTRING) | | #define DTS_APPCANPARSE 0x0010 // allow user entered strings (app MUST respo
nd to DTN_USERSTRING) |
#define DTS_RIGHTALIGN 0x0020 // right-align popup instead of left-align it | | #define DTS_RIGHTALIGN 0x0020 // right-align popup instead of left-align it |
| | |
// end_r_commctrl | | // end_r_commctrl |
| | |
|
#define DTN_DATETIMECHANGE (DTN_FIRST + 1) // the systemtime has changed | | #define DTN_DATETIMECHANGE (DTN_FIRST2 - 6) // the systemtime has changed, -759 |
typedef struct tagNMDATETIMECHANGE | | typedef struct tagNMDATETIMECHANGE |
{ | | { |
NMHDR nmhdr; | | NMHDR nmhdr; |
DWORD dwFlags; // GDT_VALID or GDT_NONE | | DWORD dwFlags; // GDT_VALID or GDT_NONE |
SYSTEMTIME st; // valid iff dwFlags==GDT_VALID | | SYSTEMTIME st; // valid iff dwFlags==GDT_VALID |
} NMDATETIMECHANGE, *LPNMDATETIMECHANGE; | | } NMDATETIMECHANGE, *LPNMDATETIMECHANGE; |
| | |
|
#define DTN_USERSTRINGA (DTN_FIRST + 2) // the user has entered a string | | #define DTN_USERSTRINGA (DTN_FIRST2 - 5) // the user has entered a string, -758 |
#define DTN_USERSTRINGW (DTN_FIRST + 15) | | #define DTN_USERSTRINGW (DTN_FIRST - 5) // -745 |
typedef struct tagNMDATETIMESTRINGA | | typedef struct tagNMDATETIMESTRINGA |
{ | | { |
NMHDR nmhdr; | | NMHDR nmhdr; |
LPCSTR pszUserString; // string user entered | | LPCSTR pszUserString; // string user entered |
SYSTEMTIME st; // app fills this in | | SYSTEMTIME st; // app fills this in |
DWORD dwFlags; // GDT_VALID or GDT_NONE | | DWORD dwFlags; // GDT_VALID or GDT_NONE |
} NMDATETIMESTRINGA, *LPNMDATETIMESTRINGA; | | } NMDATETIMESTRINGA, *LPNMDATETIMESTRINGA; |
| | |
typedef struct tagNMDATETIMESTRINGW | | typedef struct tagNMDATETIMESTRINGW |
{ | | { |
| | |
skipping to change at line 6222 | | skipping to change at line 7191 |
#ifdef UNICODE | | #ifdef UNICODE |
#define DTN_USERSTRING DTN_USERSTRINGW | | #define DTN_USERSTRING DTN_USERSTRINGW |
#define NMDATETIMESTRING NMDATETIMESTRINGW | | #define NMDATETIMESTRING NMDATETIMESTRINGW |
#define LPNMDATETIMESTRING LPNMDATETIMESTRINGW | | #define LPNMDATETIMESTRING LPNMDATETIMESTRINGW |
#else | | #else |
#define DTN_USERSTRING DTN_USERSTRINGA | | #define DTN_USERSTRING DTN_USERSTRINGA |
#define NMDATETIMESTRING NMDATETIMESTRINGA | | #define NMDATETIMESTRING NMDATETIMESTRINGA |
#define LPNMDATETIMESTRING LPNMDATETIMESTRINGA | | #define LPNMDATETIMESTRING LPNMDATETIMESTRINGA |
#endif | | #endif |
| | |
|
#define DTN_WMKEYDOWNA (DTN_FIRST + 3) // modify keydown on app format field (X | | #define DTN_WMKEYDOWNA (DTN_FIRST2 - 4) // modify keydown on app format field ( |
) | | X), , -757 |
#define DTN_WMKEYDOWNW (DTN_FIRST + 16) | | #define DTN_WMKEYDOWNW (DTN_FIRST - 4) // -744 |
typedef struct tagNMDATETIMEWMKEYDOWNA | | typedef struct tagNMDATETIMEWMKEYDOWNA |
{ | | { |
NMHDR nmhdr; | | NMHDR nmhdr; |
int nVirtKey; // virtual key code of WM_KEYDOWN which MODIFIES an X
field | | int nVirtKey; // virtual key code of WM_KEYDOWN which MODIFIES an X
field |
LPCSTR pszFormat; // format substring | | LPCSTR pszFormat; // format substring |
SYSTEMTIME st; // current systemtime, app should modify based on key | | SYSTEMTIME st; // current systemtime, app should modify based on key |
} NMDATETIMEWMKEYDOWNA, *LPNMDATETIMEWMKEYDOWNA; | | } NMDATETIMEWMKEYDOWNA, *LPNMDATETIMEWMKEYDOWNA; |
| | |
typedef struct tagNMDATETIMEWMKEYDOWNW | | typedef struct tagNMDATETIMEWMKEYDOWNW |
{ | | { |
| | |
skipping to change at line 6250 | | skipping to change at line 7219 |
#ifdef UNICODE | | #ifdef UNICODE |
#define DTN_WMKEYDOWN DTN_WMKEYDOWNW | | #define DTN_WMKEYDOWN DTN_WMKEYDOWNW |
#define NMDATETIMEWMKEYDOWN NMDATETIMEWMKEYDOWNW | | #define NMDATETIMEWMKEYDOWN NMDATETIMEWMKEYDOWNW |
#define LPNMDATETIMEWMKEYDOWN LPNMDATETIMEWMKEYDOWNW | | #define LPNMDATETIMEWMKEYDOWN LPNMDATETIMEWMKEYDOWNW |
#else | | #else |
#define DTN_WMKEYDOWN DTN_WMKEYDOWNA | | #define DTN_WMKEYDOWN DTN_WMKEYDOWNA |
#define NMDATETIMEWMKEYDOWN NMDATETIMEWMKEYDOWNA | | #define NMDATETIMEWMKEYDOWN NMDATETIMEWMKEYDOWNA |
#define LPNMDATETIMEWMKEYDOWN LPNMDATETIMEWMKEYDOWNA | | #define LPNMDATETIMEWMKEYDOWN LPNMDATETIMEWMKEYDOWNA |
#endif | | #endif |
| | |
|
#define DTN_FORMATA (DTN_FIRST + 4) // query display for app format field (X) | | #define DTN_FORMATA (DTN_FIRST2 - 3) // query display for app format field (X), |
#define DTN_FORMATW (DTN_FIRST + 17) | | -756 |
| | #define DTN_FORMATW (DTN_FIRST - 3) // -743 |
typedef struct tagNMDATETIMEFORMATA | | typedef struct tagNMDATETIMEFORMATA |
{ | | { |
NMHDR nmhdr; | | NMHDR nmhdr; |
LPCSTR pszFormat; // format substring | | LPCSTR pszFormat; // format substring |
SYSTEMTIME st; // current systemtime | | SYSTEMTIME st; // current systemtime |
LPCSTR pszDisplay; // string to display | | LPCSTR pszDisplay; // string to display |
CHAR szDisplay[64]; // buffer pszDisplay originally points at | | CHAR szDisplay[64]; // buffer pszDisplay originally points at |
} NMDATETIMEFORMATA, *LPNMDATETIMEFORMATA; | | } NMDATETIMEFORMATA, *LPNMDATETIMEFORMATA; |
| | |
typedef struct tagNMDATETIMEFORMATW | | typedef struct tagNMDATETIMEFORMATW |
| | |
skipping to change at line 6280 | | skipping to change at line 7249 |
#ifdef UNICODE | | #ifdef UNICODE |
#define DTN_FORMAT DTN_FORMATW | | #define DTN_FORMAT DTN_FORMATW |
#define NMDATETIMEFORMAT NMDATETIMEFORMATW | | #define NMDATETIMEFORMAT NMDATETIMEFORMATW |
#define LPNMDATETIMEFORMAT LPNMDATETIMEFORMATW | | #define LPNMDATETIMEFORMAT LPNMDATETIMEFORMATW |
#else | | #else |
#define DTN_FORMAT DTN_FORMATA | | #define DTN_FORMAT DTN_FORMATA |
#define NMDATETIMEFORMAT NMDATETIMEFORMATA | | #define NMDATETIMEFORMAT NMDATETIMEFORMATA |
#define LPNMDATETIMEFORMAT LPNMDATETIMEFORMATA | | #define LPNMDATETIMEFORMAT LPNMDATETIMEFORMATA |
#endif | | #endif |
| | |
|
#define DTN_FORMATQUERYA (DTN_FIRST + 5) // query formatting info for app forma | | #define DTN_FORMATQUERYA (DTN_FIRST2 - 2) // query formatting info for app form |
t field (X) | | at field (X), -755 |
#define DTN_FORMATQUERYW (DTN_FIRST + 18) | | #define DTN_FORMATQUERYW (DTN_FIRST - 2) // -742 |
typedef struct tagNMDATETIMEFORMATQUERYA | | typedef struct tagNMDATETIMEFORMATQUERYA |
{ | | { |
NMHDR nmhdr; | | NMHDR nmhdr; |
LPCSTR pszFormat; // format substring | | LPCSTR pszFormat; // format substring |
SIZE szMax; // max bounding rectangle app will use for this format st
ring | | SIZE szMax; // max bounding rectangle app will use for this format st
ring |
} NMDATETIMEFORMATQUERYA, *LPNMDATETIMEFORMATQUERYA; | | } NMDATETIMEFORMATQUERYA, *LPNMDATETIMEFORMATQUERYA; |
| | |
typedef struct tagNMDATETIMEFORMATQUERYW | | typedef struct tagNMDATETIMEFORMATQUERYW |
{ | | { |
NMHDR nmhdr; | | NMHDR nmhdr; |
| | |
skipping to change at line 6306 | | skipping to change at line 7275 |
#ifdef UNICODE | | #ifdef UNICODE |
#define DTN_FORMATQUERY DTN_FORMATQUERYW | | #define DTN_FORMATQUERY DTN_FORMATQUERYW |
#define NMDATETIMEFORMATQUERY NMDATETIMEFORMATQUERYW | | #define NMDATETIMEFORMATQUERY NMDATETIMEFORMATQUERYW |
#define LPNMDATETIMEFORMATQUERY LPNMDATETIMEFORMATQUERYW | | #define LPNMDATETIMEFORMATQUERY LPNMDATETIMEFORMATQUERYW |
#else | | #else |
#define DTN_FORMATQUERY DTN_FORMATQUERYA | | #define DTN_FORMATQUERY DTN_FORMATQUERYA |
#define NMDATETIMEFORMATQUERY NMDATETIMEFORMATQUERYA | | #define NMDATETIMEFORMATQUERY NMDATETIMEFORMATQUERYA |
#define LPNMDATETIMEFORMATQUERY LPNMDATETIMEFORMATQUERYA | | #define LPNMDATETIMEFORMATQUERY LPNMDATETIMEFORMATQUERYA |
#endif | | #endif |
| | |
|
#define DTN_DROPDOWN (DTN_FIRST + 6) // MonthCal has dropped down | | #define DTN_DROPDOWN (DTN_FIRST2 - 1) // MonthCal has dropped down, -754 |
#define DTN_CLOSEUP (DTN_FIRST + 7) // MonthCal is popping up | | #define DTN_CLOSEUP (DTN_FIRST2) // MonthCal is popping up, -753 |
| | |
#define GDTR_MIN 0x0001 | | #define GDTR_MIN 0x0001 |
#define GDTR_MAX 0x0002 | | #define GDTR_MAX 0x0002 |
| | |
#define GDT_ERROR -1 | | #define GDT_ERROR -1 |
#define GDT_VALID 0 | | #define GDT_VALID 0 |
#define GDT_NONE 1 | | #define GDT_NONE 1 |
| | |
#endif // _WIN32 | | #endif // _WIN32 |
#endif // NODATETIMEPICK | | #endif // NODATETIMEPICK |
| | |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
| | |
#ifndef NOIPADDRESS | | #ifndef NOIPADDRESS |
| | |
/////////////////////////////////////////////// | | /////////////////////////////////////////////// |
|
/// IP Address edit control | | // IP Address edit control |
| | |
// Messages sent to IPAddress controls | | // Messages sent to IPAddress controls |
| | |
#define IPM_CLEARADDRESS (WM_USER+100) // no parameters | | #define IPM_CLEARADDRESS (WM_USER+100) // no parameters |
#define IPM_SETADDRESS (WM_USER+101) // lparam = TCP/IP address | | #define IPM_SETADDRESS (WM_USER+101) // lparam = TCP/IP address |
#define IPM_GETADDRESS (WM_USER+102) // lresult = # of non black fields. lpar
am = LPDWORD for TCP/IP address | | #define IPM_GETADDRESS (WM_USER+102) // lresult = # of non black fields. lpar
am = LPDWORD for TCP/IP address |
#define IPM_SETRANGE (WM_USER+103) // wparam = field, lparam = range | | #define IPM_SETRANGE (WM_USER+103) // wparam = field, lparam = range |
#define IPM_SETFOCUS (WM_USER+104) // wparam = field | | #define IPM_SETFOCUS (WM_USER+104) // wparam = field |
#define IPM_ISBLANK (WM_USER+105) // no parameters | | #define IPM_ISBLANK (WM_USER+105) // no parameters |
| | |
| | |
skipping to change at line 6363 | | skipping to change at line 7332 |
// IPM_SETRANGE message. | | // IPM_SETRANGE message. |
| | |
#define MAKEIPRANGE(low, high) ((LPARAM)(WORD)(((BYTE)(high) << 8) + (BYTE)(l
ow))) | | #define MAKEIPRANGE(low, high) ((LPARAM)(WORD)(((BYTE)(high) << 8) + (BYTE)(l
ow))) |
| | |
// And this is a useful macro for making the IP Address to be passed | | // And this is a useful macro for making the IP Address to be passed |
// as a LPARAM. | | // as a LPARAM. |
| | |
#define MAKEIPADDRESS(b1,b2,b3,b4) ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<<16
)+((DWORD)(b3)<<8)+((DWORD)(b4)))) | | #define MAKEIPADDRESS(b1,b2,b3,b4) ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<<16
)+((DWORD)(b3)<<8)+((DWORD)(b4)))) |
| | |
// Get individual number | | // Get individual number |
|
#define FIRST_IPADDRESS(x) ((x>>24) & 0xff) | | #define FIRST_IPADDRESS(x) (((x) >> 24) & 0xff) |
#define SECOND_IPADDRESS(x) ((x>>16) & 0xff) | | #define SECOND_IPADDRESS(x) (((x) >> 16) & 0xff) |
#define THIRD_IPADDRESS(x) ((x>>8) & 0xff) | | #define THIRD_IPADDRESS(x) (((x) >> 8) & 0xff) |
#define FOURTH_IPADDRESS(x) (x & 0xff) | | #define FOURTH_IPADDRESS(x) ((x) & 0xff) |
| | |
#endif // NOIPADDRESS | | #endif // NOIPADDRESS |
| | |
//------------------------------------------------------------------------------
--------- | | //------------------------------------------------------------------------------
--------- |
//------------------------------------------------------------------------------
--------- | | //------------------------------------------------------------------------------
--------- |
|
/// ====================== Pager Control ============================= | | // ====================== Pager Control ============================= |
//------------------------------------------------------------------------------
--------- | | //------------------------------------------------------------------------------
--------- |
//------------------------------------------------------------------------------
--------- | | //------------------------------------------------------------------------------
--------- |
| | |
#ifndef NOPAGESCROLLER | | #ifndef NOPAGESCROLLER |
| | |
//Pager Class Name | | //Pager Class Name |
#define WC_PAGESCROLLERW L"SysPager" | | #define WC_PAGESCROLLERW L"SysPager" |
#define WC_PAGESCROLLERA "SysPager" | | #define WC_PAGESCROLLERA "SysPager" |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
| | |
skipping to change at line 6574 | | skipping to change at line 7543 |
#define NFS_LISTCOMBO 0x0004 | | #define NFS_LISTCOMBO 0x0004 |
#define NFS_BUTTON 0x0008 | | #define NFS_BUTTON 0x0008 |
#define NFS_ALL 0x0010 | | #define NFS_ALL 0x0010 |
#define NFS_USEFONTASSOC 0x0020 | | #define NFS_USEFONTASSOC 0x0020 |
| | |
// end_r_commctrl | | // end_r_commctrl |
| | |
#endif // NONATIVEFONTCTL | | #endif // NONATIVEFONTCTL |
// === End Native Font Control === | | // === End Native Font Control === |
| | |
|
/// ====================== Button Control ============================= | | // ====================== Button Control ============================= |
| | |
#ifndef NOBUTTON | | #ifndef NOBUTTON |
| | |
#ifdef _WIN32 | | #ifdef _WIN32 |
| | |
// Button Class Name | | // Button Class Name |
#define WC_BUTTONA "Button" | | #define WC_BUTTONA "Button" |
#define WC_BUTTONW L"Button" | | #define WC_BUTTONW L"Button" |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
#define WC_BUTTON WC_BUTTONW | | #define WC_BUTTON WC_BUTTONW |
#else | | #else |
#define WC_BUTTON WC_BUTTONA | | #define WC_BUTTON WC_BUTTONA |
#endif | | #endif |
| | |
#else | | #else |
#define WC_BUTTON "Button" | | #define WC_BUTTON "Button" |
#endif | | #endif |
| | |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define BUTTON_IMAGELIST_ALIGN_LEFT 0 | | #define BUTTON_IMAGELIST_ALIGN_LEFT 0 |
#define BUTTON_IMAGELIST_ALIGN_RIGHT 1 | | #define BUTTON_IMAGELIST_ALIGN_RIGHT 1 |
#define BUTTON_IMAGELIST_ALIGN_TOP 2 | | #define BUTTON_IMAGELIST_ALIGN_TOP 2 |
#define BUTTON_IMAGELIST_ALIGN_BOTTOM 3 | | #define BUTTON_IMAGELIST_ALIGN_BOTTOM 3 |
#define BUTTON_IMAGELIST_ALIGN_CENTER 4 // Doesn't draw text | | #define BUTTON_IMAGELIST_ALIGN_CENTER 4 // Doesn't draw text |
| | |
typedef struct | | typedef struct |
{ | | { |
|
HIMAGELIST himl; // Index: Normal, hot pushed, disabled. If count is less
than 4, we use index 1 | | HIMAGELIST himl; // Images: Normal, Hot, Pushed, Disabled. If count is le
ss than 4, we use index 1 |
RECT margin; // Margin around icon. | | RECT margin; // Margin around icon. |
UINT uAlign; | | UINT uAlign; |
} BUTTON_IMAGELIST, *PBUTTON_IMAGELIST; | | } BUTTON_IMAGELIST, *PBUTTON_IMAGELIST; |
| | |
#define BCM_GETIDEALSIZE (BCM_FIRST + 0x0001) | | #define BCM_GETIDEALSIZE (BCM_FIRST + 0x0001) |
#define Button_GetIdealSize(hwnd, psize)\ | | #define Button_GetIdealSize(hwnd, psize)\ |
(BOOL)SNDMSG((hwnd), BCM_GETIDEALSIZE, 0, (LPARAM)(psize)) | | (BOOL)SNDMSG((hwnd), BCM_GETIDEALSIZE, 0, (LPARAM)(psize)) |
| | |
#define BCM_SETIMAGELIST (BCM_FIRST + 0x0002) | | #define BCM_SETIMAGELIST (BCM_FIRST + 0x0002) |
#define Button_SetImageList(hwnd, pbuttonImagelist)\ | | #define Button_SetImageList(hwnd, pbuttonImagelist)\ |
| | |
skipping to change at line 6637 | | skipping to change at line 7606 |
typedef struct tagNMBCHOTITEM | | typedef struct tagNMBCHOTITEM |
{ | | { |
NMHDR hdr; | | NMHDR hdr; |
DWORD dwFlags; // HICF_* | | DWORD dwFlags; // HICF_* |
} NMBCHOTITEM, * LPNMBCHOTITEM; | | } NMBCHOTITEM, * LPNMBCHOTITEM; |
| | |
#define BCN_HOTITEMCHANGE (BCN_FIRST + 0x0001) | | #define BCN_HOTITEMCHANGE (BCN_FIRST + 0x0001) |
| | |
#define BST_HOT 0x0200 | | #define BST_HOT 0x0200 |
| | |
|
#endif | | #endif // _WIN32_WINNT >= 0x0501 |
| | |
| | #if _WIN32_WINNT >= 0x0600 |
| | |
| | // BUTTON STATE FLAGS |
| | #define BST_DROPDOWNPUSHED 0x0400 |
| | |
| | // begin_r_commctrl |
| | |
| | // BUTTON STYLES |
| | #define BS_SPLITBUTTON 0x0000000CL |
| | #define BS_DEFSPLITBUTTON 0x0000000DL |
| | #define BS_COMMANDLINK 0x0000000EL |
| | #define BS_DEFCOMMANDLINK 0x0000000FL |
| | |
| | // SPLIT BUTTON INFO mask flags |
| | #define BCSIF_GLYPH 0x0001 |
| | #define BCSIF_IMAGE 0x0002 |
| | #define BCSIF_STYLE 0x0004 |
| | #define BCSIF_SIZE 0x0008 |
| | |
| | // SPLIT BUTTON STYLE flags |
| | #define BCSS_NOSPLIT 0x0001 |
| | #define BCSS_STRETCH 0x0002 |
| | #define BCSS_ALIGNLEFT 0x0004 |
| | #define BCSS_IMAGE 0x0008 |
| | |
| | // end_r_commctrl |
| | |
| | // BUTTON STRUCTURES |
| | typedef struct tagBUTTON_SPLITINFO |
| | { |
| | UINT mask; |
| | HIMAGELIST himlGlyph; // interpreted as WCHAR if BCSIF_GLYPH is set |
| | UINT uSplitStyle; |
| | SIZE size; |
| | } BUTTON_SPLITINFO, * PBUTTON_SPLITINFO; |
| | |
| | // BUTTON MESSAGES |
| | #define BCM_SETDROPDOWNSTATE (BCM_FIRST + 0x0006) |
| | #define Button_SetDropDownState(hwnd, fDropDown) \ |
| | (BOOL)SNDMSG((hwnd), BCM_SETDROPDOWNSTATE, (WPARAM)(fDropDown), 0) |
| | |
| | #define BCM_SETSPLITINFO (BCM_FIRST + 0x0007) |
| | #define Button_SetSplitInfo(hwnd, pInfo) \ |
| | (BOOL)SNDMSG((hwnd), BCM_SETSPLITINFO, 0, (LPARAM)(pInfo)) |
| | |
| | #define BCM_GETSPLITINFO (BCM_FIRST + 0x0008) |
| | #define Button_GetSplitInfo(hwnd, pInfo) \ |
| | (BOOL)SNDMSG((hwnd), BCM_GETSPLITINFO, 0, (LPARAM)(pInfo)) |
| | |
| | #define BCM_SETNOTE (BCM_FIRST + 0x0009) |
| | #define Button_SetNote(hwnd, psz) \ |
| | (BOOL)SNDMSG((hwnd), BCM_SETNOTE, 0, (LPARAM)(psz)) |
| | |
| | #define BCM_GETNOTE (BCM_FIRST + 0x000A) |
| | #define Button_GetNote(hwnd, psz, pcc) \ |
| | (BOOL)SNDMSG((hwnd), BCM_GETNOTE, (WPARAM)pcc, (LPARAM)psz) |
| | |
| | #define BCM_GETNOTELENGTH (BCM_FIRST + 0x000B) |
| | #define Button_GetNoteLength(hwnd) \ |
| | (LRESULT)SNDMSG((hwnd), BCM_GETNOTELENGTH, 0, 0) |
| | |
| | #if _WIN32_WINNT >= 0x0600 |
| | // Macro to use on a button or command link to display an elevated icon |
| | #define BCM_SETSHIELD (BCM_FIRST + 0x000C) |
| | #define Button_SetElevationRequiredState(hwnd, fRequired) \ |
| | (LRESULT)SNDMSG((hwnd), BCM_SETSHIELD, 0, (LPARAM)fRequired) |
| | #endif /* _WIN32_WINNT >= 0x0600 */ |
| | |
| | // Value to pass to BCM_SETIMAGELIST to indicate that no glyph should be |
| | // displayed |
| | #define BCCL_NOGLYPH (HIMAGELIST)(-1) |
| | |
| | // NOTIFICATION MESSAGES |
| | typedef struct tagNMBCDROPDOWN |
| | { |
| | NMHDR hdr; |
| | RECT rcButton; |
| | } NMBCDROPDOWN, * LPNMBCDROPDOWN; |
| | |
| | #define BCN_DROPDOWN (BCN_FIRST + 0x0002) |
| | |
| | #endif // _WIN32_WINNT >= 0x600 |
| | |
#endif // NOBUTTON | | #endif // NOBUTTON |
| | |
|
/// ===================== End Button Control ========================= | | // ===================== End Button Control ========================= |
| | |
|
/// ====================== Static Control ============================= | | // ====================== Static Control ============================= |
| | |
#ifndef NOSTATIC | | #ifndef NOSTATIC |
| | |
#ifdef _WIN32 | | #ifdef _WIN32 |
| | |
// Static Class Name | | // Static Class Name |
#define WC_STATICA "Static" | | #define WC_STATICA "Static" |
#define WC_STATICW L"Static" | | #define WC_STATICW L"Static" |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
| | |
skipping to change at line 6665 | | skipping to change at line 7717 |
#else | | #else |
#define WC_STATIC WC_STATICA | | #define WC_STATIC WC_STATICA |
#endif | | #endif |
| | |
#else | | #else |
#define WC_STATIC "Static" | | #define WC_STATIC "Static" |
#endif | | #endif |
| | |
#endif // NOSTATIC | | #endif // NOSTATIC |
| | |
|
/// ===================== End Static Control ========================= | | // ===================== End Static Control ========================= |
| | |
|
/// ====================== Edit Control ============================= | | // ====================== Edit Control ============================= |
| | |
#ifndef NOEDIT | | #ifndef NOEDIT |
| | |
#ifdef _WIN32 | | #ifdef _WIN32 |
| | |
// Edit Class Name | | // Edit Class Name |
#define WC_EDITA "Edit" | | #define WC_EDITA "Edit" |
#define WC_EDITW L"Edit" | | #define WC_EDITW L"Edit" |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
#define WC_EDIT WC_EDITW | | #define WC_EDIT WC_EDITW |
#else | | #else |
#define WC_EDIT WC_EDITA | | #define WC_EDIT WC_EDITA |
#endif | | #endif |
| | |
#else | | #else |
#define WC_EDIT "Edit" | | #define WC_EDIT "Edit" |
#endif | | #endif |
| | |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
#define EM_SETCUEBANNER (ECM_FIRST + 1) // Set the cue ba | | #define EM_SETCUEBANNER (ECM_FIRST + 1) // Set the cue banner with the l |
nner with the lParm = LPCWSTR | | Parm = LPCWSTR |
#define Edit_SetCueBannerText(hwnd, lpcwText) \ | | #define Edit_SetCueBannerText(hwnd, lpcwText) \ |
(BOOL)SNDMSG((hwnd), EM_SETCUEBANNER, 0, (LPARAM)(lpcwText)) | | (BOOL)SNDMSG((hwnd), EM_SETCUEBANNER, 0, (LPARAM)(lpcwText)) |
|
#define EM_GETCUEBANNER (ECM_FIRST + 2) // Set the cue ba | | #define Edit_SetCueBannerTextFocused(hwnd, lpcwText, fDrawFocused) \ |
nner with the lParm = LPCWSTR | | (BOOL)SNDMSG((hwnd), EM_SETCUEBANNER, (WPARAM)fDrawFocused, (LPARAM)lpcw |
| | Text) |
| | #define EM_GETCUEBANNER (ECM_FIRST + 2) // Set the cue banner with the l |
| | Parm = LPCWSTR |
#define Edit_GetCueBannerText(hwnd, lpwText, cchText) \ | | #define Edit_GetCueBannerText(hwnd, lpwText, cchText) \ |
(BOOL)SNDMSG((hwnd), EM_GETCUEBANNER, (WPARAM)(lpwText), (LPARAM)(cchTex
t)) | | (BOOL)SNDMSG((hwnd), EM_GETCUEBANNER, (WPARAM)(lpwText), (LPARAM)(cchTex
t)) |
| | |
typedef struct _tagEDITBALLOONTIP | | typedef struct _tagEDITBALLOONTIP |
{ | | { |
DWORD cbStruct; | | DWORD cbStruct; |
LPCWSTR pszTitle; | | LPCWSTR pszTitle; |
LPCWSTR pszText; | | LPCWSTR pszText; |
INT ttiIcon; // From TTI_* | | INT ttiIcon; // From TTI_* |
} EDITBALLOONTIP, *PEDITBALLOONTIP; | | } EDITBALLOONTIP, *PEDITBALLOONTIP; |
|
#define EM_SHOWBALLOONTIP (ECM_FIRST + 3) // Show a balloon
tip associated to the edit control | | #define EM_SHOWBALLOONTIP (ECM_FIRST + 3) // Show a balloon tip associated
to the edit control |
#define Edit_ShowBalloonTip(hwnd, peditballoontip) \ | | #define Edit_ShowBalloonTip(hwnd, peditballoontip) \ |
(BOOL)SNDMSG((hwnd), EM_SHOWBALLOONTIP, 0, (LPARAM)(peditballoontip)) | | (BOOL)SNDMSG((hwnd), EM_SHOWBALLOONTIP, 0, (LPARAM)(peditballoontip)) |
#define EM_HIDEBALLOONTIP (ECM_FIRST + 4) // Hide any balloon tip associat
ed with the edit control | | #define EM_HIDEBALLOONTIP (ECM_FIRST + 4) // Hide any balloon tip associat
ed with the edit control |
#define Edit_HideBalloonTip(hwnd) \ | | #define Edit_HideBalloonTip(hwnd) \ |
(BOOL)SNDMSG((hwnd), EM_HIDEBALLOONTIP, 0, 0) | | (BOOL)SNDMSG((hwnd), EM_HIDEBALLOONTIP, 0, 0) |
#endif | | #endif |
| | |
|
| | #if _WIN32_WINNT >= 0x0600 |
| | #define EM_SETHILITE (ECM_FIRST + 5) |
| | #define Edit_SetHilite(hwndCtl, ichStart, ichEnd) ((void)SNDMSG((hwndCtl), EM_S |
| | ETHILITE, (ichStart), (ichEnd))) |
| | #define EM_GETHILITE (ECM_FIRST + 6) |
| | #define Edit_GetHilite(hwndCtl) ((DWORD)SNDMSG((hwndCtl), EM_ |
| | GETHILITE, 0L, 0L)) |
| | |
| | #endif |
| | |
#endif // NOEDIT | | #endif // NOEDIT |
| | |
|
/// ===================== End Edit Control ========================= | | // ===================== End Edit Control ========================= |
| | |
|
/// ====================== Listbox Control ============================= | | // ====================== Listbox Control ============================= |
| | |
#ifndef NOLISTBOX | | #ifndef NOLISTBOX |
| | |
#ifdef _WIN32 | | #ifdef _WIN32 |
| | |
// Listbox Class Name | | // Listbox Class Name |
#define WC_LISTBOXA "ListBox" | | #define WC_LISTBOXA "ListBox" |
#define WC_LISTBOXW L"ListBox" | | #define WC_LISTBOXW L"ListBox" |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
| | |
skipping to change at line 6736 | | skipping to change at line 7798 |
#else | | #else |
#define WC_LISTBOX WC_LISTBOXA | | #define WC_LISTBOX WC_LISTBOXA |
#endif | | #endif |
| | |
#else | | #else |
#define WC_LISTBOX "ListBox" | | #define WC_LISTBOX "ListBox" |
#endif | | #endif |
| | |
#endif // NOLISTBOX | | #endif // NOLISTBOX |
| | |
|
/// ===================== End Listbox Control ========================= | | // ===================== End Listbox Control ========================= |
| | |
|
/// ====================== Combobox Control ============================= | | // ====================== Combobox Control ============================= |
| | |
#ifndef NOCOMBOBOX | | #ifndef NOCOMBOBOX |
| | |
#ifdef _WIN32 | | #ifdef _WIN32 |
| | |
// Combobox Class Name | | // Combobox Class Name |
#define WC_COMBOBOXA "ComboBox" | | #define WC_COMBOBOXA "ComboBox" |
#define WC_COMBOBOXW L"ComboBox" | | #define WC_COMBOBOXW L"ComboBox" |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
| | |
skipping to change at line 6760 | | skipping to change at line 7822 |
#else | | #else |
#define WC_COMBOBOX WC_COMBOBOXA | | #define WC_COMBOBOX WC_COMBOBOXA |
#endif | | #endif |
| | |
#else | | #else |
#define WC_COMBOBOX "ComboBox" | | #define WC_COMBOBOX "ComboBox" |
#endif | | #endif |
| | |
#endif // NOCOMBOBOX | | #endif // NOCOMBOBOX |
| | |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
| | |
// custom combobox control messages | | // custom combobox control messages |
|
#define CB_SETMINVISIBLE (CBM_FIRST + 1) | | #define CB_SETMINVISIBLE (CBM_FIRST + 1) |
#define CB_GETMINVISIBLE (CBM_FIRST + 2) | | #define CB_GETMINVISIBLE (CBM_FIRST + 2) |
|
| | #define CB_SETCUEBANNER (CBM_FIRST + 3) |
| | #define CB_GETCUEBANNER (CBM_FIRST + 4) |
| | |
#define ComboBox_SetMinVisible(hwnd, iMinVisible) \ | | #define ComboBox_SetMinVisible(hwnd, iMinVisible) \ |
|
(BOOL)SNDMSG((hwnd), CB_SETMINVISIBLE, (WPARAM)iMinVisible, 0) | | (BOOL)SNDMSG((hwnd), CB_SETMINVISIBLE, (WPARAM)(iMinVisible), 0) |
| | |
#define ComboBox_GetMinVisible(hwnd) \ | | #define ComboBox_GetMinVisible(hwnd) \ |
(int)SNDMSG((hwnd), CB_GETMINVISIBLE, 0, 0) | | (int)SNDMSG((hwnd), CB_GETMINVISIBLE, 0, 0) |
| | |
|
| | #define ComboBox_SetCueBannerText(hwnd, lpcwText) \ |
| | (BOOL)SNDMSG((hwnd), CB_SETCUEBANNER, 0, (LPARAM)(lpcwText)) |
| | |
| | #define ComboBox_GetCueBannerText(hwnd, lpwText, cchText) \ |
| | (BOOL)SNDMSG((hwnd), CB_GETCUEBANNER, (WPARAM)(lpwText), (LPARAM)(cc |
| | hText)) |
| | |
#endif | | #endif |
| | |
|
/// ===================== End Combobox Control ========================= | | // ===================== End Combobox Control ========================= |
| | |
|
/// ====================== Scrollbar Control ============================ | | // ====================== Scrollbar Control ============================ |
| | |
#ifndef NOSCROLLBAR | | #ifndef NOSCROLLBAR |
| | |
#ifdef _WIN32 | | #ifdef _WIN32 |
| | |
// Scrollbar Class Name | | // Scrollbar Class Name |
#define WC_SCROLLBARA "ScrollBar" | | #define WC_SCROLLBARA "ScrollBar" |
#define WC_SCROLLBARW L"ScrollBar" | | #define WC_SCROLLBARW L"ScrollBar" |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
| | |
skipping to change at line 6798 | | skipping to change at line 7868 |
#else | | #else |
#define WC_SCROLLBAR WC_SCROLLBARA | | #define WC_SCROLLBAR WC_SCROLLBARA |
#endif | | #endif |
| | |
#else | | #else |
#define WC_SCROLLBAR "ScrollBar" | | #define WC_SCROLLBAR "ScrollBar" |
#endif | | #endif |
| | |
#endif // NOSCROLLBAR | | #endif // NOSCROLLBAR |
| | |
|
/// ===================== End Scrollbar Control ========================= | | // ===================== End Scrollbar Control ========================= |
| | |
|
//====== SysLink control ========================================= | | // ===================== Task Dialog ========================= |
| | #ifndef NOTASKDIALOG |
| | |
#ifdef _WIN32 | | #ifdef _WIN32 |
|
#if (_WIN32_WINNT >= 0x501) | | #include <pshpack1.h> |
| | #endif |
| | |
|
#define INVALID_LINK_INDEX (-1) | | typedef HRESULT (CALLBACK *PFTASKDIALOGCALLBACK)(__in HWND hwnd, __in UINT msg, |
#define MAX_LINKID_TEXT 48 | | __in WPARAM wParam, __in LPARAM lParam, __in LONG_PTR lpRefData); |
#define L_MAX_URL_LENGTH (2048 + 32 + sizeof("://")) | | |
| | |
|
#define WC_LINK L"SysLink" | | enum _TASKDIALOG_FLAGS |
| | { |
| | TDF_ENABLE_HYPERLINKS = 0x0001, |
| | TDF_USE_HICON_MAIN = 0x0002, |
| | TDF_USE_HICON_FOOTER = 0x0004, |
| | TDF_ALLOW_DIALOG_CANCELLATION = 0x0008, |
| | TDF_USE_COMMAND_LINKS = 0x0010, |
| | TDF_USE_COMMAND_LINKS_NO_ICON = 0x0020, |
| | TDF_EXPAND_FOOTER_AREA = 0x0040, |
| | TDF_EXPANDED_BY_DEFAULT = 0x0080, |
| | TDF_VERIFICATION_FLAG_CHECKED = 0x0100, |
| | TDF_SHOW_PROGRESS_BAR = 0x0200, |
| | TDF_SHOW_MARQUEE_PROGRESS_BAR = 0x0400, |
| | TDF_CALLBACK_TIMER = 0x0800, |
| | TDF_POSITION_RELATIVE_TO_WINDOW = 0x1000, |
| | TDF_RTL_LAYOUT = 0x2000, |
| | TDF_NO_DEFAULT_RADIO_BUTTON = 0x4000, |
| | TDF_CAN_BE_MINIMIZED = 0x8000 |
| | }; |
| | typedef int TASKDIALOG_FLAGS; // Note: _TASKDIALOG_FLAGS |
| | is an int |
| | |
|
#define LWS_TRANSPARENT 0x0001 | | typedef enum _TASKDIALOG_MESSAGES |
#define LWS_IGNORERETURN 0x0002 | | { |
| | TDM_NAVIGATE_PAGE = WM_USER+101, |
| | TDM_CLICK_BUTTON = WM_USER+102, // wParam = Button ID |
| | TDM_SET_MARQUEE_PROGRESS_BAR = WM_USER+103, // wParam = 0 (nonMarque) |
| | wParam != 0 (Marquee) |
| | TDM_SET_PROGRESS_BAR_STATE = WM_USER+104, // wParam = new progress |
| | state |
| | TDM_SET_PROGRESS_BAR_RANGE = WM_USER+105, // lParam = MAKELPARAM(nM |
| | inRange, nMaxRange) |
| | TDM_SET_PROGRESS_BAR_POS = WM_USER+106, // wParam = new position |
| | TDM_SET_PROGRESS_BAR_MARQUEE = WM_USER+107, // wParam = 0 (stop marqu |
| | ee), wParam != 0 (start marquee), lparam = speed (milliseconds between repaints) |
| | TDM_SET_ELEMENT_TEXT = WM_USER+108, // wParam = element (TASK |
| | DIALOG_ELEMENTS), lParam = new element text (LPCWSTR) |
| | TDM_CLICK_RADIO_BUTTON = WM_USER+110, // wParam = Radio Button |
| | ID |
| | TDM_ENABLE_BUTTON = WM_USER+111, // lParam = 0 (disable), |
| | lParam != 0 (enable), wParam = Button ID |
| | TDM_ENABLE_RADIO_BUTTON = WM_USER+112, // lParam = 0 (disable), |
| | lParam != 0 (enable), wParam = Radio Button ID |
| | TDM_CLICK_VERIFICATION = WM_USER+113, // wParam = 0 (unchecked) |
| | , 1 (checked), lParam = 1 (set key focus) |
| | TDM_UPDATE_ELEMENT_TEXT = WM_USER+114, // wParam = element (TASK |
| | DIALOG_ELEMENTS), lParam = new element text (LPCWSTR) |
| | TDM_SET_BUTTON_ELEVATION_REQUIRED_STATE = WM_USER+115, // wParam = Button ID |
| | , lParam = 0 (elevation not required), lParam != 0 (elevation required) |
| | TDM_UPDATE_ICON = WM_USER+116 // wParam = icon element |
| | (TASKDIALOG_ICON_ELEMENTS), lParam = new icon (hIcon if TDF_USE_HICON_* was set, |
| | PCWSTR otherwise) |
| | } TASKDIALOG_MESSAGES; |
| | |
|
#define LIF_ITEMINDEX 0x00000001 | | typedef enum _TASKDIALOG_NOTIFICATIONS |
#define LIF_STATE 0x00000002 | | { |
#define LIF_ITEMID 0x00000004 | | TDN_CREATED = 0, |
#define LIF_URL 0x00000008 | | TDN_NAVIGATED = 1, |
| | TDN_BUTTON_CLICKED = 2, // wParam = Button ID |
| | TDN_HYPERLINK_CLICKED = 3, // lParam = (LPCWSTR)psz |
| | HREF |
| | TDN_TIMER = 4, // wParam = Milliseconds |
| | since dialog created or timer reset |
| | TDN_DESTROYED = 5, |
| | TDN_RADIO_BUTTON_CLICKED = 6, // wParam = Radio Button |
| | ID |
| | TDN_DIALOG_CONSTRUCTED = 7, |
| | TDN_VERIFICATION_CLICKED = 8, // wParam = 1 if checkb |
| | ox checked, 0 if not, lParam is unused and always 0 |
| | TDN_HELP = 9, |
| | TDN_EXPANDO_BUTTON_CLICKED = 10 // wParam = 0 (dialog is |
| | now collapsed), wParam != 0 (dialog is now expanded) |
| | } TASKDIALOG_NOTIFICATIONS; |
| | |
|
#define LIS_FOCUSED 0x00000001 | | typedef struct _TASKDIALOG_BUTTON |
#define LIS_ENABLED 0x00000002 | | { |
#define LIS_VISITED 0x00000004 | | int nButtonID; |
| | PCWSTR pszButtonText; |
| | } TASKDIALOG_BUTTON; |
| | |
|
typedef struct tagLITEM | | typedef enum _TASKDIALOG_ELEMENTS |
{ | | { |
|
UINT mask ; | | TDE_CONTENT, |
int iLink ; | | TDE_EXPANDED_INFORMATION, |
UINT state ; | | TDE_FOOTER, |
UINT stateMask ; | | TDE_MAIN_INSTRUCTION |
WCHAR szID[MAX_LINKID_TEXT] ; | | } TASKDIALOG_ELEMENTS; |
WCHAR szUrl[L_MAX_URL_LENGTH] ; | | |
} LITEM, * PLITEM ; | | |
| | |
|
typedef struct tagLHITTESTINFO | | typedef enum _TASKDIALOG_ICON_ELEMENTS |
{ | | { |
|
POINT pt ; | | TDIE_ICON_MAIN, |
LITEM item ; | | TDIE_ICON_FOOTER |
} LHITTESTINFO, *PLHITTESTINFO ; | | } TASKDIALOG_ICON_ELEMENTS; |
| | |
|
typedef struct tagNMLINK | | #define TD_WARNING_ICON MAKEINTRESOURCEW(-1) |
| | #define TD_ERROR_ICON MAKEINTRESOURCEW(-2) |
| | #define TD_INFORMATION_ICON MAKEINTRESOURCEW(-3) |
| | #define TD_SHIELD_ICON MAKEINTRESOURCEW(-4) |
| | |
| | enum _TASKDIALOG_COMMON_BUTTON_FLAGS |
{ | | { |
|
NMHDR hdr; | | TDCBF_OK_BUTTON = 0x0001, // selected control return value IDOK |
LITEM item ; | | TDCBF_YES_BUTTON = 0x0002, // selected control return value IDYES |
} NMLINK, *PNMLINK; | | TDCBF_NO_BUTTON = 0x0004, // selected control return value IDNO |
| | TDCBF_CANCEL_BUTTON = 0x0008, // selected control return value IDCANC |
| | EL |
| | TDCBF_RETRY_BUTTON = 0x0010, // selected control return value IDRETR |
| | Y |
| | TDCBF_CLOSE_BUTTON = 0x0020 // selected control return value IDCLOS |
| | E |
| | }; |
| | typedef int TASKDIALOG_COMMON_BUTTON_FLAGS; // Note: _TASKDIALOG_COMMO |
| | N_BUTTON_FLAGS is an int |
| | |
|
// SysLink notifications | | typedef struct _TASKDIALOGCONFIG |
// NM_CLICK // wParam: control ID, lParam: PNMLINK, ret: ignored. | | { |
| | UINT cbSize; |
| | HWND hwndParent; |
| | HINSTANCE hInstance; // used for MAKEINTRESOU |
| | RCE() strings |
| | TASKDIALOG_FLAGS dwFlags; // TASKDIALOG_FLAGS (TDF |
| | _XXX) flags |
| | TASKDIALOG_COMMON_BUTTON_FLAGS dwCommonButtons; // TASKDIALOG_COMMON_BUT |
| | TON (TDCBF_XXX) flags |
| | PCWSTR pszWindowTitle; // string or MAKEINTRESO |
| | URCE() |
| | union |
| | { |
| | HICON hMainIcon; |
| | PCWSTR pszMainIcon; |
| | }; |
| | PCWSTR pszMainInstruction; |
| | PCWSTR pszContent; |
| | UINT cButtons; |
| | const TASKDIALOG_BUTTON *pButtons; |
| | int nDefaultButton; |
| | UINT cRadioButtons; |
| | const TASKDIALOG_BUTTON *pRadioButtons; |
| | int nDefaultRadioButton; |
| | PCWSTR pszVerificationText; |
| | PCWSTR pszExpandedInformation; |
| | PCWSTR pszExpandedControlText; |
| | PCWSTR pszCollapsedControlText; |
| | union |
| | { |
| | HICON hFooterIcon; |
| | PCWSTR pszFooterIcon; |
| | }; |
| | PCWSTR pszFooter; |
| | PFTASKDIALOGCALLBACK pfCallback; |
| | LONG_PTR lpCallbackData; |
| | UINT cxWidth; // width of the Task Dia |
| | log's client area in DLU's. If 0, Task Dialog will calculate the ideal width. |
| | } TASKDIALOGCONFIG; |
| | |
|
// LinkWindow messages | | WINCOMMCTRLAPI HRESULT WINAPI TaskDialogIndirect(const TASKDIALOGCONFIG *pTaskCo |
#define LM_HITTEST (WM_USER+0x300) // wParam: n/a, lparam: PLHITTESTINF | | nfig, __out_opt int *pnButton, __out_opt int *pnRadioButton, __out_opt BOOL *pfV |
O, ret: BOOL | | erificationFlagChecked); |
#define LM_GETIDEALHEIGHT (WM_USER+0x301) // wParam: n/a, lparam: n/a, ret: cy | | WINCOMMCTRLAPI HRESULT WINAPI TaskDialog(__in_opt HWND hwndParent, __in_opt HINS |
#define LM_SETITEM (WM_USER+0x302) // wParam: n/a, lparam: LITEM*, ret: | | TANCE hInstance, __in_opt PCWSTR pszWindowTitle, __in_opt PCWSTR pszMainInstruct |
BOOL | | ion, __in_opt PCWSTR pszContent, TASKDIALOG_COMMON_BUTTON_FLAGS dwCommonButtons, |
#define LM_GETITEM (WM_USER+0x303) // wParam: n/a, lparam: LITEM*, ret: | | __in_opt PCWSTR pszIcon, __out_opt int *pnButton); |
BOOL | | |
| | |
|
| | #ifdef _WIN32 |
| | #include <poppack.h> |
#endif | | #endif |
|
#endif // _WIN32 | | |
//====== End SysLink control ========================================= | | #endif // NOTASKDIALOG |
| | |
| | // ==================== End TaskDialog ======================= |
| | |
// | | // |
// === MUI APIs === | | // === MUI APIs === |
// | | // |
#ifndef NOMUI | | #ifndef NOMUI |
void WINAPI InitMUILanguage(LANGID uiLang); | | void WINAPI InitMUILanguage(LANGID uiLang); |
| | |
LANGID WINAPI GetMUILanguage(void); | | LANGID WINAPI GetMUILanguage(void); |
#endif // NOMUI | | #endif // NOMUI |
| | |
#endif // _WIN32_IE >= 0x0400 | | #endif // _WIN32_IE >= 0x0400 |
| | |
|
| | #ifndef NO_COMMCTRL_DA |
| | #define __COMMCTRL_DA_DEFINED__ |
| | // |
| | //====== Dynamic Array routines ========================================== |
| | // |
| | // Note that the STL and other libraries have similar functionality. |
| | // The routines here are specific to Windows and may not be as convenient |
| | // or fully functional as those in other libraries. |
| | // |
| | |
#define DA_LAST (0x7FFFFFFF) | | #define DA_LAST (0x7FFFFFFF) |
|
#define DPA_APPEND (0x7fffffff) | | #define DA_ERR (-1) |
#define DPA_ERR (-1) | | |
| | |
|
#define DSA_APPEND (0x7fffffff) | | typedef int (CALLBACK *PFNDAENUMCALLBACK)(__in void *p, __in_opt void *pData); |
#define DSA_ERR (-1) | | typedef int (CALLBACK *PFNDAENUMCALLBACKCONST)(__in const void *p, __in_opt void |
| | *pData); |
| | typedef int (CALLBACK *PFNDACOMPARE)(__in void *p1, __in void *p2, __in LPARAM l |
| | Param); |
| | typedef int (CALLBACK *PFNDACOMPARECONST)(__in const void *p1, __in const void * |
| | p2, __in LPARAM lParam); |
| | |
// Dynamic structure array | | // Dynamic structure array |
|
| | struct _DSA; |
typedef struct _DSA *HDSA; | | typedef struct _DSA *HDSA; |
| | |
|
typedef int (CALLBACK *PFNDPAENUMCALLBACK)(void *p, void *pData); | | |
typedef int (CALLBACK *PFNDSAENUMCALLBACK)(void *p, void *pData); | | |
| | |
WINCOMMCTRLAPI HDSA WINAPI DSA_Create(int cbItem, int cItemGrow); | | WINCOMMCTRLAPI HDSA WINAPI DSA_Create(int cbItem, int cItemGrow); |
|
WINCOMMCTRLAPI BOOL WINAPI DSA_Destroy(HDSA hdsa); | | WINCOMMCTRLAPI BOOL WINAPI DSA_Destroy(__in HDSA hdsa); |
WINCOMMCTRLAPI void WINAPI DSA_DestroyCallback(HDSA hdsa, PFNDSAENUMCALLBACK p | | WINCOMMCTRLAPI void WINAPI DSA_DestroyCallback(__in HDSA hdsa, __in PFNDAENUMC |
fnCB, void *pData); | | ALLBACK pfnCB, __in_opt void *pData); |
WINCOMMCTRLAPI PVOID WINAPI DSA_GetItemPtr(HDSA hdsa, int i); | | #ifdef __cplusplus |
WINCOMMCTRLAPI int WINAPI DSA_InsertItem(HDSA hdsa, int i, void *pitem); | | extern "C++" __inline void DSA_DestroyCallback(__in HDSA hdsa, __in PFNDAENUMCAL |
| | LBACKCONST pfnCB, __in_opt void *pData) |
| | { |
| | DSA_DestroyCallback(hdsa, (PFNDAENUMCALLBACK)pfnCB, pData); |
| | } |
| | #endif |
| | WINCOMMCTRLAPI BOOL WINAPI DSA_DeleteItem(__in HDSA hdsa, __in int i); |
| | WINCOMMCTRLAPI BOOL WINAPI DSA_DeleteAllItems(__in HDSA hdsa); |
| | WINCOMMCTRLAPI void WINAPI DSA_EnumCallback(__in HDSA hdsa, __in PFNDAENUMCALL |
| | BACK pfnCB, __in_opt void *pData); |
| | #ifdef __cplusplus |
| | extern "C++" __inline void DSA_EnumCallback(__in HDSA hdsa, __in PFNDAENUMCALLBA |
| | CKCONST pfnCB, __in_opt void *pData) |
| | { |
| | DSA_EnumCallback(hdsa, (PFNDAENUMCALLBACK)pfnCB, pData); |
| | } |
| | #endif |
| | WINCOMMCTRLAPI int WINAPI DSA_InsertItem(__in HDSA hdsa, __in int i, __in con |
| | st void *pitem); |
| | WINCOMMCTRLAPI PVOID WINAPI DSA_GetItemPtr(__in HDSA hdsa, __in int i); |
| | WINCOMMCTRLAPI BOOL WINAPI DSA_GetItem(__in HDSA hdsa, __in int i, __out_xcoun |
| | t(pdsa->cbItem) void *pitem); |
| | WINCOMMCTRLAPI BOOL WINAPI DSA_SetItem(__in HDSA hdsa, __in int i, __in const |
| | void *pitem); |
| | #define DSA_GetItemCount(hdsa) (*(int *)(hdsa)) |
| | #define DSA_AppendItem(hdsa, pitem) DSA_InsertItem(hdsa, DA_LAST, pitem) |
| | |
| | #if (NTDDI_VERSION >= NTDDI_LONGHORN) |
| | WINCOMMCTRLAPI HDSA WINAPI DSA_Clone(__in HDSA hdsa); |
| | WINCOMMCTRLAPI ULONGLONG WINAPI DSA_GetSize(__in HDSA hdsa); |
| | WINCOMMCTRLAPI BOOL WINAPI DSA_Sort(__in HDSA pdsa, __in PFNDACOMPARE pfnCompa |
| | re, __in LPARAM lParam); |
| | #ifdef __cplusplus |
| | extern "C++" __inline BOOL DSA_Sort(__in HDSA hdsa, __in PFNDACOMPARECONST pfnCo |
| | mpare, __in LPARAM lParam) |
| | { |
| | return DSA_Sort(hdsa, (PFNDACOMPARE)(pfnCompare), lParam); |
| | } |
| | #endif |
| | #endif // NTDDI_LONGHORN |
| | |
| | #define DSA_APPEND DA_LAST |
| | #define DSA_ERR DA_ERR |
| | |
| | #define PFNDSAENUMCALLBACK PFNDAENUMCALLBACK |
| | #define PFNDSAENUMCALLBACKCONST PFNDAENUMCALLBACKCONST |
| | #define PFNDSACOMPARE PFNDACOMPARE |
| | #define PFNDSACOMPARECONST PFNDACOMPARECONST |
| | |
// Dynamic pointer array | | // Dynamic pointer array |
|
| | struct _DPA; |
typedef struct _DPA *HDPA; | | typedef struct _DPA *HDPA; |
| | |
WINCOMMCTRLAPI HDPA WINAPI DPA_Create(int cItemGrow); | | WINCOMMCTRLAPI HDPA WINAPI DPA_Create(int cItemGrow); |
|
WINCOMMCTRLAPI BOOL WINAPI DPA_Destroy(HDPA hdpa); | | WINCOMMCTRLAPI HDPA WINAPI DPA_CreateEx(__in int cpGrow, __in_opt HANDLE hheap |
WINCOMMCTRLAPI PVOID WINAPI DPA_DeletePtr(HDPA hdpa, int i); | | ); |
WINCOMMCTRLAPI BOOL WINAPI DPA_DeleteAllPtrs(HDPA hdpa); | | WINCOMMCTRLAPI HDPA WINAPI DPA_Clone(__in const HDPA hdpa, __in HDPA hdpaNew); |
WINCOMMCTRLAPI void WINAPI DPA_EnumCallback(HDPA hdpa, PFNDPAENUMCALLBACK pfnC | | WINCOMMCTRLAPI BOOL WINAPI DPA_Destroy(__in HDPA hdpa); |
B, void *pData); | | WINCOMMCTRLAPI void WINAPI DPA_DestroyCallback(__in HDPA hdpa, __in PFNDAENUMC |
WINCOMMCTRLAPI void WINAPI DPA_DestroyCallback(HDPA hdpa, PFNDPAENUMCALLBACK p | | ALLBACK pfnCB, __in_opt void *pData); |
fnCB, void *pData); | | #ifdef __cplusplus |
WINCOMMCTRLAPI BOOL WINAPI DPA_SetPtr(HDPA hdpa, int i, void *p); | | extern "C++" __inline void DPA_DestroyCallback(__in HDPA hdpa, __in PFNDAENUMCAL |
WINCOMMCTRLAPI int WINAPI DPA_InsertPtr(HDPA hdpa, int i, void *p); | | LBACKCONST pfnCB, __in_opt void *pData) |
WINCOMMCTRLAPI PVOID WINAPI DPA_GetPtr(HDPA hdpa, INT_PTR i); | | { |
typedef int (CALLBACK *PFNDPACOMPARE)(void *p1, void *p2, LPARAM lParam); | | DPA_DestroyCallback(hdpa, (PFNDAENUMCALLBACK)pfnCB, pData); |
| | } |
| | #endif |
| | WINCOMMCTRLAPI PVOID WINAPI DPA_DeletePtr(__in HDPA hdpa, __in int i); |
| | WINCOMMCTRLAPI BOOL WINAPI DPA_DeleteAllPtrs(__in HDPA hdpa); |
| | WINCOMMCTRLAPI void WINAPI DPA_EnumCallback(__in HDPA hdpa, __in PFNDAENUMCALL |
| | BACK pfnCB, __in_opt void *pData); |
| | #ifdef __cplusplus |
| | extern "C++" __inline void DPA_EnumCallback(__in HDPA hdpa, __in PFNDAENUMCALLBA |
| | CKCONST pfnCB, __in_opt void *pData) |
| | { |
| | DPA_EnumCallback(hdpa, (PFNDAENUMCALLBACK)pfnCB, pData); |
| | } |
| | #endif |
| | WINCOMMCTRLAPI BOOL WINAPI DPA_Grow(__in HDPA pdpa, __in int cp); |
| | WINCOMMCTRLAPI int WINAPI DPA_InsertPtr(__in HDPA hdpa, __in int i, __in_opt |
| | void *p); |
| | WINCOMMCTRLAPI BOOL WINAPI DPA_SetPtr(__in HDPA hdpa, __in int i, __in_opt voi |
| | d *p); |
| | WINCOMMCTRLAPI PVOID WINAPI DPA_GetPtr(__in HDPA hdpa, __in INT_PTR i); |
| | WINCOMMCTRLAPI int WINAPI DPA_GetPtrIndex(__in HDPA hdpa, __in const void *p) |
| | ; |
| | |
|
WINCOMMCTRLAPI BOOL WINAPI DPA_Sort(HDPA hdpa, PFNDPACOMPARE pfnCompare, LPARA | | #define DPA_GetPtrCount(hdpa) (*(int *)(hdpa)) |
M lParam); | | #define DPA_FastDeleteLastPtr(hdpa) (--*(int *)(hdpa)) |
| | #define DPA_GetPtrPtr(hdpa) (*((void * **)((BYTE *)(hdpa) + sizeof(void |
| | *)))) |
| | #define DPA_FastGetPtr(hdpa, i) (DPA_GetPtrPtr(hdpa)[i]) |
| | #define DPA_AppendPtr(hdpa, pitem) DPA_InsertPtr(hdpa, DA_LAST, pitem) |
| | |
| | #if (NTDDI_VERSION >= NTDDI_LONGHORN) |
| | WINCOMMCTRLAPI ULONGLONG WINAPI DPA_GetSize(__in HDPA hdpa); |
| | #endif // NTDDI_LONGHORN |
| | |
| | WINCOMMCTRLAPI BOOL WINAPI DPA_Sort(__in HDPA hdpa, __in PFNDACOMPARE pfnCompa |
| | re, __in LPARAM lParam); |
| | #ifdef __cplusplus |
| | extern "C++" __inline BOOL DPA_Sort(__in HDPA hdpa, __in PFNDACOMPARECONST pfnCo |
| | mpare, __in LPARAM lParam) |
| | { |
| | return DPA_Sort(hdpa, (PFNDACOMPARE)(pfnCompare), lParam); |
| | } |
| | #endif |
| | |
| | // |
| | // Save to and load from a stream. The stream callback gets a pointer to |
| | // a DPASTREAMINFO structure. |
| | // |
| | // For DPA_SaveStream, the callback is responsible for writing the pvItem |
| | // info to the stream. (It's not necessary to write the iPos to the |
| | // stream.) Return S_OK if the element was saved, S_FALSE if it wasn't |
| | // but continue anyway, or some failure. |
| | // |
| | // For DPA_LoadStream, the callback is responsible for allocating an |
| | // item and setting the pvItem field to the new pointer. Return S_OK |
| | // if the element was loaded, S_FALSE it it wasn't but continue anyway, |
| | // or some failure. |
| | // |
| | |
| | typedef struct _DPASTREAMINFO |
| | { |
| | int iPos; // Index of item |
| | void *pvItem; |
| | } DPASTREAMINFO; |
| | |
| | struct IStream; |
| | typedef HRESULT (CALLBACK *PFNDPASTREAM)(__in DPASTREAMINFO * pinfo, __in struct |
| | IStream * pstream, __in_opt void *pvInstData); |
| | |
| | WINCOMMCTRLAPI HRESULT WINAPI DPA_LoadStream(__out HDPA * phdpa, __in PFNDPASTRE |
| | AM pfn, __in struct IStream * pstream, __in_opt void *pvInstData); |
| | WINCOMMCTRLAPI HRESULT WINAPI DPA_SaveStream(__in HDPA hdpa, __in PFNDPASTREAM p |
| | fn, __in struct IStream * pstream, __in_opt void *pvInstData); |
| | |
| | // Merge two DPAs. This takes two (optionally) presorted arrays and merges |
| | // the source array into the dest. DPA_Merge uses the provided callbacks |
| | // to perform comparison and merge operations. The merge callback is |
| | // called when two elements (one in each list) match according to the |
| | // compare function. This allows portions of an element in one list to |
| | // be merged with the respective element in the second list. |
| | // |
| | // The first DPA (hdpaDest) is the output array. |
| | // |
| | // Merge options: |
| | // |
| | // DPAM_SORTED The arrays are already sorted; don't sort |
| | // DPAM_UNION The resulting array is the union of all elements |
| | // in both arrays (DPAMM_INSERT may be sent for |
| | // this merge option.) |
| | // DPAM_INTERSECT Only elements in the source array that intersect |
| | // with the dest array are merged. (DPAMM_DELETE |
| | // may be sent for this merge option.) |
| | // DPAM_NORMAL Like DPAM_INTERSECT except the dest array |
| | // also maintains its original, additional elements. |
| | // |
| | #define DPAM_SORTED 0x00000001 |
| | #define DPAM_NORMAL 0x00000002 |
| | #define DPAM_UNION 0x00000004 |
| | #define DPAM_INTERSECT 0x00000008 |
| | |
| | // The merge callback should merge contents of the two items and return |
| | // the pointer of the merged item. It's okay to simply use pvDest |
| | // as the returned pointer. |
| | // |
| | typedef void* (CALLBACK *PFNDPAMERGE)(__in UINT uMsg, __in void *pvDest, __in vo |
| | id *pvSrc, __in LPARAM lParam); |
| | typedef const void* (CALLBACK *PFNDPAMERGECONST)(__in UINT uMsg, __in const void |
| | *pvDest, __in const void *pvSrc, __in LPARAM lParam); |
| | |
| | // Messages for merge callback |
| | #define DPAMM_MERGE 1 |
| | #define DPAMM_DELETE 2 |
| | #define DPAMM_INSERT 3 |
| | |
| | WINCOMMCTRLAPI BOOL WINAPI DPA_Merge(__in HDPA hdpaDest, __in HDPA hdpaSrc, __in |
| | DWORD dwFlags, __in PFNDACOMPARE pfnCompare, __in PFNDPAMERGE pfnMerge, __in LP |
| | ARAM lParam); |
| | #ifdef __cplusplus |
| | extern "C++" __inline BOOL DPA_Merge(__in HDPA hdpaDest, __in HDPA hdpaSrc, __in |
| | DWORD dwFlags, __in PFNDACOMPARECONST pfnCompare, __in PFNDPAMERGECONST pfnMerg |
| | e, __in LPARAM lParam) |
| | { |
| | return DPA_Merge(hdpaDest, hdpaSrc, dwFlags, (PFNDACOMPARE)pfnCompare, (PFND |
| | PAMERGE)pfnMerge, lParam); |
| | } |
| | #endif |
| | |
| | // |
// Search array. If DPAS_SORTED, then array is assumed to be sorted | | // Search array. If DPAS_SORTED, then array is assumed to be sorted |
// according to pfnCompare, and binary search algorithm is used. | | // according to pfnCompare, and binary search algorithm is used. |
// Otherwise, linear search is used. | | // Otherwise, linear search is used. |
// | | // |
// Searching starts at iStart (0 to start search at beginning). | | // Searching starts at iStart (0 to start search at beginning). |
// | | // |
// DPAS_INSERTBEFORE/AFTER govern what happens if an exact match is not | | // DPAS_INSERTBEFORE/AFTER govern what happens if an exact match is not |
// found. If neither are specified, this function returns -1 if no exact | | // found. If neither are specified, this function returns -1 if no exact |
// match is found. Otherwise, the index of the item before or after the | | // match is found. Otherwise, the index of the item before or after the |
// closest (including exact) match is returned. | | // closest (including exact) match is returned. |
// | | // |
// Search option flags | | // Search option flags |
// | | // |
#define DPAS_SORTED 0x0001 | | #define DPAS_SORTED 0x0001 |
#define DPAS_INSERTBEFORE 0x0002 | | #define DPAS_INSERTBEFORE 0x0002 |
#define DPAS_INSERTAFTER 0x0004 | | #define DPAS_INSERTAFTER 0x0004 |
| | |
|
WINCOMMCTRLAPI int WINAPI DPA_Search(HDPA hdpa, void *pFind, int iStart, PFNDPAC | | WINCOMMCTRLAPI int WINAPI DPA_Search(__in HDPA hdpa, __in_opt void *pFind, __in |
OMPARE pfnCompare, LPARAM lParam, UINT options); | | int iStart, __in PFNDACOMPARE pfnCompare, __in LPARAM lParam, __in UINT options) |
| | ; |
| | #ifdef __cplusplus |
| | extern "C++" __inline int DPA_Search(__in HDPA hdpa, __in_opt const void *pFind, |
| | __in int iStart, __in PFNDACOMPARECONST pfnCompare, __in LPARAM lParam, __in UI |
| | NT options) |
| | { |
| | return DPA_Search(hdpa, const_cast<void *>(pFind), iStart, (PFNDACOMPARE)pfn |
| | Compare, lParam, options); |
| | } |
| | #endif |
| | |
|
WINCOMMCTRLAPI BOOL WINAPI Str_SetPtrW(LPWSTR * ppsz, LPCWSTR psz); | | #define DPA_SortedInsertPtr(hdpa, pFind, iStart, pfnCompare, lParam, options, pi |
| | tem) \ |
| | DPA_InsertPtr(hdpa, DPA_Search(hdpa, pFind, iStart, pfnCompare, lPar |
| | am, (DPAS_SORTED | (options))), (pitem)) |
| | |
| | #define DPA_APPEND DA_LAST |
| | #define DPA_ERR DA_ERR |
| | |
| | #define PFNDPAENUMCALLBACK PFNDAENUMCALLBACK |
| | #define PFNDPAENUMCALLBACKCONST PFNDAENUMCALLBACKCONST |
| | #define PFNDPACOMPARE PFNDACOMPARE |
| | #define PFNDPACOMPARECONST PFNDACOMPARECONST |
| | |
| | #endif // NO_COMMCTRL_DA |
| | |
| | WINCOMMCTRLAPI BOOL WINAPI Str_SetPtrW(__deref_inout_opt LPWSTR * ppsz, LPCWSTR |
| | psz); |
| | |
#ifdef _WIN32 | | #ifdef _WIN32 |
//====== TrackMouseEvent ===================================================== | | //====== TrackMouseEvent ===================================================== |
| | |
#ifndef NOTRACKMOUSEEVENT | | #ifndef NOTRACKMOUSEEVENT |
| | |
// | | // |
// If the messages for TrackMouseEvent have not been defined then define them | | // If the messages for TrackMouseEvent have not been defined then define them |
// now. | | // now. |
// | | // |
| | |
skipping to change at line 6971 | | skipping to change at line 8304 |
#endif // !TME_HOVER | | #endif // !TME_HOVER |
| | |
// | | // |
// Declare _TrackMouseEvent. This API tries to use the window manager's | | // Declare _TrackMouseEvent. This API tries to use the window manager's |
// implementation of TrackMouseEvent if it is present, otherwise it emulates. | | // implementation of TrackMouseEvent if it is present, otherwise it emulates. |
// | | // |
WINCOMMCTRLAPI | | WINCOMMCTRLAPI |
BOOL | | BOOL |
WINAPI | | WINAPI |
_TrackMouseEvent( | | _TrackMouseEvent( |
|
LPTRACKMOUSEEVENT lpEventTrack); | | __inout LPTRACKMOUSEEVENT lpEventTrack); |
| | |
#endif // !NOTRACKMOUSEEVENT | | #endif // !NOTRACKMOUSEEVENT |
| | |
#if (_WIN32_IE >= 0x0400) | | #if (_WIN32_IE >= 0x0400) |
| | |
//====== Flat Scrollbar APIs========================================= | | //====== Flat Scrollbar APIs========================================= |
#ifndef NOFLATSBAPIS | | #ifndef NOFLATSBAPIS |
| | |
#define WSB_PROP_CYVSCROLL 0x00000001L | | #define WSB_PROP_CYVSCROLL 0x00000001L |
#define WSB_PROP_CXHSCROLL 0x00000002L | | #define WSB_PROP_CXHSCROLL 0x00000002L |
| | |
skipping to change at line 7015 | | skipping to change at line 8348 |
| | |
WINCOMMCTRLAPI BOOL WINAPI FlatSB_GetScrollProp(HWND, int propIndex, LPINT); | | WINCOMMCTRLAPI BOOL WINAPI FlatSB_GetScrollProp(HWND, int propIndex, LPINT); |
#ifdef _WIN64 | | #ifdef _WIN64 |
WINCOMMCTRLAPI BOOL WINAPI FlatSB_GetScrollPropPtr(HWND, int propIndex, PINT_PTR
); | | WINCOMMCTRLAPI BOOL WINAPI FlatSB_GetScrollPropPtr(HWND, int propIndex, PINT_PTR
); |
#else | | #else |
#define FlatSB_GetScrollPropPtr FlatSB_GetScrollProp | | #define FlatSB_GetScrollPropPtr FlatSB_GetScrollProp |
#endif | | #endif |
| | |
WINCOMMCTRLAPI int WINAPI FlatSB_SetScrollPos(HWND, int code, int pos, BOOL fRed
raw); | | WINCOMMCTRLAPI int WINAPI FlatSB_SetScrollPos(HWND, int code, int pos, BOOL fRed
raw); |
| | |
|
WINCOMMCTRLAPI int WINAPI FlatSB_SetScrollInfo(HWND, int code, LPSCROLLINFO, BOO
L fRedraw); | | WINCOMMCTRLAPI int WINAPI FlatSB_SetScrollInfo(HWND, int code, LPSCROLLINFO psi,
BOOL fRedraw); |
| | |
WINCOMMCTRLAPI int WINAPI FlatSB_SetScrollRange(HWND, int code, int min, int max
, BOOL fRedraw); | | WINCOMMCTRLAPI int WINAPI FlatSB_SetScrollRange(HWND, int code, int min, int max
, BOOL fRedraw); |
WINCOMMCTRLAPI BOOL WINAPI FlatSB_SetScrollProp(HWND, UINT index, INT_PTR newVal
ue, BOOL); | | WINCOMMCTRLAPI BOOL WINAPI FlatSB_SetScrollProp(HWND, UINT index, INT_PTR newVal
ue, BOOL); |
#define FlatSB_SetScrollPropPtr FlatSB_SetScrollProp | | #define FlatSB_SetScrollPropPtr FlatSB_SetScrollProp |
| | |
WINCOMMCTRLAPI BOOL WINAPI InitializeFlatSB(HWND); | | WINCOMMCTRLAPI BOOL WINAPI InitializeFlatSB(HWND); |
WINCOMMCTRLAPI HRESULT WINAPI UninitializeFlatSB(HWND); | | WINCOMMCTRLAPI HRESULT WINAPI UninitializeFlatSB(HWND); |
| | |
#endif // NOFLATSBAPIS | | #endif // NOFLATSBAPIS |
| | |
#endif // _WIN32_IE >= 0x0400 | | #endif // _WIN32_IE >= 0x0400 |
| | |
#endif /* _WIN32 */ | | #endif /* _WIN32 */ |
| | |
#endif // _WIN32_IE >= 0x0300 | | #endif // _WIN32_IE >= 0x0300 |
| | |
|
#if (_WIN32_WINNT >= 0x501) | | #if (_WIN32_WINNT >= 0x0501) |
// | | // |
// subclassing stuff | | // subclassing stuff |
// | | // |
typedef LRESULT (CALLBACK *SUBCLASSPROC)(HWND hWnd, UINT uMsg, WPARAM wParam, | | typedef LRESULT (CALLBACK *SUBCLASSPROC)(HWND hWnd, UINT uMsg, WPARAM wParam, |
LPARAM lParam, UINT_PTR uIdSubclass, DWORD_PTR dwRefData); | | LPARAM lParam, UINT_PTR uIdSubclass, DWORD_PTR dwRefData); |
| | |
BOOL WINAPI SetWindowSubclass(HWND hWnd, SUBCLASSPROC pfnSubclass, UINT_PTR uIdS
ubclass, | | BOOL WINAPI SetWindowSubclass(HWND hWnd, SUBCLASSPROC pfnSubclass, UINT_PTR uIdS
ubclass, |
DWORD_PTR dwRefData); | | DWORD_PTR dwRefData); |
BOOL WINAPI GetWindowSubclass(HWND hWnd, SUBCLASSPROC pfnSubclass, UINT_PTR uIdS
ubclass, | | BOOL WINAPI GetWindowSubclass(HWND hWnd, SUBCLASSPROC pfnSubclass, UINT_PTR uIdS
ubclass, |
DWORD_PTR *pdwRefData); | | DWORD_PTR *pdwRefData); |
BOOL WINAPI RemoveWindowSubclass(HWND hWnd, SUBCLASSPROC pfnSubclass, | | BOOL WINAPI RemoveWindowSubclass(HWND hWnd, SUBCLASSPROC pfnSubclass, |
UINT_PTR uIdSubclass); | | UINT_PTR uIdSubclass); |
| | |
LRESULT WINAPI DefSubclassProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPara
m); | | LRESULT WINAPI DefSubclassProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPara
m); |
#endif | | #endif |
| | |
|
#if (_WIN32_WINNT >= 0x501) | | #if (NTDDI_VERSION >= NTDDI_LONGHORN) |
| | |
int WINAPI DrawShadowText(HDC hdc, LPCWSTR pszText, UINT cch, RECT* prc, DWORD d | | |
wFlags, COLORREF crText, COLORREF crShadow, | | |
int ixOffset, int iyOffset); | | |
#endif | | |
| | |
#if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */ | | |
#if defined(ISOLATION_AWARE_ENABLED) && (ISOLATION_AWARE_ENABLED != 0) | | |
| | |
#if !defined(ISOLATION_AWARE_USE_STATIC_LIBRARY) | | |
#define ISOLATION_AWARE_USE_STATIC_LIBRARY 0 | | |
#endif | | |
| | |
#if !defined(ISOLATION_AWARE_BUILD_STATIC_LIBRARY) | | |
#define ISOLATION_AWARE_BUILD_STATIC_LIBRARY 0 | | |
#endif | | |
| | |
#if !defined(ISOLATION_AWARE_INLINE) | | |
#if ISOLATION_AWARE_BUILD_STATIC_LIBRARY | | |
#define ISOLATION_AWARE_INLINE /* nothing */ | | |
#else | | |
#if defined(__cplusplus) | | |
#define ISOLATION_AWARE_INLINE inline | | |
#else | | |
#define ISOLATION_AWARE_INLINE __inline | | |
#endif | | |
#endif | | |
#endif | | |
| | |
#if !ISOLATION_AWARE_USE_STATIC_LIBRARY | | |
FARPROC WINAPI CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY(LPCSTR p | | |
szProcName); | | |
| | |
#endif /* ISOLATION_AWARE_USE_STATIC_LIBRARY */ | | |
| | |
#if !defined(ISOLATIONAWARECOMMCTRL_LPSTREAM) | | |
#if !defined(__IStream_INTERFACE_DEFINED__) | | |
#if defined(interface) | | |
interface IStream; typedef interface IStream IStream; | | |
#else | | |
struct IStream; typedef struct IStream IStream; | | |
#endif | | |
#endif | | |
typedef IStream *ISOLATIONAWARECOMMCTRL_LPSTREAM; | | |
#define ISOLATIONAWARECOMMCTRL_LPSTREAM ISOLATIONAWARECOMMCTRL_LPSTREAM | | |
#endif | | |
void WINAPI IsolationAwareInitCommonControls(void); | | |
BOOL WINAPI IsolationAwareInitCommonControlsEx(LPINITCOMMONCONTROLSEX unnamed1); | | |
HIMAGELIST WINAPI IsolationAwareImageList_Create(int cx,int cy,UINT flags,int cI | | |
nitial,int cGrow); | | |
BOOL WINAPI IsolationAwareImageList_Destroy(HIMAGELIST himl); | | |
int WINAPI IsolationAwareImageList_GetImageCount(HIMAGELIST himl); | | |
BOOL WINAPI IsolationAwareImageList_SetImageCount(HIMAGELIST himl,UINT uNewCount | | |
); | | |
int WINAPI IsolationAwareImageList_Add(HIMAGELIST himl,HBITMAP hbmImage,HBITMAP | | |
hbmMask); | | |
int WINAPI IsolationAwareImageList_ReplaceIcon(HIMAGELIST himl,int i,HICON hicon | | |
); | | |
COLORREF WINAPI IsolationAwareImageList_SetBkColor(HIMAGELIST himl,COLORREF clrB | | |
k); | | |
COLORREF WINAPI IsolationAwareImageList_GetBkColor(HIMAGELIST himl); | | |
BOOL WINAPI IsolationAwareImageList_SetOverlayImage(HIMAGELIST himl,int iImage,i | | |
nt iOverlay); | | |
BOOL WINAPI IsolationAwareImageList_Draw(HIMAGELIST himl,int i,HDC hdcDst,int x, | | |
int y,UINT fStyle); | | |
BOOL WINAPI IsolationAwareImageList_Replace(HIMAGELIST himl,int i,HBITMAP hbmIma | | |
ge,HBITMAP hbmMask); | | |
int WINAPI IsolationAwareImageList_AddMasked(HIMAGELIST himl,HBITMAP hbmImage,CO | | |
LORREF crMask); | | |
BOOL WINAPI IsolationAwareImageList_DrawEx(HIMAGELIST himl,int i,HDC hdcDst,int | | |
x,int y,int dx,int dy,COLORREF rgbBk,COLORREF rgbFg,UINT fStyle); | | |
BOOL WINAPI IsolationAwareImageList_DrawIndirect(IMAGELISTDRAWPARAMS*pimldp); | | |
BOOL WINAPI IsolationAwareImageList_Remove(HIMAGELIST himl,int i); | | |
HICON WINAPI IsolationAwareImageList_GetIcon(HIMAGELIST himl,int i,UINT flags); | | |
HIMAGELIST WINAPI IsolationAwareImageList_LoadImageA(HINSTANCE hi,LPCSTR lpbmp,i | | |
nt cx,int cGrow,COLORREF crMask,UINT uType,UINT uFlags); | | |
HIMAGELIST WINAPI IsolationAwareImageList_LoadImageW(HINSTANCE hi,LPCWSTR lpbmp, | | |
int cx,int cGrow,COLORREF crMask,UINT uType,UINT uFlags); | | |
BOOL WINAPI IsolationAwareImageList_Copy(HIMAGELIST himlDst,int iDst,HIMAGELIST | | |
himlSrc,int iSrc,UINT uFlags); | | |
BOOL WINAPI IsolationAwareImageList_BeginDrag(HIMAGELIST himlTrack,int iTrack,in | | |
t dxHotspot,int dyHotspot); | | |
void WINAPI IsolationAwareImageList_EndDrag(void); | | |
BOOL WINAPI IsolationAwareImageList_DragEnter(HWND hwndLock,int x,int y); | | |
BOOL WINAPI IsolationAwareImageList_DragLeave(HWND hwndLock); | | |
BOOL WINAPI IsolationAwareImageList_DragMove(int x,int y); | | |
BOOL WINAPI IsolationAwareImageList_SetDragCursorImage(HIMAGELIST himlDrag,int i | | |
Drag,int dxHotspot,int dyHotspot); | | |
BOOL WINAPI IsolationAwareImageList_DragShowNolock(BOOL fShow); | | |
HIMAGELIST WINAPI IsolationAwareImageList_GetDragImage(POINT*ppt,POINT*pptHotspo | | |
t); | | |
HIMAGELIST WINAPI IsolationAwareImageList_Read(ISOLATIONAWARECOMMCTRL_LPSTREAM p | | |
stm); | | |
BOOL WINAPI IsolationAwareImageList_Write(HIMAGELIST himl,ISOLATIONAWARECOMMCTRL | | |
_LPSTREAM pstm); | | |
#if (_WIN32_WINNT >= 0x0501) | | |
HRESULT WINAPI IsolationAwareImageList_ReadEx(DWORD dwFlags,ISOLATIONAWARECOMMCT | | |
RL_LPSTREAM pstm,REFIID riid,PVOID*ppv); | | |
HRESULT WINAPI IsolationAwareImageList_WriteEx(HIMAGELIST himl,DWORD dwFlags,ISO | | |
LATIONAWARECOMMCTRL_LPSTREAM pstm); | | |
#endif /* (_WIN32_WINNT >= 0x0501) */ | | |
BOOL WINAPI IsolationAwareImageList_GetIconSize(HIMAGELIST himl,int*cx,int*cy); | | |
BOOL WINAPI IsolationAwareImageList_SetIconSize(HIMAGELIST himl,int cx,int cy); | | |
BOOL WINAPI IsolationAwareImageList_GetImageInfo(HIMAGELIST himl,int i,IMAGEINFO | | |
*pImageInfo); | | |
HIMAGELIST WINAPI IsolationAwareImageList_Merge(HIMAGELIST himl1,int i1,HIMAGELI | | |
ST himl2,int i2,int dx,int dy); | | |
HIMAGELIST WINAPI IsolationAwareImageList_Duplicate(HIMAGELIST himl); | | |
HWND WINAPI IsolationAwareCreateToolbarEx(HWND hwnd,DWORD ws,UINT wID,int nBitma | | |
ps,HINSTANCE hBMInst,UINT_PTR wBMID,LPCTBBUTTON lpButtons,int iNumButtons,int dx | | |
Button,int dyButton,int dxBitmap,int dyBitmap,UINT uStructSize); | | |
HBITMAP WINAPI IsolationAwareCreateMappedBitmap(HINSTANCE hInstance,INT_PTR idBi | | |
tmap,UINT wFlags,LPCOLORMAP lpColorMap,int iNumMaps); | | |
void WINAPI IsolationAwareDrawStatusTextA(HDC hDC,LPRECT lprc,LPCSTR pszText,UIN | | |
T uFlags); | | |
void WINAPI IsolationAwareDrawStatusTextW(HDC hDC,LPRECT lprc,LPCWSTR pszText,UI | | |
NT uFlags); | | |
HWND WINAPI IsolationAwareCreateStatusWindowA(long style,LPCSTR lpszText,HWND hw | | |
ndParent,UINT wID); | | |
HWND WINAPI IsolationAwareCreateStatusWindowW(long style,LPCWSTR lpszText,HWND h | | |
wndParent,UINT wID); | | |
void WINAPI IsolationAwareMenuHelp(UINT uMsg,WPARAM wParam,LPARAM lParam,HMENU h | | |
MainMenu,HINSTANCE hInst,HWND hwndStatus,UINT*lpwIDs); | | |
BOOL WINAPI IsolationAwareShowHideMenuCtl(HWND hWnd,UINT_PTR uFlags,LPINT lpInfo | | |
); | | |
void WINAPI IsolationAwareGetEffectiveClientRect(HWND hWnd,LPRECT lprc,LPINT lpI | | |
nfo); | | |
BOOL WINAPI IsolationAwareMakeDragList(HWND hLB); | | |
void WINAPI IsolationAwareDrawInsert(HWND handParent,HWND hLB,int nItem); | | |
int WINAPI IsolationAwareLBItemFromPt(HWND hLB,POINT pt,BOOL bAutoScroll); | | |
HWND WINAPI IsolationAwareCreateUpDownControl(DWORD dwStyle,int x,int y,int cx,i | | |
nt cy,HWND hParent,int nID,HINSTANCE hInst,HWND hBuddy,int nUpper,int nLower,int | | |
nPos); | | |
void WINAPI IsolationAwareInitMUILanguage(LANGID uiLang); | | |
LANGID WINAPI IsolationAwareGetMUILanguage(void); | | |
HDSA WINAPI IsolationAwareDSA_Create(int cbItem,int cItemGrow); | | |
BOOL WINAPI IsolationAwareDSA_Destroy(HDSA hdsa); | | |
void WINAPI IsolationAwareDSA_DestroyCallback(HDSA hdsa,PFNDSAENUMCALLBACK pfnCB | | |
,void*pData); | | |
PVOID WINAPI IsolationAwareDSA_GetItemPtr(HDSA hdsa,int i); | | |
int WINAPI IsolationAwareDSA_InsertItem(HDSA hdsa,int i,void*pitem); | | |
HDPA WINAPI IsolationAwareDPA_Create(int cItemGrow); | | |
BOOL WINAPI IsolationAwareDPA_Destroy(HDPA hdpa); | | |
PVOID WINAPI IsolationAwareDPA_DeletePtr(HDPA hdpa,int i); | | |
BOOL WINAPI IsolationAwareDPA_DeleteAllPtrs(HDPA hdpa); | | |
void WINAPI IsolationAwareDPA_EnumCallback(HDPA hdpa,PFNDPAENUMCALLBACK pfnCB,vo | | |
id*pData); | | |
void WINAPI IsolationAwareDPA_DestroyCallback(HDPA hdpa,PFNDPAENUMCALLBACK pfnCB | | |
,void*pData); | | |
BOOL WINAPI IsolationAwareDPA_SetPtr(HDPA hdpa,int i,void*p); | | |
int WINAPI IsolationAwareDPA_InsertPtr(HDPA hdpa,int i,void*p); | | |
PVOID WINAPI IsolationAwareDPA_GetPtr(HDPA hdpa,INT_PTR i); | | |
BOOL WINAPI IsolationAwareDPA_Sort(HDPA hdpa,PFNDPACOMPARE pfnCompare,LPARAM lPa | | |
ram); | | |
int WINAPI IsolationAwareDPA_Search(HDPA hdpa,void*pFind,int iStart,PFNDPACOMPAR | | |
E pfnCompare,LPARAM lParam,UINT options); | | |
BOOL WINAPI IsolationAwareStr_SetPtrW(LPWSTR*ppsz,LPCWSTR psz); | | |
#if !defined(NOTRACKMOUSEEVENT) | | |
BOOL WINAPI IsolationAware_TrackMouseEvent(LPTRACKMOUSEEVENT lpEventTrack); | | |
#endif /* !defined(NOTRACKMOUSEEVENT) */ | | |
BOOL WINAPI IsolationAwareFlatSB_EnableScrollBar(HWND unnamed1,int unnamed2,UINT | | |
unnamed3); | | |
BOOL WINAPI IsolationAwareFlatSB_ShowScrollBar(HWND unnamed1,int code,BOOL unnam | | |
ed2); | | |
BOOL WINAPI IsolationAwareFlatSB_GetScrollRange(HWND unnamed1,int code,LPINT unn | | |
amed2,LPINT unnamed3); | | |
BOOL WINAPI IsolationAwareFlatSB_GetScrollInfo(HWND unnamed1,int code,LPSCROLLIN | | |
FO unnamed2); | | |
int WINAPI IsolationAwareFlatSB_GetScrollPos(HWND unnamed1,int code); | | |
BOOL WINAPI IsolationAwareFlatSB_GetScrollProp(HWND unnamed1,int propIndex,LPINT | | |
unnamed2); | | |
BOOL WINAPI IsolationAwareFlatSB_GetScrollPropPtr(HWND unnamed1,int propIndex,PI | | |
NT_PTR unnamed2); | | |
int WINAPI IsolationAwareFlatSB_SetScrollPos(HWND unnamed1,int code,int pos,BOOL | | |
fRedraw); | | |
int WINAPI IsolationAwareFlatSB_SetScrollInfo(HWND unnamed1,int code,LPSCROLLINF | | |
O unnamed2,BOOL fRedraw); | | |
int WINAPI IsolationAwareFlatSB_SetScrollRange(HWND unnamed1,int code,int min,in | | |
t max,BOOL fRedraw); | | |
BOOL WINAPI IsolationAwareFlatSB_SetScrollProp(HWND unnamed1,UINT index,INT_PTR | | |
newValue,BOOL unnamed2); | | |
BOOL WINAPI IsolationAwareInitializeFlatSB(HWND unnamed1); | | |
HRESULT WINAPI IsolationAwareUninitializeFlatSB(HWND unnamed1); | | |
#if (_WIN32_IE >= 0x560) | | |
BOOL WINAPI IsolationAwareSetWindowSubclass(HWND hWnd,SUBCLASSPROC pfnSubclass,U | | |
INT_PTR uIdSubclass,DWORD_PTR dwRefData); | | |
BOOL WINAPI IsolationAwareGetWindowSubclass(HWND hWnd,SUBCLASSPROC pfnSubclass,U | | |
INT_PTR uIdSubclass,DWORD_PTR*pdwRefData); | | |
BOOL WINAPI IsolationAwareRemoveWindowSubclass(HWND hWnd,SUBCLASSPROC pfnSubclas | | |
s,UINT_PTR uIdSubclass); | | |
#endif /* (_WIN32_IE >= 0x560) */ | | |
LRESULT WINAPI IsolationAwareDefSubclassProc(HWND hWnd,UINT uMsg,WPARAM wParam,L | | |
PARAM lParam); | | |
int WINAPI IsolationAwareDrawShadowText(HDC hdc,LPCWSTR pszText,UINT cch,RECT*pr | | |
c,DWORD dwFlags,COLORREF crText,COLORREF crShadow,int ixOffset,int iyOffset); | | |
| | |
ISOLATION_AWARE_INLINE HRESULT CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(void) | | |
{ | | |
DWORD dwLastError = GetLastError(); | | |
if (dwLastError == NO_ERROR) | | |
dwLastError = ERROR_INTERNAL_ERROR; | | |
return HRESULT_FROM_WIN32(dwLastError); | | |
} | | |
| | |
#if defined(UNICODE) | | |
| | |
#define IsolationAwareCreateStatusWindow IsolationAwareCreateStatusWindowW | | |
#define IsolationAwareDrawStatusText IsolationAwareDrawStatusTextW | | |
#define IsolationAwareImageList_LoadImage IsolationAwareImageList_LoadImageW | | |
| | |
#else /* UNICODE */ | | |
| | |
#define IsolationAwareCreateStatusWindow IsolationAwareCreateStatusWindowA | | |
#define IsolationAwareDrawStatusText IsolationAwareDrawStatusTextA | | |
#define IsolationAwareImageList_LoadImage IsolationAwareImageList_LoadImageA | | |
| | |
#endif /* UNICODE */ | | |
| | |
#if !ISOLATION_AWARE_USE_STATIC_LIBRARY | | |
ISOLATION_AWARE_INLINE void WINAPI IsolationAwareInitCommonControls(void) | | |
{ | | |
typedef void (WINAPI* PFN)(void); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("InitCommonControls"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
s_pfn(); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
} | | |
} | | |
return; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareInitCommonControlsEx(LPINITCOMM | | |
ONCONTROLSEX unnamed1) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(LPINITCOMMONCONTROLSEX unnamed1); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("InitCommonControlsEx"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(unnamed1); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE HIMAGELIST WINAPI IsolationAwareImageList_Create(int cx,i | | |
nt cy,UINT flags,int cInitial,int cGrow) | | |
{ | | |
HIMAGELIST imagelistResult = NULL; | | |
typedef HIMAGELIST (WINAPI* PFN)(int cx,int cy,UINT flags,int cInitial,int c | | |
Grow); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return imagelistResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_Create"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
imagelistResult = s_pfn(cx,cy,flags,cInitial,cGrow); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (imagelistResult == NULL); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return imagelistResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_Destroy(HIMAGELIST hi | | |
ml) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HIMAGELIST himl); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_Destroy"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(himl); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE int WINAPI IsolationAwareImageList_GetImageCount(HIMAGELI | | |
ST himl) | | |
{ | | |
int nResult = 0 ; | | |
typedef int (WINAPI* PFN)(HIMAGELIST himl); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return nResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_GetImageCount"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
nResult = s_pfn(himl); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (nResult == 0 ); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return nResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_SetImageCount(HIMAGEL | | |
IST himl,UINT uNewCount) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,UINT uNewCount); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_SetImageCount"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(himl,uNewCount); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE int WINAPI IsolationAwareImageList_Add(HIMAGELIST himl,HB | | |
ITMAP hbmImage,HBITMAP hbmMask) | | |
{ | | |
int nResult = -1; | | |
typedef int (WINAPI* PFN)(HIMAGELIST himl,HBITMAP hbmImage,HBITMAP hbmMask); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return nResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_Add"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
nResult = s_pfn(himl,hbmImage,hbmMask); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (nResult == -1); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return nResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE int WINAPI IsolationAwareImageList_ReplaceIcon(HIMAGELIST | | |
himl,int i,HICON hicon) | | |
{ | | |
int nResult = -1; | | |
typedef int (WINAPI* PFN)(HIMAGELIST himl,int i,HICON hicon); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return nResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_ReplaceIcon"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
nResult = s_pfn(himl,i,hicon); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (nResult == -1); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return nResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE COLORREF WINAPI IsolationAwareImageList_SetBkColor(HIMAGE | | |
LIST himl,COLORREF clrBk) | | |
{ | | |
COLORREF colorResult = RGB(0,0,0); | | |
typedef COLORREF (WINAPI* PFN)(HIMAGELIST himl,COLORREF clrBk); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return colorResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_SetBkColor"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
colorResult = s_pfn(himl,clrBk); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (colorResult == RGB(0,0,0)); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return colorResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE COLORREF WINAPI IsolationAwareImageList_GetBkColor(HIMAGE | | |
LIST himl) | | |
{ | | |
COLORREF colorResult = RGB(0,0,0); | | |
typedef COLORREF (WINAPI* PFN)(HIMAGELIST himl); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return colorResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_GetBkColor"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
colorResult = s_pfn(himl); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (colorResult == RGB(0,0,0)); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return colorResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_SetOverlayImage(HIMAG | | |
ELIST himl,int iImage,int iOverlay) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,int iImage,int iOverlay); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_SetOverlayImage"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(himl,iImage,iOverlay); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_Draw(HIMAGELIST himl, | | |
int i,HDC hdcDst,int x,int y,UINT fStyle) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,int i,HDC hdcDst,int x,int y,UINT | | |
fStyle); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_Draw"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(himl,i,hdcDst,x,y,fStyle); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_Replace(HIMAGELIST hi | | |
ml,int i,HBITMAP hbmImage,HBITMAP hbmMask) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,int i,HBITMAP hbmImage,HBITMAP hb | | |
mMask); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_Replace"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(himl,i,hbmImage,hbmMask); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE int WINAPI IsolationAwareImageList_AddMasked(HIMAGELIST h | | |
iml,HBITMAP hbmImage,COLORREF crMask) | | |
{ | | |
int nResult = -1; | | |
typedef int (WINAPI* PFN)(HIMAGELIST himl,HBITMAP hbmImage,COLORREF crMask); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return nResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_AddMasked"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
nResult = s_pfn(himl,hbmImage,crMask); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (nResult == -1); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return nResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_DrawEx(HIMAGELIST him | | |
l,int i,HDC hdcDst,int x,int y,int dx,int dy,COLORREF rgbBk,COLORREF rgbFg,UINT | | |
fStyle) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,int i,HDC hdcDst,int x,int y,int | | |
dx,int dy,COLORREF rgbBk,COLORREF rgbFg,UINT fStyle); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_DrawEx"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(himl,i,hdcDst,x,y,dx,dy,rgbBk,rgbFg,fStyle); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_DrawIndirect(IMAGELIS | | |
TDRAWPARAMS*pimldp) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(IMAGELISTDRAWPARAMS*pimldp); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_DrawIndirect"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(pimldp); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_Remove(HIMAGELIST him | | |
l,int i) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,int i); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_Remove"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(himl,i); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE HICON WINAPI IsolationAwareImageList_GetIcon(HIMAGELIST h | | |
iml,int i,UINT flags) | | |
{ | | |
HICON iconResult = NULL; | | |
typedef HICON (WINAPI* PFN)(HIMAGELIST himl,int i,UINT flags); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return iconResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_GetIcon"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
iconResult = s_pfn(himl,i,flags); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (iconResult == NULL); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return iconResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE HIMAGELIST WINAPI IsolationAwareImageList_LoadImageA(HINS | | |
TANCE hi,LPCSTR lpbmp,int cx,int cGrow,COLORREF crMask,UINT uType,UINT uFlags) | | |
{ | | |
HIMAGELIST imagelistResult = NULL; | | |
typedef HIMAGELIST (WINAPI* PFN)(HINSTANCE hi,LPCSTR lpbmp,int cx,int cGrow, | | |
COLORREF crMask,UINT uType,UINT uFlags); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return imagelistResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_LoadImageA"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
imagelistResult = s_pfn(hi,lpbmp,cx,cGrow,crMask,uType,uFlags); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (imagelistResult == NULL); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return imagelistResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE HIMAGELIST WINAPI IsolationAwareImageList_LoadImageW(HINS | | |
TANCE hi,LPCWSTR lpbmp,int cx,int cGrow,COLORREF crMask,UINT uType,UINT uFlags) | | |
{ | | |
HIMAGELIST imagelistResult = NULL; | | |
typedef HIMAGELIST (WINAPI* PFN)(HINSTANCE hi,LPCWSTR lpbmp,int cx,int cGrow | | |
,COLORREF crMask,UINT uType,UINT uFlags); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return imagelistResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_LoadImageW"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
imagelistResult = s_pfn(hi,lpbmp,cx,cGrow,crMask,uType,uFlags); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (imagelistResult == NULL); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return imagelistResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_Copy(HIMAGELIST himlD | | |
st,int iDst,HIMAGELIST himlSrc,int iSrc,UINT uFlags) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HIMAGELIST himlDst,int iDst,HIMAGELIST himlSrc,in | | |
t iSrc,UINT uFlags); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_Copy"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(himlDst,iDst,himlSrc,iSrc,uFlags); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_BeginDrag(HIMAGELIST | | |
himlTrack,int iTrack,int dxHotspot,int dyHotspot) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HIMAGELIST himlTrack,int iTrack,int dxHotspot,int | | |
dyHotspot); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_BeginDrag"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(himlTrack,iTrack,dxHotspot,dyHotspot); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE void WINAPI IsolationAwareImageList_EndDrag(void) | | |
{ | | |
typedef void (WINAPI* PFN)(void); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_EndDrag"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
s_pfn(); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
} | | |
} | | |
return; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_DragEnter(HWND hwndLo | | |
ck,int x,int y) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HWND hwndLock,int x,int y); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_DragEnter"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(hwndLock,x,y); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_DragLeave(HWND hwndLo | | |
ck) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HWND hwndLock); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_DragLeave"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(hwndLock); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_DragMove(int x,int y) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(int x,int y); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_DragMove"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(x,y); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_SetDragCursorImage(HI | | |
MAGELIST himlDrag,int iDrag,int dxHotspot,int dyHotspot) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HIMAGELIST himlDrag,int iDrag,int dxHotspot,int d | | |
yHotspot); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_SetDragCursorImage"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(himlDrag,iDrag,dxHotspot,dyHotspot); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_DragShowNolock(BOOL f | | |
Show) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(BOOL fShow); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_DragShowNolock"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(fShow); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
|
ISOLATION_AWARE_INLINE HIMAGELIST WINAPI IsolationAwareImageList_GetDragImage(PO
INT*ppt,POINT*pptHotspot) | | enum _LI_METRIC |
{ | | { |
|
HIMAGELIST imagelistResult = NULL; | | LIM_SMALL, // corresponds to SM_CXSMICON/SM_CYSMICON |
typedef HIMAGELIST (WINAPI* PFN)(POINT*ppt,POINT*pptHotspot); | | LIM_LARGE, // corresponds to SM_CXICON/SM_CYICON |
static PFN s_pfn; | | }; |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return imagelistResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_GetDragImage"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
imagelistResult = s_pfn(ppt,pptHotspot); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (imagelistResult == NULL); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return imagelistResult; | | |
} | | |
| | |
|
ISOLATION_AWARE_INLINE HIMAGELIST WINAPI IsolationAwareImageList_Read(ISOLATIONA | | WINCOMMCTRLAPI HRESULT WINAPI LoadIconMetric(HINSTANCE hinst, PCWSTR pszName, in |
WARECOMMCTRL_LPSTREAM pstm) | | t lims, __out HICON *phico); |
{ | | WINCOMMCTRLAPI HRESULT WINAPI LoadIconWithScaleDown(HINSTANCE hinst, PCWSTR pszN |
HIMAGELIST imagelistResult = NULL; | | ame, int cx, int cy, __out HICON *phico); |
typedef HIMAGELIST (WINAPI* PFN)(ISOLATIONAWARECOMMCTRL_LPSTREAM pstm); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return imagelistResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_Read"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
imagelistResult = s_pfn(pstm); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (imagelistResult == NULL); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return imagelistResult; | | |
} | | |
| | |
|
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_Write(HIMAGELIST himl | | #endif // NTDDI_LONGHORN |
,ISOLATIONAWARECOMMCTRL_LPSTREAM pstm) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,ISOLATIONAWARECOMMCTRL_LPSTREAM p | | |
stm); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_Write"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(himl,pstm); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
#if (_WIN32_WINNT >= 0x0501) | | #if (_WIN32_WINNT >= 0x0501) |
| | |
|
ISOLATION_AWARE_INLINE HRESULT WINAPI IsolationAwareImageList_ReadEx(DWORD dwFla | | int WINAPI DrawShadowText(HDC hdc, __in_ecount(cch) LPCWSTR pszText, UINT cch, R |
gs,ISOLATIONAWARECOMMCTRL_LPSTREAM pstm,REFIID riid,PVOID*ppv) | | ECT* prc, DWORD dwFlags, COLORREF crText, COLORREF crShadow, |
{ | | int ixOffset, int iyOffset); |
HRESULT result = S_OK; | | |
typedef HRESULT (WINAPI* PFN)(DWORD dwFlags,ISOLATIONAWARECOMMCTRL_LPSTREAM | | |
pstm,REFIID riid,PVOID*ppv); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_ReadEx"); | | |
if (s_pfn == NULL) | | |
{ | | |
result = CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); | | |
__leave; | | |
} | | |
} | | |
result = s_pfn(dwFlags,pstm,riid,ppv); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
} | | |
} | | |
return result; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE HRESULT WINAPI IsolationAwareImageList_WriteEx(HIMAGELIST | | |
himl,DWORD dwFlags,ISOLATIONAWARECOMMCTRL_LPSTREAM pstm) | | |
{ | | |
HRESULT result = S_OK; | | |
typedef HRESULT (WINAPI* PFN)(HIMAGELIST himl,DWORD dwFlags,ISOLATIONAWARECO | | |
MMCTRL_LPSTREAM pstm); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_WriteEx"); | | |
if (s_pfn == NULL) | | |
{ | | |
result = CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); | | |
__leave; | | |
} | | |
} | | |
result = s_pfn(himl,dwFlags,pstm); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
} | | |
} | | |
return result; | | |
} | | |
| | |
#endif /* (_WIN32_WINNT >= 0x0501) */ | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_GetIconSize(HIMAGELIS | | |
T himl,int*cx,int*cy) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,int*cx,int*cy); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_GetIconSize"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(himl,cx,cy); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_SetIconSize(HIMAGELIS | | |
T himl,int cx,int cy) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,int cx,int cy); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_SetIconSize"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(himl,cx,cy); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_GetImageInfo(HIMAGELI | | |
ST himl,int i,IMAGEINFO*pImageInfo) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,int i,IMAGEINFO*pImageInfo); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_GetImageInfo"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(himl,i,pImageInfo); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE HIMAGELIST WINAPI IsolationAwareImageList_Merge(HIMAGELIS | | |
T himl1,int i1,HIMAGELIST himl2,int i2,int dx,int dy) | | |
{ | | |
HIMAGELIST imagelistResult = NULL; | | |
typedef HIMAGELIST (WINAPI* PFN)(HIMAGELIST himl1,int i1,HIMAGELIST himl2,in | | |
t i2,int dx,int dy); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return imagelistResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_Merge"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
imagelistResult = s_pfn(himl1,i1,himl2,i2,dx,dy); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (imagelistResult == NULL); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return imagelistResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE HIMAGELIST WINAPI IsolationAwareImageList_Duplicate(HIMAG | | |
ELIST himl) | | |
{ | | |
HIMAGELIST imagelistResult = NULL; | | |
typedef HIMAGELIST (WINAPI* PFN)(HIMAGELIST himl); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return imagelistResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ImageList_Duplicate"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
imagelistResult = s_pfn(himl); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (imagelistResult == NULL); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return imagelistResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE HWND WINAPI IsolationAwareCreateToolbarEx(HWND hwnd,DWORD | | |
ws,UINT wID,int nBitmaps,HINSTANCE hBMInst,UINT_PTR wBMID,LPCTBBUTTON lpButtons | | |
,int iNumButtons,int dxButton,int dyButton,int dxBitmap,int dyBitmap,UINT uStruc | | |
tSize) | | |
{ | | |
HWND windowResult = NULL; | | |
typedef HWND (WINAPI* PFN)(HWND hwnd,DWORD ws,UINT wID,int nBitmaps,HINSTANC | | |
E hBMInst,UINT_PTR wBMID,LPCTBBUTTON lpButtons,int iNumButtons,int dxButton,int | | |
dyButton,int dxBitmap,int dyBitmap,UINT uStructSize); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return windowResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("CreateToolbarEx"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
windowResult = s_pfn(hwnd,ws,wID,nBitmaps,hBMInst,wBMID,lpButtons,iNumBu | | |
ttons,dxButton,dyButton,dxBitmap,dyBitmap,uStructSize); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (windowResult == NULL); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return windowResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE HBITMAP WINAPI IsolationAwareCreateMappedBitmap(HINSTANCE | | |
hInstance,INT_PTR idBitmap,UINT wFlags,LPCOLORMAP lpColorMap,int iNumMaps) | | |
{ | | |
HBITMAP bitmapResult = NULL; | | |
typedef HBITMAP (WINAPI* PFN)(HINSTANCE hInstance,INT_PTR idBitmap,UINT wFla | | |
gs,LPCOLORMAP lpColorMap,int iNumMaps); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return bitmapResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("CreateMappedBitmap"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
bitmapResult = s_pfn(hInstance,idBitmap,wFlags,lpColorMap,iNumMaps); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (bitmapResult == NULL); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return bitmapResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE void WINAPI IsolationAwareDrawStatusTextA(HDC hDC,LPRECT | | |
lprc,LPCSTR pszText,UINT uFlags) | | |
{ | | |
typedef void (WINAPI* PFN)(HDC hDC,LPRECT lprc,LPCSTR pszText,UINT uFlags); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DrawStatusTextA"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
s_pfn(hDC,lprc,pszText,uFlags); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
} | | |
} | | |
return; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE void WINAPI IsolationAwareDrawStatusTextW(HDC hDC,LPRECT | | |
lprc,LPCWSTR pszText,UINT uFlags) | | |
{ | | |
typedef void (WINAPI* PFN)(HDC hDC,LPRECT lprc,LPCWSTR pszText,UINT uFlags); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DrawStatusTextW"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
s_pfn(hDC,lprc,pszText,uFlags); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
} | | |
} | | |
return; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE HWND WINAPI IsolationAwareCreateStatusWindowA(long style, | | |
LPCSTR lpszText,HWND hwndParent,UINT wID) | | |
{ | | |
HWND windowResult = NULL; | | |
typedef HWND (WINAPI* PFN)(long style,LPCSTR lpszText,HWND hwndParent,UINT w | | |
ID); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return windowResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("CreateStatusWindowA"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
windowResult = s_pfn(style,lpszText,hwndParent,wID); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (windowResult == NULL); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return windowResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE HWND WINAPI IsolationAwareCreateStatusWindowW(long style, | | |
LPCWSTR lpszText,HWND hwndParent,UINT wID) | | |
{ | | |
HWND windowResult = NULL; | | |
typedef HWND (WINAPI* PFN)(long style,LPCWSTR lpszText,HWND hwndParent,UINT | | |
wID); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return windowResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("CreateStatusWindowW"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
windowResult = s_pfn(style,lpszText,hwndParent,wID); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (windowResult == NULL); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return windowResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE void WINAPI IsolationAwareMenuHelp(UINT uMsg,WPARAM wPara | | |
m,LPARAM lParam,HMENU hMainMenu,HINSTANCE hInst,HWND hwndStatus,UINT*lpwIDs) | | |
{ | | |
typedef void (WINAPI* PFN)(UINT uMsg,WPARAM wParam,LPARAM lParam,HMENU hMain | | |
Menu,HINSTANCE hInst,HWND hwndStatus,UINT*lpwIDs); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("MenuHelp"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
s_pfn(uMsg,wParam,lParam,hMainMenu,hInst,hwndStatus,lpwIDs); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
} | | |
} | | |
return; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareShowHideMenuCtl(HWND hWnd,UINT_ | | |
PTR uFlags,LPINT lpInfo) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HWND hWnd,UINT_PTR uFlags,LPINT lpInfo); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("ShowHideMenuCtl"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(hWnd,uFlags,lpInfo); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE void WINAPI IsolationAwareGetEffectiveClientRect(HWND hWn | | |
d,LPRECT lprc,LPINT lpInfo) | | |
{ | | |
typedef void (WINAPI* PFN)(HWND hWnd,LPRECT lprc,LPINT lpInfo); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("GetEffectiveClientRect"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
s_pfn(hWnd,lprc,lpInfo); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
} | | |
} | | |
return; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareMakeDragList(HWND hLB) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HWND hLB); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("MakeDragList"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(hLB); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE void WINAPI IsolationAwareDrawInsert(HWND handParent,HWND | | |
hLB,int nItem) | | |
{ | | |
typedef void (WINAPI* PFN)(HWND handParent,HWND hLB,int nItem); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DrawInsert"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
s_pfn(handParent,hLB,nItem); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
} | | |
} | | |
return; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE int WINAPI IsolationAwareLBItemFromPt(HWND hLB,POINT pt,B | | |
OOL bAutoScroll) | | |
{ | | |
int nResult = -1; | | |
typedef int (WINAPI* PFN)(HWND hLB,POINT pt,BOOL bAutoScroll); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return nResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("LBItemFromPt"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
nResult = s_pfn(hLB,pt,bAutoScroll); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (nResult == -1); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return nResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE HWND WINAPI IsolationAwareCreateUpDownControl(DWORD dwSty | | |
le,int x,int y,int cx,int cy,HWND hParent,int nID,HINSTANCE hInst,HWND hBuddy,in | | |
t nUpper,int nLower,int nPos) | | |
{ | | |
HWND windowResult = NULL; | | |
typedef HWND (WINAPI* PFN)(DWORD dwStyle,int x,int y,int cx,int cy,HWND hPar | | |
ent,int nID,HINSTANCE hInst,HWND hBuddy,int nUpper,int nLower,int nPos); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return windowResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("CreateUpDownControl"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
windowResult = s_pfn(dwStyle,x,y,cx,cy,hParent,nID,hInst,hBuddy,nUpper,n | | |
Lower,nPos); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (windowResult == NULL); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return windowResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE void WINAPI IsolationAwareInitMUILanguage(LANGID uiLang) | | |
{ | | |
typedef void (WINAPI* PFN)(LANGID uiLang); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("InitMUILanguage"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
s_pfn(uiLang); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
} | | |
} | | |
return; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE LANGID WINAPI IsolationAwareGetMUILanguage(void) | | |
{ | | |
LANGID languageIdResult = MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL); | | |
typedef LANGID (WINAPI* PFN)(void); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return languageIdResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("GetMUILanguage"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
languageIdResult = s_pfn(); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (languageIdResult == MAKELANGID(LANG | | |
_NEUTRAL, SUBLANG_NEUTRAL)); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return languageIdResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE HDSA WINAPI IsolationAwareDSA_Create(int cbItem,int cItem | | |
Grow) | | |
{ | | |
HDSA result = NULL; | | |
typedef HDSA (WINAPI* PFN)(int cbItem,int cItemGrow); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return result; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DSA_Create"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
result = s_pfn(cbItem,cItemGrow); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (result == NULL); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return result; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareDSA_Destroy(HDSA hdsa) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HDSA hdsa); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DSA_Destroy"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(hdsa); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE void WINAPI IsolationAwareDSA_DestroyCallback(HDSA hdsa,P | | |
FNDSAENUMCALLBACK pfnCB,void*pData) | | |
{ | | |
typedef void (WINAPI* PFN)(HDSA hdsa,PFNDSAENUMCALLBACK pfnCB,void*pData); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DSA_DestroyCallback"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
s_pfn(hdsa,pfnCB,pData); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
} | | |
} | | |
return; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE PVOID WINAPI IsolationAwareDSA_GetItemPtr(HDSA hdsa,int i | | |
) | | |
{ | | |
PVOID vResult = NULL; | | |
typedef PVOID (WINAPI* PFN)(HDSA hdsa,int i); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return vResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DSA_GetItemPtr"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
vResult = s_pfn(hdsa,i); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (vResult == NULL); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return vResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE int WINAPI IsolationAwareDSA_InsertItem(HDSA hdsa,int i,v | | |
oid*pitem) | | |
{ | | |
int nResult = -1; | | |
typedef int (WINAPI* PFN)(HDSA hdsa,int i,void*pitem); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return nResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DSA_InsertItem"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
nResult = s_pfn(hdsa,i,pitem); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (nResult == -1); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return nResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE HDPA WINAPI IsolationAwareDPA_Create(int cItemGrow) | | |
{ | | |
HDPA result = NULL; | | |
typedef HDPA (WINAPI* PFN)(int cItemGrow); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return result; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DPA_Create"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
result = s_pfn(cItemGrow); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (result == NULL); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return result; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareDPA_Destroy(HDPA hdpa) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HDPA hdpa); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DPA_Destroy"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(hdpa); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE PVOID WINAPI IsolationAwareDPA_DeletePtr(HDPA hdpa,int i) | | |
{ | | |
PVOID vResult = NULL; | | |
typedef PVOID (WINAPI* PFN)(HDPA hdpa,int i); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return vResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DPA_DeletePtr"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
vResult = s_pfn(hdpa,i); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (vResult == NULL); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return vResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareDPA_DeleteAllPtrs(HDPA hdpa) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HDPA hdpa); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DPA_DeleteAllPtrs"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(hdpa); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE void WINAPI IsolationAwareDPA_EnumCallback(HDPA hdpa,PFND | | |
PAENUMCALLBACK pfnCB,void*pData) | | |
{ | | |
typedef void (WINAPI* PFN)(HDPA hdpa,PFNDPAENUMCALLBACK pfnCB,void*pData); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DPA_EnumCallback"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
s_pfn(hdpa,pfnCB,pData); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
} | | |
} | | |
return; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE void WINAPI IsolationAwareDPA_DestroyCallback(HDPA hdpa,P | | |
FNDPAENUMCALLBACK pfnCB,void*pData) | | |
{ | | |
typedef void (WINAPI* PFN)(HDPA hdpa,PFNDPAENUMCALLBACK pfnCB,void*pData); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DPA_DestroyCallback"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
s_pfn(hdpa,pfnCB,pData); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
} | | |
} | | |
return; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareDPA_SetPtr(HDPA hdpa,int i,void | | |
*p) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HDPA hdpa,int i,void*p); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DPA_SetPtr"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(hdpa,i,p); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE int WINAPI IsolationAwareDPA_InsertPtr(HDPA hdpa,int i,vo | | |
id*p) | | |
{ | | |
int nResult = -1; | | |
typedef int (WINAPI* PFN)(HDPA hdpa,int i,void*p); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return nResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DPA_InsertPtr"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
nResult = s_pfn(hdpa,i,p); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (nResult == -1); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return nResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE PVOID WINAPI IsolationAwareDPA_GetPtr(HDPA hdpa,INT_PTR i | | |
) | | |
{ | | |
PVOID vResult = NULL; | | |
typedef PVOID (WINAPI* PFN)(HDPA hdpa,INT_PTR i); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return vResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DPA_GetPtr"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
vResult = s_pfn(hdpa,i); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (vResult == NULL); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return vResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareDPA_Sort(HDPA hdpa,PFNDPACOMPAR | | |
E pfnCompare,LPARAM lParam) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HDPA hdpa,PFNDPACOMPARE pfnCompare,LPARAM lParam) | | |
; | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DPA_Sort"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(hdpa,pfnCompare,lParam); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE int WINAPI IsolationAwareDPA_Search(HDPA hdpa,void*pFind, | | |
int iStart,PFNDPACOMPARE pfnCompare,LPARAM lParam,UINT options) | | |
{ | | |
int nResult = -1; | | |
typedef int (WINAPI* PFN)(HDPA hdpa,void*pFind,int iStart,PFNDPACOMPARE pfnC | | |
ompare,LPARAM lParam,UINT options); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return nResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DPA_Search"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
nResult = s_pfn(hdpa,pFind,iStart,pfnCompare,lParam,options); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (nResult == -1); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return nResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareStr_SetPtrW(LPWSTR*ppsz,LPCWSTR | | |
psz) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(LPWSTR*ppsz,LPCWSTR psz); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("Str_SetPtrW"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(ppsz,psz); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
#if !defined(NOTRACKMOUSEEVENT) | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAware_TrackMouseEvent(LPTRACKMOUSEEV | | |
ENT lpEventTrack) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(LPTRACKMOUSEEVENT lpEventTrack); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("_TrackMouseEvent"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(lpEventTrack); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
#endif /* !defined(NOTRACKMOUSEEVENT) */ | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareFlatSB_EnableScrollBar(HWND unn | | |
amed1,int unnamed2,UINT unnamed3) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HWND unnamed1,int unnamed2,UINT unnamed3); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("FlatSB_EnableScrollBar"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(unnamed1,unnamed2,unnamed3); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareFlatSB_ShowScrollBar(HWND unnam | | |
ed1,int code,BOOL unnamed2) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HWND unnamed1,int code,BOOL unnamed2); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("FlatSB_ShowScrollBar"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(unnamed1,code,unnamed2); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareFlatSB_GetScrollRange(HWND unna | | |
med1,int code,LPINT unnamed2,LPINT unnamed3) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HWND unnamed1,int code,LPINT unnamed2,LPINT unnam | | |
ed3); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("FlatSB_GetScrollRange"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(unnamed1,code,unnamed2,unnamed3); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareFlatSB_GetScrollInfo(HWND unnam | | |
ed1,int code,LPSCROLLINFO unnamed2) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HWND unnamed1,int code,LPSCROLLINFO unnamed2); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("FlatSB_GetScrollInfo"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(unnamed1,code,unnamed2); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE int WINAPI IsolationAwareFlatSB_GetScrollPos(HWND unnamed | | |
1,int code) | | |
{ | | |
int nResult = 0 ; | | |
typedef int (WINAPI* PFN)(HWND unnamed1,int code); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return nResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("FlatSB_GetScrollPos"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
nResult = s_pfn(unnamed1,code); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (nResult == 0 ); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return nResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareFlatSB_GetScrollProp(HWND unnam | | |
ed1,int propIndex,LPINT unnamed2) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HWND unnamed1,int propIndex,LPINT unnamed2); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("FlatSB_GetScrollProp"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(unnamed1,propIndex,unnamed2); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareFlatSB_GetScrollPropPtr(HWND un | | |
named1,int propIndex,PINT_PTR unnamed2) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HWND unnamed1,int propIndex,PINT_PTR unnamed2); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y( | | |
#if defined(_WIN64) | | |
"FlatSB_GetScrollPropPtr" | | |
#else | | |
"FlatSB_GetScrollProp" | | |
#endif | | |
); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(unnamed1,propIndex,unnamed2); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE int WINAPI IsolationAwareFlatSB_SetScrollPos(HWND unnamed | | |
1,int code,int pos,BOOL fRedraw) | | |
{ | | |
int nResult = 0 ; | | |
typedef int (WINAPI* PFN)(HWND unnamed1,int code,int pos,BOOL fRedraw); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return nResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("FlatSB_SetScrollPos"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
nResult = s_pfn(unnamed1,code,pos,fRedraw); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (nResult == 0 ); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return nResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE int WINAPI IsolationAwareFlatSB_SetScrollInfo(HWND unname | | |
d1,int code,LPSCROLLINFO unnamed2,BOOL fRedraw) | | |
{ | | |
int nResult = 0 ; | | |
typedef int (WINAPI* PFN)(HWND unnamed1,int code,LPSCROLLINFO unnamed2,BOOL | | |
fRedraw); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return nResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("FlatSB_SetScrollInfo"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
nResult = s_pfn(unnamed1,code,unnamed2,fRedraw); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (nResult == 0 ); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return nResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE int WINAPI IsolationAwareFlatSB_SetScrollRange(HWND unnam | | |
ed1,int code,int min,int max,BOOL fRedraw) | | |
{ | | |
int nResult = 0 ; | | |
typedef int (WINAPI* PFN)(HWND unnamed1,int code,int min,int max,BOOL fRedra | | |
w); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return nResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("FlatSB_SetScrollRange"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
nResult = s_pfn(unnamed1,code,min,max,fRedraw); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (nResult == 0 ); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return nResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareFlatSB_SetScrollProp(HWND unnam | | |
ed1,UINT index,INT_PTR newValue,BOOL unnamed2) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HWND unnamed1,UINT index,INT_PTR newValue,BOOL un | | |
named2); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("FlatSB_SetScrollProp"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(unnamed1,index,newValue,unnamed2); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareInitializeFlatSB(HWND unnamed1) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HWND unnamed1); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("InitializeFlatSB"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(unnamed1); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE HRESULT WINAPI IsolationAwareUninitializeFlatSB(HWND unna | | |
med1) | | |
{ | | |
HRESULT result = S_OK; | | |
typedef HRESULT (WINAPI* PFN)(HWND unnamed1); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("UninitializeFlatSB"); | | |
if (s_pfn == NULL) | | |
{ | | |
result = CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); | | |
__leave; | | |
} | | |
} | | |
result = s_pfn(unnamed1); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
} | | |
} | | |
return result; | | |
} | | |
| | |
#if (_WIN32_IE >= 0x560) | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareSetWindowSubclass(HWND hWnd,SUB | | |
CLASSPROC pfnSubclass,UINT_PTR uIdSubclass,DWORD_PTR dwRefData) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HWND hWnd,SUBCLASSPROC pfnSubclass,UINT_PTR uIdSu | | |
bclass,DWORD_PTR dwRefData); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("SetWindowSubclass"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(hWnd,pfnSubclass,uIdSubclass,dwRefData); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareGetWindowSubclass(HWND hWnd,SUB | | |
CLASSPROC pfnSubclass,UINT_PTR uIdSubclass,DWORD_PTR*pdwRefData) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HWND hWnd,SUBCLASSPROC pfnSubclass,UINT_PTR uIdSu | | |
bclass,DWORD_PTR*pdwRefData); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("GetWindowSubclass"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(hWnd,pfnSubclass,uIdSubclass,pdwRefData); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareRemoveWindowSubclass(HWND hWnd, | | |
SUBCLASSPROC pfnSubclass,UINT_PTR uIdSubclass) | | |
{ | | |
BOOL fResult = FALSE; | | |
typedef BOOL (WINAPI* PFN)(HWND hWnd,SUBCLASSPROC pfnSubclass,UINT_PTR uIdSu | | |
bclass); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return fResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("RemoveWindowSubclass"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
fResult = s_pfn(hWnd,pfnSubclass,uIdSubclass); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (fResult == FALSE); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return fResult; | | |
} | | |
| | |
#endif /* (_WIN32_IE >= 0x560) */ | | |
| | |
ISOLATION_AWARE_INLINE LRESULT WINAPI IsolationAwareDefSubclassProc(HWND hWnd,UI | | |
NT uMsg,WPARAM wParam,LPARAM lParam) | | |
{ | | |
LRESULT result = 0 ; | | |
typedef LRESULT (WINAPI* PFN)(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lPara | | |
m); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return result; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DefSubclassProc"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
result = s_pfn(hWnd,uMsg,wParam,lParam); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (result == 0 ); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return result; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE int WINAPI IsolationAwareDrawShadowText(HDC hdc,LPCWSTR p | | |
szText,UINT cch,RECT*prc,DWORD dwFlags,COLORREF crText,COLORREF crShadow,int ixO | | |
ffset,int iyOffset) | | |
{ | | |
int nResult = -1; | | |
typedef int (WINAPI* PFN)(HDC hdc,LPCWSTR pszText,UINT cch,RECT*prc,DWORD dw | | |
Flags,COLORREF crText,COLORREF crShadow,int ixOffset,int iyOffset); | | |
static PFN s_pfn; | | |
ULONG_PTR ulpCookie = 0; | | |
const BOOL fActivateActCtxSuccess = IsolationAwarePrivateT_SqbjaYRiRY || Iso | | |
lationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); | | |
if (!fActivateActCtxSuccess) | | |
return nResult; | | |
__try | | |
{ | | |
if (s_pfn == NULL) | | |
{ | | |
s_pfn = (PFN)CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QY | | |
Y("DrawShadowText"); | | |
if (s_pfn == NULL) | | |
__leave; | | |
} | | |
nResult = s_pfn(hdc,pszText,cch,prc,dwFlags,crText,crShadow,ixOffset,iyO | | |
ffset); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
const BOOL fPreserveLastError = (nResult == -1); | | |
const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_E | | |
RROR; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (fPreserveLastError) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return nResult; | | |
} | | |
| | |
ISOLATION_AWARE_INLINE FARPROC WINAPI CommctrlIsolationAwarePrivatetRgCebPnQQeRf | | |
f_pbZPgYQP_QYY(LPCSTR pszProcName) | | |
/* This function is shared by the other stubs in this header. */ | | |
{ | | |
FARPROC proc = NULL; | | |
static HMODULE s_module; | | |
BOOL fActivateActCtxSuccess = FALSE; | | |
ULONG_PTR ulpCookie = 0; | | |
const static IsolationAwarePrivatepBAFGnAG_zBqHyr_vAsB | | |
c = { IsolationAwarePrivatezlybNQyVOeNeln, IsolationAwarePrivatezlybNQyV | | |
OeNelJ, "Comctl32.dll", L"Comctl32.dll" }; | | |
static IsolationAwarePrivatezHGnoyr_zBqHyr_vAsB m; | | |
| | |
__try | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY) | | |
{ | | |
fActivateActCtxSuccess = IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpC | | |
ookie); | | |
if (!fActivateActCtxSuccess) | | |
__leave; | | |
} | | |
proc = IsolationAwarePrivatezltRgCebPnQQeRff(&c, &m, pszProcName); | | |
} | | |
__finally | | |
{ | | |
if (!IsolationAwarePrivateT_SqbjaYRiRY && fActivateActCtxSuccess) | | |
{ | | |
const DWORD dwLastError = (proc == NULL) ? GetLastError() : NO_ERROR | | |
; | | |
(void)IsolationAwareDeactivateActCtx(0, ulpCookie); | | |
if (proc == NULL) | | |
SetLastError(dwLastError); | | |
} | | |
} | | |
return proc; | | |
} | | |
| | |
#endif /* ISOLATION_AWARE_USE_STATIC_LIBRARY */ | | |
| | |
#define CreateMappedBitmap IsolationAwareCreateMappedBitmap | | |
#define CreateStatusWindowA IsolationAwareCreateStatusWindowA | | |
#define CreateStatusWindowW IsolationAwareCreateStatusWindowW | | |
#define CreateToolbarEx IsolationAwareCreateToolbarEx | | |
#define CreateUpDownControl IsolationAwareCreateUpDownControl | | |
#define DPA_Create IsolationAwareDPA_Create | | |
#define DPA_DeleteAllPtrs IsolationAwareDPA_DeleteAllPtrs | | |
#define DPA_DeletePtr IsolationAwareDPA_DeletePtr | | |
#define DPA_Destroy IsolationAwareDPA_Destroy | | |
#define DPA_DestroyCallback IsolationAwareDPA_DestroyCallback | | |
#define DPA_EnumCallback IsolationAwareDPA_EnumCallback | | |
#define DPA_GetPtr IsolationAwareDPA_GetPtr | | |
#define DPA_InsertPtr IsolationAwareDPA_InsertPtr | | |
#define DPA_Search IsolationAwareDPA_Search | | |
#define DPA_SetPtr IsolationAwareDPA_SetPtr | | |
#define DPA_Sort IsolationAwareDPA_Sort | | |
#define DSA_Create IsolationAwareDSA_Create | | |
#define DSA_Destroy IsolationAwareDSA_Destroy | | |
#define DSA_DestroyCallback IsolationAwareDSA_DestroyCallback | | |
#define DSA_GetItemPtr IsolationAwareDSA_GetItemPtr | | |
#define DSA_InsertItem IsolationAwareDSA_InsertItem | | |
#define DefSubclassProc IsolationAwareDefSubclassProc | | |
#define DrawInsert IsolationAwareDrawInsert | | |
#define DrawShadowText IsolationAwareDrawShadowText | | |
#define DrawStatusTextA IsolationAwareDrawStatusTextA | | |
#define DrawStatusTextW IsolationAwareDrawStatusTextW | | |
#define FlatSB_EnableScrollBar IsolationAwareFlatSB_EnableScrollBar | | |
#define FlatSB_GetScrollInfo IsolationAwareFlatSB_GetScrollInfo | | |
#define FlatSB_GetScrollPos IsolationAwareFlatSB_GetScrollPos | | |
#define FlatSB_GetScrollProp IsolationAwareFlatSB_GetScrollProp | | |
#if defined(FlatSB_GetScrollPropPtr) | | |
#undef FlatSB_GetScrollPropPtr | | |
#endif | | #endif |
|
#define FlatSB_GetScrollPropPtr IsolationAwareFlatSB_GetScrollPropPtr | | |
#define FlatSB_GetScrollRange IsolationAwareFlatSB_GetScrollRange | | |
#define FlatSB_SetScrollInfo IsolationAwareFlatSB_SetScrollInfo | | |
#define FlatSB_SetScrollPos IsolationAwareFlatSB_SetScrollPos | | |
#define FlatSB_SetScrollProp IsolationAwareFlatSB_SetScrollProp | | |
#define FlatSB_SetScrollRange IsolationAwareFlatSB_SetScrollRange | | |
#define FlatSB_ShowScrollBar IsolationAwareFlatSB_ShowScrollBar | | |
#define GetEffectiveClientRect IsolationAwareGetEffectiveClientRect | | |
#define GetMUILanguage IsolationAwareGetMUILanguage | | |
#define GetWindowSubclass IsolationAwareGetWindowSubclass | | |
#define ImageList_Add IsolationAwareImageList_Add | | |
#define ImageList_AddMasked IsolationAwareImageList_AddMasked | | |
#define ImageList_BeginDrag IsolationAwareImageList_BeginDrag | | |
#define ImageList_Copy IsolationAwareImageList_Copy | | |
#define ImageList_Create IsolationAwareImageList_Create | | |
#define ImageList_Destroy IsolationAwareImageList_Destroy | | |
#define ImageList_DragEnter IsolationAwareImageList_DragEnter | | |
#define ImageList_DragLeave IsolationAwareImageList_DragLeave | | |
#define ImageList_DragMove IsolationAwareImageList_DragMove | | |
#define ImageList_DragShowNolock IsolationAwareImageList_DragShowNolock | | |
#define ImageList_Draw IsolationAwareImageList_Draw | | |
#define ImageList_DrawEx IsolationAwareImageList_DrawEx | | |
#define ImageList_DrawIndirect IsolationAwareImageList_DrawIndirect | | |
#define ImageList_Duplicate IsolationAwareImageList_Duplicate | | |
#define ImageList_EndDrag IsolationAwareImageList_EndDrag | | |
#define ImageList_GetBkColor IsolationAwareImageList_GetBkColor | | |
#define ImageList_GetDragImage IsolationAwareImageList_GetDragImage | | |
#define ImageList_GetIcon IsolationAwareImageList_GetIcon | | |
#define ImageList_GetIconSize IsolationAwareImageList_GetIconSize | | |
#define ImageList_GetImageCount IsolationAwareImageList_GetImageCount | | |
#define ImageList_GetImageInfo IsolationAwareImageList_GetImageInfo | | |
#define ImageList_LoadImageA IsolationAwareImageList_LoadImageA | | |
#define ImageList_LoadImageW IsolationAwareImageList_LoadImageW | | |
#define ImageList_Merge IsolationAwareImageList_Merge | | |
#define ImageList_Read IsolationAwareImageList_Read | | |
#define ImageList_ReadEx IsolationAwareImageList_ReadEx | | |
#define ImageList_Remove IsolationAwareImageList_Remove | | |
#define ImageList_Replace IsolationAwareImageList_Replace | | |
#define ImageList_ReplaceIcon IsolationAwareImageList_ReplaceIcon | | |
#define ImageList_SetBkColor IsolationAwareImageList_SetBkColor | | |
#define ImageList_SetDragCursorImage IsolationAwareImageList_SetDragCursorImage | | |
#define ImageList_SetIconSize IsolationAwareImageList_SetIconSize | | |
#define ImageList_SetImageCount IsolationAwareImageList_SetImageCount | | |
#define ImageList_SetOverlayImage IsolationAwareImageList_SetOverlayImage | | |
#define ImageList_Write IsolationAwareImageList_Write | | |
#define ImageList_WriteEx IsolationAwareImageList_WriteEx | | |
#define InitCommonControls IsolationAwareInitCommonControls | | |
#define InitCommonControlsEx IsolationAwareInitCommonControlsEx | | |
#define InitMUILanguage IsolationAwareInitMUILanguage | | |
#define InitializeFlatSB IsolationAwareInitializeFlatSB | | |
#define LBItemFromPt IsolationAwareLBItemFromPt | | |
#define MakeDragList IsolationAwareMakeDragList | | |
#define MenuHelp IsolationAwareMenuHelp | | |
#define RemoveWindowSubclass IsolationAwareRemoveWindowSubclass | | |
#define SetWindowSubclass IsolationAwareSetWindowSubclass | | |
#define ShowHideMenuCtl IsolationAwareShowHideMenuCtl | | |
#define Str_SetPtrW IsolationAwareStr_SetPtrW | | |
#define UninitializeFlatSB IsolationAwareUninitializeFlatSB | | |
#define _TrackMouseEvent IsolationAware_TrackMouseEvent | | |
| | |
|
| | #if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */ |
| | #if defined(ISOLATION_AWARE_ENABLED) && (ISOLATION_AWARE_ENABLED != 0) |
| | #include "commctrl.inl" |
#endif /* ISOLATION_AWARE_ENABLED */ | | #endif /* ISOLATION_AWARE_ENABLED */ |
#endif /* RC */ | | #endif /* RC */ |
| | |
#ifdef __cplusplus | | #ifdef __cplusplus |
} | | } |
#endif | | #endif |
| | |
#endif | | #endif |
| | |
|
| | #if defined(_MSC_VER) && (_MSC_VER >= 1200) |
| | #pragma warning(pop) |
| | #endif |
| | |
#endif // _INC_COMMCTRL | | #endif // _INC_COMMCTRL |
| | |
End of changes. 267 change blocks. |
3927 lines changed or deleted | | 1810 lines changed or added |
|