[PSDK] Update commctrl.h. CORE-14225
authorAmine Khaldi <amine.khaldi@reactos.org>
Thu, 18 Jan 2018 22:37:48 +0000 (23:37 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Thu, 18 Jan 2018 22:48:30 +0000 (23:48 +0100)
sdk/include/psdk/commctrl.h

index 5232aa9..eab908d 100644 (file)
@@ -4724,6 +4724,7 @@ typedef struct {
 
 #define LM_HITTEST (WM_USER+0x300)
 #define LM_GETIDEALHEIGHT (WM_USER+0x301)
+#define LM_GETIDEALSIZE (LM_GETIDEALHEIGHT)
 #define LM_SETITEM (WM_USER+0x302)
 #define LM_GETITEM (WM_USER+0x303)
 
@@ -5064,10 +5065,65 @@ enum _TASKDIALOG_FLAGS
     TDF_POSITION_RELATIVE_TO_WINDOW = 0x1000,
     TDF_RTL_LAYOUT                  = 0x2000,
     TDF_NO_DEFAULT_RADIO_BUTTON     = 0x4000,
-    TDF_CAN_BE_MINIMIZED            = 0x8000
+    TDF_CAN_BE_MINIMIZED            = 0x8000,
+    TDF_NO_SET_FOREGROUND           = 0x10000,
+    TDF_SIZE_TO_CONTENT             = 0x01000000
 };
 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,