Thread: Win32 child window split bars

  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,829
    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, 04: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, 10:50 AM
  5. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM