Added handler for WM_PRINT to assist with offscreen drawing of widgets
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -91,6 +91,7 @@
|
|||||||
|
|
||||||
#include "wx/textctrl.h"
|
#include "wx/textctrl.h"
|
||||||
#include "wx/notebook.h"
|
#include "wx/notebook.h"
|
||||||
|
#include "wx/listctrl.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
@@ -2319,6 +2320,20 @@ long wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case WM_PRINT:
|
||||||
|
{
|
||||||
|
// Don't call the wx handlers in this case
|
||||||
|
if ( wxIsKindOf(this, wxListCtrl) )
|
||||||
|
break;
|
||||||
|
|
||||||
|
if ( lParam & PRF_ERASEBKGND )
|
||||||
|
HandleEraseBkgnd((WXHDC)(HDC)wParam);
|
||||||
|
|
||||||
|
wxPaintDCEx dc((wxWindow *)this, (WXHDC)wParam);
|
||||||
|
processed = HandlePaint();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case WM_CLOSE:
|
case WM_CLOSE:
|
||||||
#ifdef __WXUNIVERSAL__
|
#ifdef __WXUNIVERSAL__
|
||||||
// Universal uses its own wxFrame/wxDialog, so we don't receive
|
// Universal uses its own wxFrame/wxDialog, so we don't receive
|
||||||
|
Reference in New Issue
Block a user