| 228 | } |
| 229 | |
| 230 | static 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 | |
| 257 | static LRESULT CALLBACK MainWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { |
| 258 | if (g_theme >= ThemeAeroLight && $DwmDefWindowProc) { |
nothing calls this directly
no outgoing calls
no test coverage detected