summaryrefslogtreecommitdiff
path: root/src/api/burn/balutil/inc/BalBaseBAFunctionsProc.h
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2021-10-27 14:42:32 -0500
committerSean Hall <r.sean.hall@gmail.com>2021-11-01 16:34:09 -0500
commitbad2e93524f376cfeb76d5231d4b08510bdad033 (patch)
treeb201ec4b1495a0af4805ea6b0bc4fce9f8bde7b7 /src/api/burn/balutil/inc/BalBaseBAFunctionsProc.h
parent8fa040da9d0d3826f5ffda6bcbec4f53abd97452 (diff)
downloadwix-bad2e93524f376cfeb76d5231d4b08510bdad033.tar.gz
wix-bad2e93524f376cfeb76d5231d4b08510bdad033.tar.bz2
wix-bad2e93524f376cfeb76d5231d4b08510bdad033.zip
Add more thmutil window messages to simplify handling control events.
Diffstat (limited to 'src/api/burn/balutil/inc/BalBaseBAFunctionsProc.h')
-rw-r--r--src/api/burn/balutil/inc/BalBaseBAFunctionsProc.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/api/burn/balutil/inc/BalBaseBAFunctionsProc.h b/src/api/burn/balutil/inc/BalBaseBAFunctionsProc.h
index efe22ddd..1d51c5b6 100644
--- a/src/api/burn/balutil/inc/BalBaseBAFunctionsProc.h
+++ b/src/api/burn/balutil/inc/BalBaseBAFunctionsProc.h
@@ -33,6 +33,24 @@ static HRESULT BalBaseBAFunctionsProcOnThemeControlLoading(
33 return pBAFunctions->OnThemeControlLoading(pArgs->wzName, &pResults->fProcessed, &pResults->wId); 33 return pBAFunctions->OnThemeControlLoading(pArgs->wzName, &pResults->fProcessed, &pResults->wId);
34} 34}
35 35
36static HRESULT BalBaseBAFunctionsProcOnThemeControlWmCommand(
37 __in IBAFunctions* pBAFunctions,
38 __in BA_FUNCTIONS_ONTHEMECONTROLWMCOMMAND_ARGS* pArgs,
39 __inout BA_FUNCTIONS_ONTHEMECONTROLWMCOMMAND_RESULTS* pResults
40 )
41{
42 return pBAFunctions->OnThemeControlWmCommand(pArgs->wParam, pArgs->wzName, pArgs->wId, pArgs->hWnd, &pResults->fProcessed, &pResults->lResult);
43}
44
45static HRESULT BalBaseBAFunctionsProcOnThemeControlWmNotify(
46 __in IBAFunctions* pBAFunctions,
47 __in BA_FUNCTIONS_ONTHEMECONTROLWMNOTIFY_ARGS* pArgs,
48 __inout BA_FUNCTIONS_ONTHEMECONTROLWMNOTIFY_RESULTS* pResults
49 )
50{
51 return pBAFunctions->OnThemeControlWmNotify(pArgs->lParam, pArgs->wzName, pArgs->wId, pArgs->hWnd, &pResults->fProcessed, &pResults->lResult);
52}
53
36/******************************************************************* 54/*******************************************************************
37BalBaseBAFunctionsProc - requires pvContext to be of type IBAFunctions. 55BalBaseBAFunctionsProc - requires pvContext to be of type IBAFunctions.
38Provides a default mapping between the message based BAFunctions interface and 56Provides a default mapping between the message based BAFunctions interface and
@@ -137,6 +155,12 @@ static HRESULT WINAPI BalBaseBAFunctionsProc(
137 case BA_FUNCTIONS_MESSAGE_ONTHEMECONTROLLOADING: 155 case BA_FUNCTIONS_MESSAGE_ONTHEMECONTROLLOADING:
138 hr = BalBaseBAFunctionsProcOnThemeControlLoading(pBAFunctions, reinterpret_cast<BA_FUNCTIONS_ONTHEMECONTROLLOADING_ARGS*>(pvArgs), reinterpret_cast<BA_FUNCTIONS_ONTHEMECONTROLLOADING_RESULTS*>(pvResults)); 156 hr = BalBaseBAFunctionsProcOnThemeControlLoading(pBAFunctions, reinterpret_cast<BA_FUNCTIONS_ONTHEMECONTROLLOADING_ARGS*>(pvArgs), reinterpret_cast<BA_FUNCTIONS_ONTHEMECONTROLLOADING_RESULTS*>(pvResults));
139 break; 157 break;
158 case BA_FUNCTIONS_MESSAGE_ONTHEMECONTROLWMCOMMAND:
159 hr = BalBaseBAFunctionsProcOnThemeControlWmCommand(pBAFunctions, reinterpret_cast<BA_FUNCTIONS_ONTHEMECONTROLWMCOMMAND_ARGS*>(pvArgs), reinterpret_cast<BA_FUNCTIONS_ONTHEMECONTROLWMCOMMAND_RESULTS*>(pvResults));
160 break;
161 case BA_FUNCTIONS_MESSAGE_ONTHEMECONTROLWMNOTIFY:
162 hr = BalBaseBAFunctionsProcOnThemeControlWmNotify(pBAFunctions, reinterpret_cast<BA_FUNCTIONS_ONTHEMECONTROLWMNOTIFY_ARGS*>(pvArgs), reinterpret_cast<BA_FUNCTIONS_ONTHEMECONTROLWMNOTIFY_RESULTS*>(pvResults));
163 break;
140 } 164 }
141 } 165 }
142 166