- m_hDC = (WXHDC)::WinBeginPaint(GetWinHwnd(m_canvas), NULLHANDLE, &g_paintStruct);
- ms_cache.Add(new wxPaintDCInfo(m_canvas, this));
+ m_hDC = (WXHDC)::WinBeginPaint(GetWinHwnd(m_pCanvas), NULLHANDLE, &g_paintStruct);
+ ms_cache.Add(new wxPaintDCInfo(m_pCanvas, this));