CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    27

    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.





  2. #2
    Join Date
    May 1999
    Posts
    11

    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
  •  





Click Here to Expand Forum to Full Width

Featured