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...
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...
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?
[email protected]
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials
do you mean to have a window split up into child windows? if so, check out msdn.microsoft.com
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.
So all you want to do is create a border that splits the client area into two parts? You could do that graphically.
[email protected]
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials
Well, I guess there aren't any other solutions. Thanks for the help.
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
Thanks for the information but I do not use MFC, could you tell me the reference for the API?
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
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.No. Like the Print Preview Window class there seems to be no API counterpart.
[email protected]
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials
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