December 15th, 2012, 05:55 PM
[RESOLVED] A little help! WM_PAINT + BMP
I just want to put a background image in my app, apparently works well but not, after a few clicks to resize it, my pc slow down, and I do not see the problem or may be my code wrong...accept help and suggestions! && light my way!
//GetLastError No Error
GetClientRect (wp_hwnd, &rc);
HDC hdc_dst = GetDC (wp_hwnd);
HDC hdc_src = CreateCompatibleDC (hdc_dst);
HBITMAP bg_image = LoadBitmap (GetModuleHandle(NULL), MAKEINTRESOURCE (IDM_BGBMP));
BeginPaint (wp_hwnd, &ps);
GetObject (bg_image, sizeof (bm), &bm);
SelectObject (hdc_src, bg_image);
ReleaseDC (wp_hwnd, hdc_dst);
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!