Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

how to expand the graph as the size of dialog box changes

How do I expand and shrink the size of the CWGraph as size of the Window(dialog-box) changes?
Could you please teach me how to do this in step by step with actual codes?
 
I am using MFC dialog-based VC++ .NET Pro 2003.
I appreciate for help.
0 Kudos
Message 1 of 2
(3,027 Views)

You can do this by handling the WM_SIZE message (which maps to CWnd::OnSize in MFC), and then writing code to resize the controls. Take a look at this article for an example.

- Elton

0 Kudos
Message 2 of 2
(3,014 Views)