search for: holdpen

Displaying 1 result from an estimated 1 matches for "holdpen".

Did you mean: holden
2005 May 25
0
err:local:LOCAL_GetBlock not enough space in GDI heap
...; 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); SelectObject( dc,hOldPen ); SelectObject( dc,hOldBrush ); DeleteObject( hPen ); DeleteObject( hBrush ); W...