Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
22adfc67
Commit
22adfc67
authored
Jun 06, 2022
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Jun 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Support parsing more button parts and states.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
parent
b8d11f76
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
0 deletions
+54
-0
stylemap.c
dlls/uxtheme/stylemap.c
+45
-0
vsstyle.h
include/vsstyle.h
+9
-0
No files found.
dlls/uxtheme/stylemap.c
View file @
22adfc67
...
@@ -341,6 +341,7 @@ static const MSSTYLES_CLASS_MAP classButton[] = {
...
@@ -341,6 +341,7 @@ static const MSSTYLES_CLASS_MAP classButton[] = {
{
BP_PUSHBUTTON
,
PBS_PRESSED
,
L"PRESSED"
},
{
BP_PUSHBUTTON
,
PBS_PRESSED
,
L"PRESSED"
},
{
BP_PUSHBUTTON
,
PBS_DISABLED
,
L"DISABLED"
},
{
BP_PUSHBUTTON
,
PBS_DISABLED
,
L"DISABLED"
},
{
BP_PUSHBUTTON
,
PBS_DEFAULTED
,
L"DEFAULTED"
},
{
BP_PUSHBUTTON
,
PBS_DEFAULTED
,
L"DEFAULTED"
},
{
BP_PUSHBUTTON
,
PBS_DEFAULTED_ANIMATING
,
L"DEFAULTED_ANIMATING"
},
{
BP_RADIOBUTTON
,
0
,
L"RADIOBUTTON"
},
{
BP_RADIOBUTTON
,
0
,
L"RADIOBUTTON"
},
{
BP_RADIOBUTTON
,
RBS_UNCHECKEDNORMAL
,
L"UNCHECKEDNORMAL"
},
{
BP_RADIOBUTTON
,
RBS_UNCHECKEDNORMAL
,
L"UNCHECKEDNORMAL"
},
{
BP_RADIOBUTTON
,
RBS_UNCHECKEDHOT
,
L"UNCHECKEDHOT"
},
{
BP_RADIOBUTTON
,
RBS_UNCHECKEDHOT
,
L"UNCHECKEDHOT"
},
...
@@ -363,6 +364,14 @@ static const MSSTYLES_CLASS_MAP classButton[] = {
...
@@ -363,6 +364,14 @@ static const MSSTYLES_CLASS_MAP classButton[] = {
{
BP_CHECKBOX
,
CBS_MIXEDHOT
,
L"MIXEDHOT"
},
{
BP_CHECKBOX
,
CBS_MIXEDHOT
,
L"MIXEDHOT"
},
{
BP_CHECKBOX
,
CBS_MIXEDPRESSED
,
L"MIXEDPRESSED"
},
{
BP_CHECKBOX
,
CBS_MIXEDPRESSED
,
L"MIXEDPRESSED"
},
{
BP_CHECKBOX
,
CBS_MIXEDDISABLED
,
L"MIXEDDISABLED"
},
{
BP_CHECKBOX
,
CBS_MIXEDDISABLED
,
L"MIXEDDISABLED"
},
{
BP_CHECKBOX
,
CBS_IMPLICITNORMAL
,
L"IMPLICITNORMAL"
},
{
BP_CHECKBOX
,
CBS_IMPLICITHOT
,
L"IMPLICITHOT"
},
{
BP_CHECKBOX
,
CBS_IMPLICITPRESSED
,
L"IMPLICITPRESSED"
},
{
BP_CHECKBOX
,
CBS_IMPLICITDISABLED
,
L"IMPLICITDISABLED"
},
{
BP_CHECKBOX
,
CBS_EXCLUDEDNORMAL
,
L"EXCLUDEDNORMAL"
},
{
BP_CHECKBOX
,
CBS_EXCLUDEDHOT
,
L"EXCLUDEDHOT"
},
{
BP_CHECKBOX
,
CBS_EXCLUDEDPRESSED
,
L"EXCLUDEDPRESSED"
},
{
BP_CHECKBOX
,
CBS_EXCLUDEDDISABLED
,
L"EXCLUDEDDISABLED"
},
{
BP_GROUPBOX
,
0
,
L"GROUPBOX"
},
{
BP_GROUPBOX
,
0
,
L"GROUPBOX"
},
{
BP_GROUPBOX
,
GBS_NORMAL
,
L"NORMAL"
},
{
BP_GROUPBOX
,
GBS_NORMAL
,
L"NORMAL"
},
{
BP_GROUPBOX
,
GBS_DISABLED
,
L"DISABLED"
},
{
BP_GROUPBOX
,
GBS_DISABLED
,
L"DISABLED"
},
...
@@ -380,6 +389,42 @@ static const MSSTYLES_CLASS_MAP classButton[] = {
...
@@ -380,6 +389,42 @@ static const MSSTYLES_CLASS_MAP classButton[] = {
{
BP_COMMANDLINKGLYPH
,
CMDLGS_PRESSED
,
L"PRESSED"
},
{
BP_COMMANDLINKGLYPH
,
CMDLGS_PRESSED
,
L"PRESSED"
},
{
BP_COMMANDLINKGLYPH
,
CMDLGS_DISABLED
,
L"DISABLED"
},
{
BP_COMMANDLINKGLYPH
,
CMDLGS_DISABLED
,
L"DISABLED"
},
{
BP_COMMANDLINKGLYPH
,
CMDLGS_DEFAULTED
,
L"DEFAULTED"
},
{
BP_COMMANDLINKGLYPH
,
CMDLGS_DEFAULTED
,
L"DEFAULTED"
},
{
BP_RADIOBUTTON_HCDISABLED
,
0
,
L"RADIOBUTTON_HCDISABLED"
},
{
BP_RADIOBUTTON_HCDISABLED
,
RBS_UNCHECKEDNORMAL
,
L"UNCHECKEDNORMAL"
},
{
BP_RADIOBUTTON_HCDISABLED
,
RBS_UNCHECKEDHOT
,
L"UNCHECKEDHOT"
},
{
BP_RADIOBUTTON_HCDISABLED
,
RBS_UNCHECKEDPRESSED
,
L"UNCHECKEDPRESSED"
},
{
BP_RADIOBUTTON_HCDISABLED
,
RBS_UNCHECKEDDISABLED
,
L"UNCHECKEDDISABLED"
},
{
BP_RADIOBUTTON_HCDISABLED
,
RBS_CHECKEDNORMAL
,
L"CHECKEDNORMAL"
},
{
BP_RADIOBUTTON_HCDISABLED
,
RBS_CHECKEDHOT
,
L"CHECKEDHOT"
},
{
BP_RADIOBUTTON_HCDISABLED
,
RBS_CHECKEDPRESSED
,
L"CHECKEDPRESSED"
},
{
BP_RADIOBUTTON_HCDISABLED
,
RBS_CHECKEDDISABLED
,
L"CHECKEDDISABLED"
},
{
BP_CHECKBOX_HCDISABLED
,
0
,
L"CHECKBOX_HCDISABLED"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_UNCHECKEDNORMAL
,
L"UNCHECKEDNORMAL"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_UNCHECKEDHOT
,
L"UNCHECKEDHOT"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_UNCHECKEDPRESSED
,
L"UNCHECKEDPRESSED"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_UNCHECKEDDISABLED
,
L"UNCHECKEDDISABLED"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_CHECKEDNORMAL
,
L"CHECKEDNORMAL"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_CHECKEDHOT
,
L"CHECKEDHOT"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_CHECKEDPRESSED
,
L"CHECKEDPRESSED"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_CHECKEDDISABLED
,
L"CHECKEDDISABLED"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_MIXEDNORMAL
,
L"MIXEDNORMAL"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_MIXEDHOT
,
L"MIXEDHOT"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_MIXEDPRESSED
,
L"MIXEDPRESSED"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_MIXEDDISABLED
,
L"MIXEDDISABLED"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_IMPLICITNORMAL
,
L"IMPLICITNORMAL"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_IMPLICITHOT
,
L"IMPLICITHOT"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_IMPLICITPRESSED
,
L"IMPLICITPRESSED"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_IMPLICITDISABLED
,
L"IMPLICITDISABLED"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_EXCLUDEDNORMAL
,
L"EXCLUDEDNORMAL"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_EXCLUDEDHOT
,
L"EXCLUDEDHOT"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_EXCLUDEDPRESSED
,
L"EXCLUDEDPRESSED"
},
{
BP_CHECKBOX_HCDISABLED
,
CBS_EXCLUDEDDISABLED
,
L"EXCLUDEDDISABLED"
},
{
BP_GROUPBOX_HCDISABLED
,
0
,
L"GROUPBOX_HCDISABLED"
},
{
BP_GROUPBOX_HCDISABLED
,
GBS_NORMAL
,
L"NORMAL"
},
{
BP_GROUPBOX_HCDISABLED
,
GBS_DISABLED
,
L"DISABLED"
},
{
BP_PUSHBUTTONDROPDOWN
,
0
,
L"PUSHBUTTONDROPDOWN"
},
{
BP_PUSHBUTTONDROPDOWN
,
PBDDS_NORMAL
,
L"NORMAL"
},
{
BP_PUSHBUTTONDROPDOWN
,
PBDDS_DISABLED
,
L"DISABLED"
},
{
0
,
0
,
L""
}
{
0
,
0
,
L""
}
};
};
...
...
include/vsstyle.h
View file @
22adfc67
...
@@ -72,6 +72,10 @@ enum BUTTONPARTS {
...
@@ -72,6 +72,10 @@ enum BUTTONPARTS {
BP_USERBUTTON
=
5
,
BP_USERBUTTON
=
5
,
BP_COMMANDLINK
=
6
,
BP_COMMANDLINK
=
6
,
BP_COMMANDLINKGLYPH
=
7
,
BP_COMMANDLINKGLYPH
=
7
,
BP_RADIOBUTTON_HCDISABLED
=
8
,
BP_CHECKBOX_HCDISABLED
=
9
,
BP_GROUPBOX_HCDISABLED
=
10
,
BP_PUSHBUTTONDROPDOWN
=
11
,
};
};
#define BUTTONSTYLEPARTS BUTTONPARTS;
#define BUTTONSTYLEPARTS BUTTONPARTS;
...
@@ -141,6 +145,11 @@ enum COMMANDLINKGLYPHSTATES {
...
@@ -141,6 +145,11 @@ enum COMMANDLINKGLYPHSTATES {
CMDLGS_DEFAULTED
=
5
,
CMDLGS_DEFAULTED
=
5
,
};
};
enum
PUSHBUTTONDROPDOWNSTATES
{
PBDDS_NORMAL
=
1
,
PBDDS_DISABLED
=
2
,
};
/* COMBOBOXSTYLE class */
/* COMBOBOXSTYLE class */
#if defined(_MSC_VER) || defined(__MINGW32__)
#if defined(_MSC_VER) || defined(__MINGW32__)
#define VSCLASS_COMBOBOXSTYLE L"COMBOBOXSTYLE"
#define VSCLASS_COMBOBOXSTYLE L"COMBOBOXSTYLE"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment