Added ability to call wxWindow::OnPaint under Windows (experimental).
Added wxTR_NO_LINES to remove lines from tree control (MSW only). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2952,6 +2952,16 @@ bool wxWindow::HandlePaint()
|
||||
return GetEventHandler()->ProcessEvent(event);
|
||||
}
|
||||
|
||||
// Can be called from an application's OnPaint handler
|
||||
void wxWindow::OnPaint(wxPaintEvent& event)
|
||||
{
|
||||
HDC hDC = (HDC) wxPaintDC::FindDCInCache((wxWindow*) event.GetEventObject());
|
||||
if (hDC != 0)
|
||||
{
|
||||
MSWDefWindowProc(WM_PAINT, (WPARAM) hDC, 0);
|
||||
}
|
||||
}
|
||||
|
||||
bool wxWindow::HandleEraseBkgnd(WXHDC hdc)
|
||||
{
|
||||
// Prevents flicker when dragging
|
||||
|
Reference in New Issue
Block a user