Fixed unthemed dialog painting on Windows Classic.
This commit is contained in:
parent
cb1b5ee48b
commit
03a5ffe797
|
@ -2,7 +2,6 @@
|
||||||
#include "uipriv_windows.h"
|
#include "uipriv_windows.h"
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
// - dialog doesn't respond to WM_PRINTCLIENT in Windows Classic
|
|
||||||
// - can't seem to tab away anymore
|
// - can't seem to tab away anymore
|
||||||
|
|
||||||
struct tab {
|
struct tab {
|
||||||
|
|
|
@ -88,6 +88,13 @@ static INT_PTR CALLBACK dlgproc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPar
|
||||||
SetWindowLongPtrW(hwnd, DWLP_MSGRESULT, (LONG_PTR) lResult);
|
SetWindowLongPtrW(hwnd, DWLP_MSGRESULT, (LONG_PTR) lResult);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
// unthemed dialogs don't respond to WM_PRINTCLIENT
|
||||||
|
// fortunately they don't have any special painting
|
||||||
|
if (uMsg == WM_PRINTCLIENT) {
|
||||||
|
SendMessageW(hwnd, WM_ERASEBKGND, wParam, lParam);
|
||||||
|
// and pretend we did nothing just so the themed dialog can still paint its content
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
if (uMsg == WM_INITDIALOG)
|
if (uMsg == WM_INITDIALOG)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue