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/BalBaseBAFunctionsProc.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/BalBaseBAFunctionsProc.h')
| -rw-r--r-- | src/api/burn/balutil/inc/BalBaseBAFunctionsProc.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/api/burn/balutil/inc/BalBaseBAFunctionsProc.h b/src/api/burn/balutil/inc/BalBaseBAFunctionsProc.h index 8d1227fc..efe22ddd 100644 --- a/src/api/burn/balutil/inc/BalBaseBAFunctionsProc.h +++ b/src/api/burn/balutil/inc/BalBaseBAFunctionsProc.h | |||
| @@ -24,6 +24,15 @@ static HRESULT BalBaseBAFunctionsProcWndProc( | |||
| 24 | return pBAFunctions->WndProc(pArgs->pTheme, pArgs->hWnd, pArgs->uMsg, pArgs->wParam, pArgs->lParam, &pResults->lres); | 24 | return pBAFunctions->WndProc(pArgs->pTheme, pArgs->hWnd, pArgs->uMsg, pArgs->wParam, pArgs->lParam, &pResults->lres); |
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | static HRESULT BalBaseBAFunctionsProcOnThemeControlLoading( | ||
| 28 | __in IBAFunctions* pBAFunctions, | ||
| 29 | __in BA_FUNCTIONS_ONTHEMECONTROLLOADING_ARGS* pArgs, | ||
| 30 | __inout BA_FUNCTIONS_ONTHEMECONTROLLOADING_RESULTS* pResults | ||
| 31 | ) | ||
| 32 | { | ||
| 33 | return pBAFunctions->OnThemeControlLoading(pArgs->wzName, &pResults->fProcessed, &pResults->wId); | ||
| 34 | } | ||
| 35 | |||
| 27 | /******************************************************************* | 36 | /******************************************************************* |
| 28 | BalBaseBAFunctionsProc - requires pvContext to be of type IBAFunctions. | 37 | BalBaseBAFunctionsProc - requires pvContext to be of type IBAFunctions. |
| 29 | Provides a default mapping between the message based BAFunctions interface and | 38 | Provides a default mapping between the message based BAFunctions interface and |
| @@ -125,6 +134,9 @@ static HRESULT WINAPI BalBaseBAFunctionsProc( | |||
| 125 | case BA_FUNCTIONS_MESSAGE_WNDPROC: | 134 | case BA_FUNCTIONS_MESSAGE_WNDPROC: |
| 126 | hr = BalBaseBAFunctionsProcWndProc(pBAFunctions, reinterpret_cast<BA_FUNCTIONS_WNDPROC_ARGS*>(pvArgs), reinterpret_cast<BA_FUNCTIONS_WNDPROC_RESULTS*>(pvResults)); | 135 | hr = BalBaseBAFunctionsProcWndProc(pBAFunctions, reinterpret_cast<BA_FUNCTIONS_WNDPROC_ARGS*>(pvArgs), reinterpret_cast<BA_FUNCTIONS_WNDPROC_RESULTS*>(pvResults)); |
| 127 | break; | 136 | break; |
| 137 | case BA_FUNCTIONS_MESSAGE_ONTHEMECONTROLLOADING: | ||
| 138 | hr = BalBaseBAFunctionsProcOnThemeControlLoading(pBAFunctions, reinterpret_cast<BA_FUNCTIONS_ONTHEMECONTROLLOADING_ARGS*>(pvArgs), reinterpret_cast<BA_FUNCTIONS_ONTHEMECONTROLLOADING_RESULTS*>(pvResults)); | ||
| 139 | break; | ||
| 128 | } | 140 | } |
| 129 | } | 141 | } |
| 130 | 142 | ||
