Commit 061ac08d authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

uxtheme: Add Command Link part and state definitions.

parent b08c622e
...@@ -374,6 +374,19 @@ static const MSSTYLES_CLASS_MAP classButton[] = { ...@@ -374,6 +374,19 @@ static const MSSTYLES_CLASS_MAP classButton[] = {
{BP_RADIOBUTTON, GBS_NORMAL, L"NORMAL"}, {BP_RADIOBUTTON, GBS_NORMAL, L"NORMAL"},
{BP_RADIOBUTTON, GBS_DISABLED, L"DISABLED"}, {BP_RADIOBUTTON, GBS_DISABLED, L"DISABLED"},
{BP_USERBUTTON, 0, L"USERBUTTON"}, {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""} {0, 0, L""}
}; };
......
...@@ -411,6 +411,8 @@ BEGIN_TM_CLASS_PARTS(BUTTON) ...@@ -411,6 +411,8 @@ BEGIN_TM_CLASS_PARTS(BUTTON)
TM_PART(3, BP, CHECKBOX) TM_PART(3, BP, CHECKBOX)
TM_PART(4, BP, GROUPBOX) TM_PART(4, BP, GROUPBOX)
TM_PART(5, BP, USERBUTTON) TM_PART(5, BP, USERBUTTON)
TM_PART(6, BP, COMMANDLINK)
TM_PART(7, BP, COMMANDLINKGLYPH)
END_TM_CLASS_PARTS() END_TM_CLASS_PARTS()
/* BUTTON - PUSHBUTTON states */ /* BUTTON - PUSHBUTTON states */
...@@ -456,6 +458,25 @@ BEGIN_TM_PART_STATES(GROUPBOX) ...@@ -456,6 +458,25 @@ BEGIN_TM_PART_STATES(GROUPBOX)
TM_STATE(2, GBS, DISABLED) TM_STATE(2, GBS, DISABLED)
END_TM_PART_STATES() 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 */ /* CLOCK parts */
BEGIN_TM_CLASS_PARTS(CLOCK) BEGIN_TM_CLASS_PARTS(CLOCK)
TM_PART(1, CLP, TIME) TM_PART(1, CLP, TIME)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment