Win32 child window split bars

This is a discussion on Win32 child window split bars within the Windows Programming forums, part of the Platform Specific Boards category; I'm interested to know how I could go about doing multiple views in a win32 application. The kind of thing ...

  1. #1
    S
    Guest

    Win32 child window split bars

    I'm interested to know how I could go about doing multiple views in a win32 application.

    The kind of thing I'm aiming for is a 3d modelling interface where you have top/front/side/perspective windows all split by two interconnecting bars. Now, I think I can get 4 windows using the MDI but I need to 'join' them if you see what I mean. Anybody who has used 3DS Max or a similar package will know what I mean.

    Thanks for any help.

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    The "scribble" tutorial, (comes with VC++ or is at MSDN), has a Window splitter implementation, but uses MFC.

    I did an API version a few years ago, but without a whiteboard, it may be difficult to describe!

    What I did was to draw the "divider" and "move it" by redrawing it when the mouse was placed over it and the button pressed. Each time I moved the "splitter" I calculated a new "origin" and size for each "subWindow". To get the images, I had 2, (could be as many as you need), memory DC's and I blitted the relevent sized parts of the Memory DC's to the screen DC at the origin positions.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creating a child window in a parent window
    By vopo in forum Windows Programming
    Replies: 8
    Last Post: 10-06-2007, 05:15 PM
  2. creating a child window
    By rakan in forum Windows Programming
    Replies: 2
    Last Post: 01-23-2007, 03:22 PM
  3. Why only 32x32? (OpenGL) [Please help]
    By Queatrix in forum Game Programming
    Replies: 2
    Last Post: 01-23-2006, 02:39 PM
  4. Pong is completed!!!
    By Shamino in forum Game Programming
    Replies: 11
    Last Post: 05-26-2005, 11:50 AM
  5. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 01:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21