Tab in a SDI View or MainFrame
-
Hi, I have a SDI application that I wrote in .NET 2005 C++ and in unmanaged code, I have used the ST_SplitterWnd to split the windows, but now what I need to do is, I need to create tabs so that all the views are contained in one, so that I can make another instance of tabs when the next tab is clicked. Now I have no clue how to do this. Is there anyone else out there that knows how to do this? Thanks in advance
-
Hi, I have a SDI application that I wrote in .NET 2005 C++ and in unmanaged code, I have used the ST_SplitterWnd to split the windows, but now what I need to do is, I need to create tabs so that all the views are contained in one, so that I can make another instance of tabs when the next tab is clicked. Now I have no clue how to do this. Is there anyone else out there that knows how to do this? Thanks in advance
You want to use tabs instead of splitters? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
You want to use tabs instead of splitters? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
Hi Mark, I still want the splitters, but I want say 3 splitters in 1 tab and 2 splitters in another.
-
Hi Mark, I still want the splitters, but I want say 3 splitters in 1 tab and 2 splitters in another.
You can use a tab window as the client of the main frame. Then use frame windows as tab windows and use the splitters in those frame windows as usual. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
You can use a tab window as the client of the main frame. Then use frame windows as tab windows and use the splitters in those frame windows as usual. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
Do you by any chance have like a mock example? Thanks for the help
-
Do you by any chance have like a mock example? Thanks for the help
For some reason I was thinking MFC, sorry. You can ignore the frame window comments. I don't have a complete example, Which part is giving you trouble? You just need to build your window hierarchy the way you want it. For example: Create the main window Create a tab window as a child of the main window. See Tab Controls[^] Add code to so the tab window gets resized to fit the client area of the main window. Add tab windows to the tab control Add code that resizes/repositions the tab windows appropriately within the tabs. Add splitters to the tab windows. etc. etc. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Hi Mark, I still want the splitters, but I want say 3 splitters in 1 tab and 2 splitters in another.