cdiaz
asked on
CFormView inside a Dialog.
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
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
Why not create a Single Document Application with FormView. It will satisfy what you want to do.
If you want to make a project in this way, just choose C*View as CFormView in Baseclass combobox at step 6.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
ASKER