Settled WM_PRINTCLIENT for uiParent on Windows.

This commit is contained in:
Pietro Gagliardi 2015-04-18 20:27:12 -04:00
parent 92474f94af
commit 9492e0b1c1
1 changed files with 3 additions and 0 deletions

View File

@ -189,6 +189,9 @@ static LRESULT CALLBACK parentWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARA
paintControlBackground(pp->hwnd, dc);
EndPaint(pp->hwnd, &ps);
return 0;
// don't implement WM_PRINTCLIENT
// if paintControlBackground() asks us to draw our background, we have to ask our parent to draw its, which causes weird origin issues
// instead, we skip uiParents in paintControlBackground()
}
return DefWindowProcW(hwnd, uMsg, wParam, lParam);