Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CView vs. CForm View

Status
Not open for further replies.

pghTech

Technical User
Jul 19, 2006
37
US
--------------------------------------------------------------------------------

I have a program that I am working on where I can use edit boxes on a dialog to load records in an attached database and and query the database.

Taking some advice from some community members, I have attempted to create the SDI application without DB support from the beginning, and create the dialog, then go back and add a class derived from CRecordSet in my program.

In the attempts to go this route, I noticed that my dialog does not get displayed when I run the program, only the window frame (CMainfrm) which from reading the definition, explains why only the toolbar and menus get loaded and not the client area that should load my dialog.

So my question is, how do I get my dialog window to load in the client area of my program?

Also, it is to my understanding there is two levels of MFC applications, using dialogs and using forms. I was under the impression that using forms really reduces the amount of programming you have to do. However, that's not what I want, as I am really wanting to put what I have been learning into practice. And using CFormView would be relying that your using a form as opposed to CView. Is that the case?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top