CFormView inside a Dialog.

Posted on 1998-07-08
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
Question by:cdiaz
  • 2
  • 2

Author Comment

ID: 1409705
Edited text of question

Expert Comment

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

Expert Comment

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

Accepted Solution

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

Author Comment

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.

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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.…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 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

20 Experts available now in Live!

Get 1:1 Help Now