Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Hide a graph

If a document/view application with some graph controls in it. Which I dynamicly created.
But now I want to destroy or hide a view graps. Not all of them. But I see no property "visible" that I can set to true or false.
Is there a way to do this?
0 Kudos
Message 1 of 2
(2,957 Views)
As with pretty much all controls and objects in Visual C++, the graph is a window that inherits from CWnd. So, it inherits all the CWnd functionality (such as the ability to hide and display). You can hide the window and display it the same way you would with any window.

m_Graph.ShowWindow(SW_HIDE); //to hide graph
m_Graph.ShowWindow(SW_SHOW); //to show graph

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(2,957 Views)