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

Thread: How can I implement split windows?

  1. #1
    Join Date
    Dec 2010
    Posts
    10

    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 offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,011

    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
    Location
    Minnesota, U.S.A.
    Posts
    680

    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.

    -Erik

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center