Re: Window repaint error?
are you handling WM_PAINT yourself for any of the windows?
does the same thing happen if you drag the whole window partly off of the screen?
Re: Window repaint error?
no im not handling wm_paint
it only does that when i use the scrollbar to move it
if i minimize and restore the main window the streaks are gone..until i use the scrollbar :(
Re: Window repaint error?
strange...i removed the
WS_CLIPCHILDREN
flag from the StaticLeftContainerhWnd createwindowex funtion and it doesnt do this anymore...
ill have to figure out WHY cause its going to drive me crazy until i do :P
thank you for tryin loki
Re: Window repaint error?
Did you ever fix this? I'm trying to draw rectangles that seem to "streak" upon scrolling in either direction. Also, the rectangles are completely redrawn when I minimize then restore the window but apparently the origin moves.
My code to draw the rectangles is
CRect TempRect = pDoc->GetNode(i); // The points for the rectangle
OnPrepareDC(pDC);
pDC->DPtoLP(&TempRect);
pDC->Rectangle(TempRect);
and I set the scroll bars sizes in OnInitialUpdate with
CSize Workspace(1000, 1000);
SetScrollSizes(MM_LOENGLISH, Workspace);
I have tried a variety of fixes in OnPrepareDC included setting the mapping mode to MM_LOENGLISH and setting the origin at 0, 0 but nothing works.
I'm new to visual applications and I think there must be a simple like I've seen in some "sketch" or "scribble" examples. Any help?