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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

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.…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

635 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