MCPcopy Create free account
hub / github.com/LegacyUpdate/LegacyUpdate / BottomWndProc

Function BottomWndProc

nsisplugin/DialogInit.c:230–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230static LRESULT CALLBACK BottomWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
231 switch (uMsg) {
232 case WM_PAINT: {
233 // Draw command area background (grey with divider line)
234 if (g_theme < ThemeBasic || !g_aeroTheme || !$DrawThemeBackground) {
235 break;
236 }
237
238 PAINTSTRUCT ps = {0};
239 HDC hdc = BeginPaint(hwnd, &ps);
240
241 RECT rect = {0};
242 GetClientRect(hwnd, &rect);
243 $DrawThemeBackground(g_aeroTheme, hdc, AW_COMMANDAREA, 0, &rect, NULL);
244
245 EndPaint(hwnd, &ps);
246 return 0;
247 }
248 }
249
250 if (!g_bottomOrigWndProc) {
251 return 0;
252 }
253
254 return CallWindowProc(g_bottomOrigWndProc, hwnd, uMsg, wParam, lParam);
255}
256
257static LRESULT CALLBACK MainWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
258 if (g_theme >= ThemeAeroLight && $DwmDefWindowProc) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected