X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2bda0e173844e8e0f8acf4e8ad8b5c26e5c6fe5d..9406d962ccf50d63f163896a2dd94123a2a8664a:/src/msw/dcclient.cpp diff --git a/src/msw/dcclient.cpp b/src/msw/dcclient.cpp index c406939a28..3288e3641b 100644 --- a/src/msw/dcclient.cpp +++ b/src/msw/dcclient.cpp @@ -111,7 +111,10 @@ wxPaintDC::wxPaintDC(wxWindow *the_canvas) m_staticPaintHDC = m_hDC ; } else + { + wxDebugMsg("wxPaintDC: Using existing HDC\n"); m_hDC = m_staticPaintHDC ; + } m_canvas = the_canvas; RECT updateRect1 = g_paintStruct.rcPaint; @@ -136,6 +139,13 @@ wxPaintDC::~wxPaintDC(void) m_hDCCount --; m_hDC = 0; } + else + wxDebugMsg("~wxPaintDC: Did not release HDC\n"); + m_staticPaintHDC = 0 ; } + else + { + wxDebugMsg("~wxPaintDC: Did not release HDC\n"); + } }