Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How are CNiButton and CNiNumEdit controls toggled between visible/hidden dynamically in the Visual C++, Measurement Studio environment?

My application needs to make button and numeric edit controls visible and invisible programmatically during the run. The General tab in property sheet which creates the control contains a Visible check box that sets the control to visible or hiddent when the program is first run. After that, how do I change the status of the Visible attribute programmatically?
0 Kudos
Message 1 of 2
(2,615 Views)
You can use CNiButton::ShowWindow and CNiNumEdit::ShowWindow to do this. Pass SW_HIDE to ShowWindow to hide it and SW_SHOW to show it.

- Elton
Message 2 of 2
(2,615 Views)