Added wxPaintDCEx class, to handle the case where an HDC

is passed with WM_PAINT. Apps that want to can have their
own HDC painted on.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-07-29 14:27:18 +00:00
parent 276a125640
commit c6151f2a94
4 changed files with 91 additions and 3 deletions

View File

@@ -2344,8 +2344,17 @@ long wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam
break;
case WM_PAINT:
processed = HandlePaint();
break;
{
wxPaintDCEx *pdc = 0;
if (wParam) {
pdc = new wxPaintDCEx(this, (WXHDC) wParam);
}
processed = HandlePaint();
if (pdc) {
delete pdc;
}
break;
}
case WM_CLOSE:
#ifdef __WXUNIVERSAL__