diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2021-10-27 13:55:16 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2021-11-01 16:34:09 -0500 |
commit | 8fa040da9d0d3826f5ffda6bcbec4f53abd97452 (patch) | |
tree | a8a1094f3ac17bd6feed8a6f971c0d6008694345 /src/api/burn/balutil/inc/BAFunctions.h | |
parent | 4917383e6f52f0e44f63c60a645f1dd7e8f8d5f9 (diff) | |
download | wix-8fa040da9d0d3826f5ffda6bcbec4f53abd97452.tar.gz wix-8fa040da9d0d3826f5ffda6bcbec4f53abd97452.tar.bz2 wix-8fa040da9d0d3826f5ffda6bcbec4f53abd97452.zip |
Allow more customization of control ids in thmutil.
Allow BAFunctions to set control ids.
Make sure control ids don't collide.
Diffstat (limited to 'src/api/burn/balutil/inc/BAFunctions.h')
-rw-r--r-- | src/api/burn/balutil/inc/BAFunctions.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/api/burn/balutil/inc/BAFunctions.h b/src/api/burn/balutil/inc/BAFunctions.h index 43786701..2a34aaad 100644 --- a/src/api/burn/balutil/inc/BAFunctions.h +++ b/src/api/burn/balutil/inc/BAFunctions.h | |||
@@ -85,6 +85,7 @@ enum BA_FUNCTIONS_MESSAGE | |||
85 | 85 | ||
86 | BA_FUNCTIONS_MESSAGE_ONTHEMELOADED = 1024, | 86 | BA_FUNCTIONS_MESSAGE_ONTHEMELOADED = 1024, |
87 | BA_FUNCTIONS_MESSAGE_WNDPROC, | 87 | BA_FUNCTIONS_MESSAGE_WNDPROC, |
88 | BA_FUNCTIONS_MESSAGE_ONTHEMECONTROLLOADING, | ||
88 | }; | 89 | }; |
89 | 90 | ||
90 | typedef HRESULT(WINAPI *PFN_BA_FUNCTIONS_PROC)( | 91 | typedef HRESULT(WINAPI *PFN_BA_FUNCTIONS_PROC)( |
@@ -94,6 +95,10 @@ typedef HRESULT(WINAPI *PFN_BA_FUNCTIONS_PROC)( | |||
94 | __in_opt LPVOID pvContext | 95 | __in_opt LPVOID pvContext |
95 | ); | 96 | ); |
96 | 97 | ||
98 | // Should be the same as THEME_FIRST_ASSIGN_CONTROL_ID. | ||
99 | // BAFunctions must only assign ids in the range [BAFUNCTIONS_FIRST_ASSIGN_CONTROL_ID, 0x8000) to avoid collisions. | ||
100 | const WORD BAFUNCTIONS_FIRST_ASSIGN_CONTROL_ID = 0x4000; | ||
101 | |||
97 | struct BA_FUNCTIONS_CREATE_ARGS | 102 | struct BA_FUNCTIONS_CREATE_ARGS |
98 | { | 103 | { |
99 | DWORD cbSize; | 104 | DWORD cbSize; |
@@ -108,6 +113,19 @@ struct BA_FUNCTIONS_CREATE_RESULTS | |||
108 | LPVOID pvBAFunctionsProcContext; | 113 | LPVOID pvBAFunctionsProcContext; |
109 | }; | 114 | }; |
110 | 115 | ||
116 | struct BA_FUNCTIONS_ONTHEMECONTROLLOADING_ARGS | ||
117 | { | ||
118 | DWORD cbSize; | ||
119 | LPCWSTR wzName; | ||
120 | }; | ||
121 | |||
122 | struct BA_FUNCTIONS_ONTHEMECONTROLLOADING_RESULTS | ||
123 | { | ||
124 | DWORD cbSize; | ||
125 | BOOL fProcessed; | ||
126 | WORD wId; | ||
127 | }; | ||
128 | |||
111 | struct BA_FUNCTIONS_ONTHEMELOADED_ARGS | 129 | struct BA_FUNCTIONS_ONTHEMELOADED_ARGS |
112 | { | 130 | { |
113 | DWORD cbSize; | 131 | DWORD cbSize; |