search for: m_pmainwnd

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

2005 May 25
0
err:local:LOCAL_GetBlock not enough space in GDI heap
...in32 that does some drawing. After running it for a while it stops drawing the colors for the shapes I draw using GDI functions and it throws multiple time this error: err:local:LOCAL_GetBlock not enough space in GDI heap 10bf for 36 bytes The WM_PAINT message looks like this: GetClientRect (m_pMainWnd->m_hWnd, &rc); hdc = BeginPaint (m_pMainWnd->m_hWnd, &ps); // Create an off-screen DC for double-buffering hdcMem = CreateCompatibleDC (hdc); hbmMem = CreateCompatibleBitmap (hdc, rc.right, rc.bottom); hOld = SelectObject (hdcMem, hbmMem); // Draw into hdcMem...