Click here to Skip to main content
15,893,486 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to design a student registration and exam recording app using C++ MFC with a kind of child window containing buttons edits and other common controls which is displayed on the app client area, and can be removed and replaced with another one by clicking a button. Thats the problem i face now( The GUI ). I came from JAVA background where this can be done by creating a JPanel as a container for the buttons, combo boxes and text fields controls. the panel is displayed on the client area and can be removed and replaced with another panel containing a new set of controls. I tried learning CView but it keeps talking about documents and views that displays untitled document as in word processing. Any pointer will be appreciated. Thanks.
Posted
Comments
Matthew Faithfull 30-Jan-13 16:44pm    
I think what you're after is a CFormView in MFC but in 10 years I could have completely forgotten. It will talk about Documents because MFC uses a Document/View architecture, a sort of broken version of Model/View/Controller where the Model is called a Document and most of the Controller is combined into the View. Anyway I think you're on the right track with CView you just need to find the right sub class which lets you use a Dialog Template to put those buttons and combo boxes onto the View. I hope it turns out well.

1 solution

Matthew is correct, you should look into the CFormView Class[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900