uxtheme: Add Command Link part and state definitions.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zhiyi Zhang 2021-02-22 22:32:36 +08:00 committed by Alexandre Julliard
parent b08c622e22
commit 061ac08d6b
2 changed files with 34 additions and 0 deletions

View file

@ -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""}
};

View file

@ -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)