How do I code static control invisible during run time?

I have a dialog and some control place on that dialog. I want to make some control invisible during run time if that control is not meeting certain creteria.
How do I code control on the dialog box invisible during run time?
[229 byte] By [Kevin007] at [2007-11-16 3:20:33]
# 1 Re: How do I code static control invisible during run time?
try with :
m_MYCTRL.ShowWindow(SW_HIDE);
ChristianM at 2007-11-10 4:28:06 >
# 2 Re: How do I code static control invisible during run time?
CWnd* pWnd = GetDlgItem(IDC_CONTROL);
ASSERT(pWnd); // make sure we got a cwnd
pWnd->ShowWindow(SW_HIDE);

HTH,
Chris
ChrisD at 2007-11-10 4:29:07 >