Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ MFC
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
Comments
Matthew Faithfull at 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
good
Please Sign up or sign in to vote.

Solution 1

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

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

  Print Answers RSS
0 Maciej Los 325
1 OriginalGriff 278
2 Nguyen.H.H.Dang 230
3 Peter Leow 195
4 arvind mepani 187


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