Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I resize the 3D/2D CWgraph along with the main window

I have 3d CWgraph inside a SDI, how can I fill up the whole SDI window with the CWgraph and when I resize the main window, the cwgraph resize along with it?
It would be good to have feature in the example.

thanks
Andrew

0 Kudos
Message 1 of 2
(4,432 Views)
Andrew,

This is something that is caused by Visual Studio and not the Measurement Studio controls themselves. The Measurement Studio controls are built off of ActiveX controls for Visual Studio and there are no properties given for enabling auto-resize when the window is resized. Because of the way these controls are designed, there is not easy way of enabling this without coding the resize yourself. As you can imagine, this is quite often asked for with controls, so there are many resources available online on how to do this in MFC. Here's a couple of links I was able to find when searching.

http://www.codersource.net/mfc_resize_controls.html
http://www.codeproject.com/miscctrl/resize_at_runtime.asp?df=100&forumid=1719&exp=0&select=828128

I also found this product which allows you to do this very easily and always correctly.

http://www.resizer.com/


Brandon Vasquez | Software Engineer | Integration Services | National Instruments
0 Kudos
Message 2 of 2
(4,416 Views)