|
-
April 20th, 2010, 06:36 PM
#7
Re: Repaint failure
Like Martin suggested (above), a sample might help. Or at least some complete real code fragment.
 Originally Posted by cosmicvoid
Code:
case WM_PAINT:
if (GetActiveWindow() != hWnd) InvalidateRect(hWnd, &re, 0);
dc = BeginPaint(hWsbox, &ps);
SelectObject(dc, hBm);
BitBlt(dc, ps.rcPaint.left,
ps.rcPaint.top,
ps.rcPaint.right - ps.rcPaint.left,
ps.rcPaint.bottom - ps.rcPaint.top,
sdc, ps.rcPaint.left,
ps.rcPaint.top + (scroll ? si.nPos * (SEL_RY + fhgt) : 0),
SRCCOPY);
EndPaint(hWsbox, &ps);
break;
What is hWsbox here? Is it the same as hWnd?
What is hBm? And why do you select it into dc before BitBlt'ing into it?
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio:
FeinWindows - replacement windows manager for Visual Studio, and more...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|