Click to See Complete Forum and Search --> : Clean up window: Urgent


Fengzhuo Hu
May 27th, 1999, 08:36 AM
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.

YunFeiLi
May 27th, 1999, 11:11 AM
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.