- if ( the_canvas && (m_staticPaintCount == 0))
- {
- m_hDC = (WXHDC) ::BeginPaint((HWND) the_canvas->GetHWND(), &g_paintStruct);
- m_hDCCount ++;
- m_staticPaintCount ++ ;
- m_staticPaintHDC = m_hDC ;
- }
- else
- {
- wxDebugMsg("wxPaintDC: Using existing HDC\n");
- m_hDC = m_staticPaintHDC ;
- }