Splitter Window with 2 views with MFC
-
Dear All, I would like to have 2 different views for a document. Each view to be display one at a time or together using a splitter window at any point of time. How best should I approach this? I'm open to any new ideas. I've just started programming and I think my question will be trivial to most of you out there. Thanks very much for taking the time to help me out Regards, Chun Te
-
Dear All, I would like to have 2 different views for a document. Each view to be display one at a time or together using a splitter window at any point of time. How best should I approach this? I'm open to any new ideas. I've just started programming and I think my question will be trivial to most of you out there. Thanks very much for taking the time to help me out Regards, Chun Te
If when you say different views you mean, different view classes, then you should use a Splitter Window and create static views, look at MSDN. Its difficult to create a Static Splitter window which can turn into a single window since the Splitter Asserts if there is only once view. have a look in the Splitter Section of codeproject.. there might be some ideas you can use. Asim Hussain e: asim@jawache.net w: www.jawache.net
-
Dear All, I would like to have 2 different views for a document. Each view to be display one at a time or together using a splitter window at any point of time. How best should I approach this? I'm open to any new ideas. I've just started programming and I think my question will be trivial to most of you out there. Thanks very much for taking the time to help me out Regards, Chun Te
I've used this class, ST_SplitterWnd,to do just what you want. I have two views which are the same because the view has a tab control. The dual views allows the user to see two different tabs of data at once, if desired. It is here on Code Project in the Articles section. BTW, the class has a nice function called ToggleSide() which allows hiding one of the views. Thus, you can add both views and hide one and the user only sees one. But, when the user wants a second view, you just call ToggleSide() again.