0

Hey! I'm working with MFC (SDI) and I have 3 views in the window (TreeView, FormView and OpenGL). Everything is working ok.
Now I want to add a new item on the TreeView to display on the FormView the details of the selected item, however the new items belong to a different category and they will need a differente formview. My question is, How can I change the FormView from a Dialog (IDD_FORMVIEW1) to another (IDD_FORMVIEW2)...
Any suggestions???? Please help!!!

3
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by e_pech
0

Ancient Dragon's link is pretty much on the topic .. you can also find some complete MDI/SDI examples, with and without splitters, by downloading the sample code of the The MFC Answer Book, freely available here:
http://www.informit.com/content/images/0201185377/CDContents/Code.zip

There are three demo applications related to switching views:
SwitchViewMDI, SwitchViewSDI and SwitchViewSplitter

All in all, the .zip contains ~100 MFC demo applications.

0

Perfect!! Thank you so much for the information... I'll check it tonight!!

0

Thank you soo much!! Reading the article was well complemented by the code provided by mitrmkar!! Thanks to both of you!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.