Solved

Controls in an MDI child window.

Posted on 1999-01-15
2
176 Views
Last Modified: 2013-11-20
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
Comment
Question by:rrammage
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
jrmcg earned 100 total points
ID: 1327755
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
 
LVL 2

Expert Comment

by:jrmcg
ID: 1327756
>> 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now