Click here to Skip to main content
13,595,475 members
Rate this:
Please Sign up or sign in to vote.
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 30-Jan-13 10:25am
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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.180621.3 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100