How can I implement split windows?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 3 of 3

Thread: How can I implement split windows?

  1. #1
    Join Date
    Dec 2010

    How can I implement split windows?

    I want to split my main window vertically so there's a sizing bar in the middle but I'm not sure how to go about it. I imagine I could create two windows with a gap between them then handle mouse events to do sizing manually but I thought I'd post here to see if there's a simpler method.

    Thank you

  2. #2
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Wallisellen (ZH), Switzerland

    Re: How can I implement split windows?

    Simpler would be using MFC with its class CSplitterWnd. Or, at least look at its source code...
    Victor Nijegorodov

  3. #3
    Join Date
    Oct 2005
    Minnesota, U.S.A.

    Re: How can I implement split windows?

    If you understand MFC, use Victor's suggestion. Otherwise think of your window as a parent, then create two child windows in it. Handle the WM_MOUSEMOVE in the parent. The two child windows operate independantly. Don't forget to handle the WM_SIZE.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center