|
-
June 17th, 2011, 03:16 PM
#1
Scrollview & redraw
What my view displays is not redrawn once I move the thumb bar up or down past the hidden text ?
What should I add in to make it viewable when dragging the thumb downward or rightward ?
rc is declared as a global variable;
In OnDraw function
GetWindowRect(&rc);
pDC->LPToDP(&rc);
pDC->DrawText(L"Draw text",&rc,TA_LEFT);
In OninitialUpdate
CClientDC dc(this);
OnPrepareDC();
CSize sz(rc.With(),rc.Height());
dc.LPToDP(&sz);
SetScrollSizes(MM_TEXT,sz);
It's all about the cscrollview I use in my single document.
Thank you.
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
|