Dynamic CFormViews
Bob Trabucco -- btrabucc@peganet.com
Wednesday, September 04, 1996
Environment: MSVC 1.52 / Win 3.x, 95
I would like to use a CFormView to display a form for my user to fill
out. Normally no problem. The twist is that I would like to create
this form on the fly, that is I would like to create the dialog template
needed in memory and use it for the CFormView.
Any samples or ideas on how to do this?????
Thanks in advance
Bob Trabucco
btrabucc@peganet.com
GoroKhM1 -- gorokhm1@SMTP.ATG-NET.COM
Thursday, September 05, 1996
[Mini-digest: 2 responses]
The sample DLGTEMPL does exactly what you want. This sample is
included in VC >= 4.1
Mark
MarkG@usa.net
______________________________ Reply Separator _________________________________
Subject: Dynamic CFormViews
Author: mfc-l@netcom.com at INTERNET
Date: 9/5/96 12:53 PM
Environment: MSVC 1.52 / Win 3.x, 95
I would like to use a CFormView to display a form for my user to fill
out. Normally no problem. The twist is that I would like to create
this form on the fly, that is I would like to create the dialog template
needed in memory and use it for the CFormView.
Any samples or ideas on how to do this?????
Thanks in advance
Bob Trabucco
btrabucc@peganet.com
-----From: Dicky Singh
U might also want to consider using an empty form (dialog with no controls)
initially and create & place controls dynamically on the form as a
simpler alternative.
The best place (as always) to look for code to handle creation of dialog
templates in memory is the mfc source code.
Check Dlgcore.cpp (at least this is true for mfc32 ). Also, on win16 U
don't have to worry about DLGTEMPLATEEX.
Tim Hagemann -- Tim@way2.net
Monday, September 09, 1996
Bob,
there exists a ready-to-use product called HyperView, which support
dynamic (user) created form views.
Timbo :-)
"In harten Zeiten wird es Zeit hart zu werden !"
The original mail was :
From : Bob Trabucco
Sent : 1996/09/06 02:00
To : mfc-l@netcom.com
CC :
Subject : Dynamic CFormViews
Environment: MSVC 1.52 / Win 3.x, 95
I would like to use a CFormView to display a form for my user to fill
out. Normally no problem. The twist is that I would like to create
this form on the fly, that is I would like to create the dialog template
needed in memory and use it for the CFormView.
Any samples or ideas on how to do this?????
Thanks in advance
Bob Trabucco
btrabucc@peganet.com
| Вернуться в корень Архива
|