How do I hide an edit box using code, not by checking/unchecking the visible box in the Edit Properties box.
I'm trying to write an if statement to determine whether or not a box should be visible.
How do I hide an edit box using code, not by checking/unchecking the visible box in the Edit Properties box.
I'm trying to write an if statement to determine whether or not a box should be visible.
To hide it:
ShowWindow(edit_handle, SW_HIDE);
To show it again:
ShowWindow(edit_handle, SW_SHOW);
I hope this helps!
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
ShowWindow(GetDlgItem(hwnd, ID_OF_CONTROL),SW_HIDE);
Sometimes, the farthest point from the center is the center itself.
Your life is your canvas, it's only as beautiful as you paint it.
MFC. and a dialog
GetDlgItem(IDC_EDIT1)->ShowWindow(TRUE); //Show edit
GetDlgItem(IDC_EDIT1)->ShowWindow(FALSE);//Hide edit
C++ Is Powerful
I use C++
There fore I am Powerful