splitting the client area into 4 hwnds

This is a discussion on splitting the client area into 4 hwnds within the Windows Programming forums, part of the Platform Specific Boards category; i have made my menu and toolbars, and now i have a big rectangle in the middle for 4 views ...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    21

    splitting the client area into 4 hwnds

    i have made my menu and toolbars, and now i have a big rectangle in the middle for 4 views for a game editor. i need to somehow split them up into 4 hwnds that i can do a d3dpresent to, but i don't know how. not being able to resize isn't a big deal, thought it would be nice. i need some kind of border also, only a few pixels. it would be REALLY nice if there was a command to just pass a RECT to and a HWND to split up, and it would just make a HWND with that rect. but, all i need to do is split the view up vertically and horizontally so i can get 4 hwnds from it. how would i do that?

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,855
    Why do you need the seperate HWND's?

    Create frame controls,

    use splitter windows

    or

    just 4 smaller HDC's.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    21
    because the IDirect3DDevice->Present has 4 arguments, like Present(RECT source, RECT dest, HWND deviceWindow, and something else).

    if i have 4 hwnds i can simply just send it the hwnd i need to render to. but i'll read up on those other things you posted, splitter windows might be what i need.

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,855
    can't you send in the same HWND and different Rects?
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  5. #5
    Registered User
    Join Date
    Nov 2002
    Posts
    21
    Originally posted by novacain
    can't you send in the same HWND and different Rects?
    i think so, i just think it would make the code cleaner if i coudl do it with HWNDS.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MFC: Clear Client Area
    By mrafcho001 in forum Windows Programming
    Replies: 2
    Last Post: 06-27-2005, 01:35 PM
  2. Displaying more shapes in the same client Area
    By sajeev_js in forum Windows Programming
    Replies: 1
    Last Post: 06-11-2005, 01:52 PM
  3. Help resizing client area
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 07-07-2002, 08:33 PM
  4. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  5. Clearing the client area
    By Isometric in forum Windows Programming
    Replies: 15
    Last Post: 01-29-2002, 09:07 PM

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