Displaying 1 result from an estimated 1 matches for "m_ccurpen".
2005 May 25
0
err:local:LOCAL_GetBlock not enough space in GDI heap
...lt (hdc, 0, 0, rc.right, rc.bottom, hdcMem, 0, 0, SRCCOPY);
// Free-up the off-screen DC
SelectObject (hdcMem, hOld);
DeleteObject (hbmMem);
DeleteDC (hdcMem);
EndPaint (m_hWnd, &ps);
OnPaint method for m_pMainWnd looks like this:
HPEN hPen = CreatePen( PS_SOLID, 3, m_cCurPen); // m_cCurPen: COLORREF
HBRUSH hBrush = CreateSolidBrush( m_cCurBrush ); // m_cCurBrush:
COLORREF
HPEN hOldPen = (HPEN) SelectObject( dc,hPen );
HBRUSH hOldBrush = (HBRUSH) SelectObject( dc,hBrush );
Ellipse (dc,m_ptOrg.x, m_ptOrg.y, m_ptOrg.x+m_ptDim.x,
m_ptOrg.y+m_ptDim.y);...