Signed-off-by: Zhiyi Zhang <zzhang(a)codeweavers.com>
---
dlls/uxtheme/stylemap.c | 13 +++++++++++++
include/tmschema.h | 21 +++++++++++++++++++++
2 files changed, 34 insertions(+)
diff --git a/dlls/uxtheme/stylemap.c b/dlls/uxtheme/stylemap.c
index b38b18b623d..1949028581c 100644
--- a/dlls/uxtheme/stylemap.c
+++ b/dlls/uxtheme/stylemap.c
@@ -374,6 +374,19 @@ static const MSSTYLES_CLASS_MAP classButton[] = {
{BP_RADIOBUTTON, GBS_NORMAL, L"NORMAL"},
{BP_RADIOBUTTON, GBS_DISABLED, L"DISABLED"},
{BP_USERBUTTON, 0, L"USERBUTTON"},
+ {BP_COMMANDLINK, 0, L"COMMANDLINK"},
+ {BP_COMMANDLINK, CMDLS_NORMAL, L"NORMAL"},
+ {BP_COMMANDLINK, CMDLS_HOT, L"HOT"},
+ {BP_COMMANDLINK, CMDLS_PRESSED, L"PRESSED"},
+ {BP_COMMANDLINK, CMDLS_DISABLED, L"DISABLED"},
+ {BP_COMMANDLINK, CMDLS_DEFAULTED, L"DEFAULTED"},
+ {BP_COMMANDLINK, CMDLS_DEFAULTED_ANIMATING, L"DEFAULTED_ANIMATING"},
+ {BP_COMMANDLINKGLYPH, 0, L"COMMANDLINKGLYPH"},
+ {BP_COMMANDLINKGLYPH, CMDLGS_NORMAL, L"NORMAL"},
+ {BP_COMMANDLINKGLYPH, CMDLGS_HOT, L"HOT"},
+ {BP_COMMANDLINKGLYPH, CMDLGS_PRESSED, L"PRESSED"},
+ {BP_COMMANDLINKGLYPH, CMDLGS_DISABLED, L"DISABLED"},
+ {BP_COMMANDLINKGLYPH, CMDLGS_DEFAULTED, L"DEFAULTED"},
{0, 0, L""}
};
diff --git a/include/tmschema.h b/include/tmschema.h
index 910de19e2a6..15afc48d5cc 100644
--- a/include/tmschema.h
+++ b/include/tmschema.h
@@ -411,6 +411,8 @@ BEGIN_TM_CLASS_PARTS(BUTTON)
TM_PART(3, BP, CHECKBOX)
TM_PART(4, BP, GROUPBOX)
TM_PART(5, BP, USERBUTTON)
+ TM_PART(6, BP, COMMANDLINK)
+ TM_PART(7, BP, COMMANDLINKGLYPH)
END_TM_CLASS_PARTS()
/* BUTTON - PUSHBUTTON states */
@@ -456,6 +458,25 @@ BEGIN_TM_PART_STATES(GROUPBOX)
TM_STATE(2, GBS, DISABLED)
END_TM_PART_STATES()
+/* BUTTON - COMMANDLINK states */
+BEGIN_TM_PART_STATES(COMMANDLINK)
+ TM_STATE(1, CMDLS, NORMAL)
+ TM_STATE(2, CMDLS, HOT)
+ TM_STATE(3, CMDLS, PRESSED)
+ TM_STATE(4, CMDLS, DISABLED)
+ TM_STATE(5, CMDLS, DEFAULTED)
+ TM_STATE(6, CMDLS, DEFAULTED_ANIMATING)
+END_TM_PART_STATES()
+
+/* BUTTON - COMMANDLINKGLYPH states */
+BEGIN_TM_PART_STATES(COMMANDLINKGLYPH)
+ TM_STATE(1, CMDLGS, NORMAL)
+ TM_STATE(2, CMDLGS, HOT)
+ TM_STATE(3, CMDLGS, PRESSED)
+ TM_STATE(4, CMDLGS, DISABLED)
+ TM_STATE(5, CMDLGS, DEFAULTED)
+END_TM_PART_STATES()
+
/* CLOCK parts */
BEGIN_TM_CLASS_PARTS(CLOCK)
TM_PART(1, CLP, TIME)
--
2.27.0