From 15c7e654a570899f08507e698998fb40715169b5 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Thu, 1 Jun 2017 09:38:13 +0300 Subject: [PATCH] include: Add some missing Common Controls definitions. Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- include/commctrl.h | 64 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/include/commctrl.h b/include/commctrl.h index d176b4fd0e1..587caae88b3 100644 --- a/include/commctrl.h +++ b/include/commctrl.h @@ -2165,6 +2165,7 @@ static const WCHAR TRACKBAR_CLASSW[] = { 'm','s','c','t','l','s','_', #define TBM_SETTIPSIDE (WM_USER+31) #define TBM_SETBUDDY (WM_USER+32) #define TBM_GETBUDDY (WM_USER+33) +#define TBM_SETPOSNOTIFY (WM_USER+34) #define TBM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT #define TBM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT @@ -3285,6 +3286,14 @@ static const WCHAR WC_LISTVIEWW[] = { 'S','y','s', #define LVM_MAPINDEXTOID (LVM_FIRST + 180) #define LVM_MAPIDTOINDEX (LVM_FIRST + 181) #define LVM_ISITEMVISIBLE (LVM_FIRST + 182) +#define LVM_GETEMPTYTEXT (LVM_FIRST + 204) +#define LVM_GETFOOTERRECT (LVM_FIRST + 205) +#define LVM_GETFOOTERINFO (LVM_FIRST + 206) +#define LVM_GETFOOTERITEMRECT (LVM_FIRST + 207) +#define LVM_GETFOOTERITEM (LVM_FIRST + 208) +#define LVM_GETITEMINDEXRECT (LVM_FIRST + 209) +#define LVM_SETITEMINDEXSTATE (LVM_FIRST + 210) +#define LVM_GETNEXTITEMINDEX (LVM_FIRST + 211) #define LVN_FIRST (0U-100U) #define LVN_LAST (0U-199U) @@ -5211,6 +5220,59 @@ enum _TASKDIALOG_FLAGS }; typedef int TASKDIALOG_FLAGS; +typedef enum _TASKDIALOG_MESSAGES +{ + TDM_NAVIGATE_PAGE = WM_USER + 101, + TDM_CLICK_BUTTON = WM_USER + 102, + TDM_SET_MARQUEE_PROGRESS_BAR = WM_USER + 103, + TDM_SET_PROGRESS_BAR_STATE = WM_USER + 104, + TDM_SET_PROGRESS_BAR_RANGE = WM_USER + 105, + TDM_SET_PROGRESS_BAR_POS = WM_USER + 106, + TDM_SET_PROGRESS_BAR_MARQUEE = WM_USER + 107, + TDM_SET_ELEMENT_TEXT = WM_USER + 108, + TDM_CLICK_RADIO_BUTTON = WM_USER + 110, + TDM_ENABLE_BUTTON = WM_USER + 111, + TDM_ENABLE_RADIO_BUTTON = WM_USER + 112, + TDM_CLICK_VERIFICATION = WM_USER + 113, + TDM_UPDATE_ELEMENT_TEXT = WM_USER + 114, + TDM_SET_BUTTON_ELEVATION_REQUIRED_STATE = WM_USER + 115, + TDM_UPDATE_ICON = WM_USER + 116, +} TASKDIALOG_MESSAGES; + +typedef enum _TASKDIALOG_NOTIFICATIONS +{ + TDN_CREATED, + TDN_NAVIGATED, + TDN_BUTTON_CLICKED, + TDN_HYPERLINK_CLICKED, + TDN_TIMER, + TDN_DESTROYED, + TDN_RADIO_BUTTON_CLICKED, + TDN_DIALOG_CONSTRUCTED, + TDN_VERIFICATION_CLICKED, + TDN_HELP, + TDN_EXPANDO_BUTTON_CLICKED, +} TASKDIALOG_NOTIFICATIONS; + +typedef enum _TASKDIALOG_ELEMENTS +{ + TDE_CONTENT, + TDE_EXPANDED_INFORMATION, + TDE_FOOTER, + TDE_MAIN_INSTRUCTION, +} TASKDIALOG_ELEMENTS; + +typedef enum _TASKDIALOG_ICON_ELEMENTS +{ + TDIE_ICON_MAIN, + TDIE_ICON_FOOTER, +} TASKDIALOG_ICON_ELEMENTS; + +#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 { TDCBF_OK_BUTTON = 0x0001, @@ -5266,6 +5328,8 @@ typedef struct _TASKDIALOGCONFIG UINT cxWidth; } TASKDIALOGCONFIG; +HRESULT WINAPI TaskDialog(HWND owner, HINSTANCE hinst, const WCHAR *title, const WCHAR *main_instruction, + const WCHAR *content, TASKDIALOG_COMMON_BUTTON_FLAGS common_buttons, const WCHAR *icon, int *button); HRESULT WINAPI TaskDialogIndirect(const TASKDIALOGCONFIG *, int *, int *, BOOL *); #include