Solved

CFormView inside a Dialog.

Posted on 1998-07-08
5
353 Views
Last Modified: 2013-12-03
Tools : MS Visual C++ 5.0

I am developing a (NT) dialog based application and I would like to include a CFormView inside a dialog. The reasons for this are that I would like to take advantage of the scrolling capabilities of the FormView and I would also like to dynamically create controls (text boxes, combo boxes, etc..) inside the FormView. Basically the idea is to have a parent dialog and inside this dialog have a CFormView just as if it was regular control.
I would appreciate if somebody who has done something similar to this would help me. I would appreciate if some sample code was included in the response since I don't have much experience with MFC and been able to see some code would really help me.
My e-mail address is  cdiaz@cadrc.calpoly.edu
0
Comment
Question by:cdiaz
  • 2
  • 2
5 Comments
 

Author Comment

by:cdiaz
ID: 1409705
Edited text of question
0
 
LVL 8

Expert Comment

by:trestan
ID: 1409706
Why not create a Single Document Application with FormView. It will satisfy what you want to do.
0
 
LVL 8

Expert Comment

by:trestan
ID: 1409707
If you want to make a project in this way, just choose C*View as CFormView in Baseclass combobox at step 6.
0
 
LVL 23

Accepted Solution

by:
chensu earned 50 total points
ID: 1409708
CFormView makes use of the document-view architecture. It seems difficult to put it into your dialog-based application. What about putting the following ActiveX control into your dialog?

SAMPLE: Create an ActiveX Control with a Dialog Resource
http://support.microsoft.com/support/kb/articles/q155/9/73.asp
0
 

Author Comment

by:cdiaz
ID: 1409709
This is not exactly what I was looking for. I found  out that what works better in my case is to insert a dialog inside my paret dialog.  That way I can scroll and dinamically add controls to the child dialog. I checked out the ActiveX control that you mention in your answer and it didn't work for my case. But thanks for your help.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now