Separator

This is a discussion on Separator within the Windows Programming forums, part of the Platform Specific Boards category; Well, I don't know the name but, how can I create a separator that split my window in two parts? ...

  1. #1
    lyx
    lyx is offline
    Amateur
    Join Date
    Sep 2003
    Posts
    228

    Separator

    Well, I don't know the name but, how can I create a separator that split my window in two parts? And how can I make one part look like it is on top of the other?
    Sorry, I do explain very badly...

  2. #2
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    Do you want each part to have it's own client area, and it's own relative (0,0) coordinate? To me, that sounds difficult. What is your intention for this code? What is the overall project?
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  3. #3
    'AlHamdulillah
    Join Date
    Feb 2003
    Posts
    790
    do you mean to have a window split up into child windows? if so, check out msdn.microsoft.com

  4. #4
    lyx
    lyx is offline
    Amateur
    Join Date
    Sep 2003
    Posts
    228
    No, well, an example of what I want to do is, when you create a multi-frame document within a web page with the <frame> tags. It creates a border between the frames, that is what I want to do, sounds quite stupid but I'm not used to GUI programming...
    And, by the way, could someone tell me how I can get the GROUPBOX control outside of a dialog template? (I fon't want it to be part of my resources but to be created at run time)

    [edit]Oh, and about my project, there isn't any, I'm just learning. ^^

    [edit2]I found for the group box thing, really, they shouldn't have called the class BUTTON... Besides, there's no entry in the index. Well, nothing serious, I found after all. ^^
    Last edited by lyx; 10-24-2003 at 01:50 PM.

  5. #5
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    So all you want to do is create a border that splits the client area into two parts? You could do that graphically.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  6. #6
    lyx
    lyx is offline
    Amateur
    Join Date
    Sep 2003
    Posts
    228
    Well, I guess there aren't any other solutions. Thanks for the help.

  7. #7
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,856
    Look at splitter windows. In MFC the CSplitterWnd class.

    they divide a document view window into parts.

    MFC apps can have one created in the wizzard.
    "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

  8. #8
    lyx
    lyx is offline
    Amateur
    Join Date
    Sep 2003
    Posts
    228
    Thanks for the information but I do not use MFC, could you tell me the reference for the API?

  9. #9
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,856
    No

    Like the Print Preview Window class there seems to be no API counterpart.
    "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

  10. #10
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    No. Like the Print Preview Window class there seems to be no API counterpart.
    Well, considering that the MFC is merely an encapsulation of the API, it should be possible. It would not be that easy though. I suggest you find a decent purpose for this "separator", then try to implement a different mechanism.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  11. #11
    Grammar Police HybridM's Avatar
    Join Date
    Jan 2003
    Posts
    355
    Sometimes framed websites require that the frame be scrollable and the main page not, and visa versa.

    That being the case I think you should use two separate child windows one for the frame and one for the page.
    Thor's self help tip:
    Maybe a neighbor is tossing leaf clippings on your lawn, looking at your woman, or harboring desires regarding your longboat. You enslave his children, set his house on fire. He shall not bother you again.

    OS: Windows XP
    Compiler: MSVC

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Get stringstream with separator!!!
    By cubimongoloid in forum C++ Programming
    Replies: 31
    Last Post: 05-20-2009, 02:05 AM
  2. Help!!!! How to Identify Image block or image separator in GIF 89a
    By kapil1089thekin in forum C Programming
    Replies: 1
    Last Post: 05-06-2008, 10:53 AM
  3. static separator
    By Bleech in forum Windows Programming
    Replies: 2
    Last Post: 10-21-2007, 03:47 PM
  4. problem with Makefile separator
    By luca in forum Tech Board
    Replies: 6
    Last Post: 01-15-2007, 09:20 AM
  5. sub-menu separator
    By willc0de4food in forum Windows Programming
    Replies: 4
    Last Post: 06-27-2005, 07:46 PM

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