|
-
May 27th, 1999, 08:36 AM
#1
Clean up window: Urgent
I derived a CWnd class named C2WinBox and override OnVScroll function With SetScrollPos, ScrollWindow, and UpdateWindow.
Then I used C2WinBox object created a Window within a CPropertyPage derived class OnInitDialog function. The Window has
WS_VSCROLL style. then I created some controls on The window such as CEdit box, CCombobox, CStatics etc. but when
I Sctoll the window, the contents on the window are mess up. is there anyone know how to make the window clear when scrolling.
I appreciate any reply.
-
May 27th, 1999, 11:11 AM
#2
Re: Clean up window: Urgent
When you scroll window,You must do something
to prevent the child window looks like scrolled too.
you can do like this:
C2WindBox wndMyBox;
wndMyBox.ModifyStyle(NULL,WS_CLIPCHILDREN);
//now you can add some child window to wndMyBox.
......
After do like this,you can make the window clear when scrolling.
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
|