Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

Controls in an MDI child window.

How do you put ActiveX controls in a Document view object?

My document's data would best be visualized by a combination of Text boxes, toggle buttons and plots.  I know how to do this in a dialog based program but have not been able to figure out how to add controls to a window in the document/view architecture.
0
rrammage
Asked:
rrammage
  • 2
1 Solution
 
jrmcgCommented:
When you are creating your project, create your view with the CFormView class.  This can be accomplished with the wizard when you are creating the project by:

When it gets to the section that shows you the classes that App Wizard creates for you, highlight CProjectNameView and drop down the box that contains the base class and select CFormView.  This will make the view look and act just like a dialog box.  Then just associate your document variables with the variables you assign to the controls as you normally would.

This would be the easiest way to implement the way you want your display.

If you need any other help with it let me know.

J.R.
0
 
jrmcgCommented:
>> Then just associate your document variables with the variables you assign to the
>> controls as you normally would.

variables you assign to the controls

not actually control variables, but like the CString variable you would assign to a CEdit box control.

I didn't want to throw you off.

J.R.


0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now