Solved

CFormView inside a Dialog.

Posted on 1998-07-08
5
365 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
[X]
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
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Installer 4 79
Need to create an object factory 2 52
Need more details 5 193
Excel Web Add-in Where is Visual Basic used 9 81
This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
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…
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…

739 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