Commit b334d89d authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

uxtheme: Support parsing more combobox parts and states.

parent f1aa061d
...@@ -442,6 +442,40 @@ static const MSSTYLES_CLASS_MAP classCombobox[] = { ...@@ -442,6 +442,40 @@ static const MSSTYLES_CLASS_MAP classCombobox[] = {
{CP_DROPDOWNBUTTON, CBXS_HOT, L"HOT"}, {CP_DROPDOWNBUTTON, CBXS_HOT, L"HOT"},
{CP_DROPDOWNBUTTON, CBXS_PRESSED, L"PRESSED"}, {CP_DROPDOWNBUTTON, CBXS_PRESSED, L"PRESSED"},
{CP_DROPDOWNBUTTON, CBXS_DISABLED, L"DISABLED"}, {CP_DROPDOWNBUTTON, CBXS_DISABLED, L"DISABLED"},
{CP_BACKGROUND, 0, L"BACKGROUND"},
{CP_TRANSPARENTBACKGROUND, 0, L"TRANSPARENTBACKGROUND"},
{CP_TRANSPARENTBACKGROUND, CBTBS_NORMAL, L"NORMAL"},
{CP_TRANSPARENTBACKGROUND, CBTBS_HOT, L"HOT"},
{CP_TRANSPARENTBACKGROUND, CBTBS_DISABLED, L"DISABLED"},
{CP_TRANSPARENTBACKGROUND, CBTBS_FOCUSED, L"FOCUSED"},
{CP_BORDER, 0, L"BORDER"},
{CP_BORDER, CBB_NORMAL, L"NORMAL"},
{CP_BORDER, CBB_HOT, L"HOT"},
{CP_BORDER, CBB_FOCUSED, L"FOCUSED"},
{CP_BORDER, CBB_DISABLED, L"DISABLED"},
{CP_READONLY, 0, L"READONLY"},
{CP_READONLY, CBRO_NORMAL, L"NORMAL"},
{CP_READONLY, CBRO_HOT, L"HOT"},
{CP_READONLY, CBRO_PRESSED, L"PRESSED"},
{CP_READONLY, CBRO_DISABLED, L"DISABLED"},
{CP_DROPDOWNBUTTONRIGHT, 0, L"DROPDOWNBUTTONRIGHT"},
{CP_DROPDOWNBUTTONRIGHT, CBXSR_NORMAL, L"NORMAL"},
{CP_DROPDOWNBUTTONRIGHT, CBXSR_HOT, L"HOT"},
{CP_DROPDOWNBUTTONRIGHT, CBXSR_PRESSED, L"PRESSED"},
{CP_DROPDOWNBUTTONRIGHT, CBXSR_DISABLED, L"DISABLED"},
{CP_DROPDOWNBUTTONLEFT, 0, L"DROPDOWNBUTTONLEFT"},
{CP_DROPDOWNBUTTONLEFT, CBXSL_NORMAL, L"NORMAL"},
{CP_DROPDOWNBUTTONLEFT, CBXSL_HOT, L"HOT"},
{CP_DROPDOWNBUTTONLEFT, CBXSL_PRESSED, L"PRESSED"},
{CP_DROPDOWNBUTTONLEFT, CBXSL_DISABLED, L"DISABLED"},
{CP_CUEBANNER, 0, L"CUEBANNER"},
{CP_CUEBANNER, CBCB_NORMAL, L"NORMAL"},
{CP_CUEBANNER, CBCB_HOT, L"HOT"},
{CP_CUEBANNER, CBCB_PRESSED, L"PRESSED"},
{CP_CUEBANNER, CBCB_DISABLED, L"DISABLED"},
{CP_DROPDOWNITEM, 0, L"DROPDOWNITEM"},
{CP_DROPDOWNITEM, CBDI_NORMAL, L"NORMAL"},
{CP_DROPDOWNITEM, CBDI_HIGHLIGHTED, L"HIGHLIGHTED"},
{0, 0, L""} {0, 0, L""}
}; };
......
...@@ -168,6 +168,7 @@ enum COMBOBOXPARTS { ...@@ -168,6 +168,7 @@ enum COMBOBOXPARTS {
CP_DROPDOWNBUTTONRIGHT = 6, CP_DROPDOWNBUTTONRIGHT = 6,
CP_DROPDOWNBUTTONLEFT = 7, CP_DROPDOWNBUTTONLEFT = 7,
CP_CUEBANNER = 8, CP_CUEBANNER = 8,
CP_DROPDOWNITEM = 9,
}; };
#define COMBOBOXSTYLEPARTS COMBOBOXPARTS; #define COMBOBOXSTYLEPARTS COMBOBOXPARTS;
...@@ -221,6 +222,11 @@ enum CUEBANNERSTATES { ...@@ -221,6 +222,11 @@ enum CUEBANNERSTATES {
CBCB_DISABLED = 4, CBCB_DISABLED = 4,
}; };
enum DROPDOWNITEMSTATES {
CBDI_NORMAL = 1,
CBDI_HIGHLIGHTED = 2,
};
/* COMMUNICATIONSSTYLE class */ /* COMMUNICATIONSSTYLE class */
#if defined(_MSC_VER) || defined(__MINGW32__) #if defined(_MSC_VER) || defined(__MINGW32__)
#define VSCLASS_COMMUNICATIONSSTYLE L"COMMUNICATIONSSTYLE" #define VSCLASS_COMMUNICATIONSSTYLE L"COMMUNICATIONSSTYLE"
......
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