visible/invisible
-
How can I make an Editbox control visible or invisible throw the code. I know : object.visible=1 but what is the object??? can some one can give an example ( let's say that the edit controll ID is ID_EDIT2
CWnd* pCtrl = GetDlgCtrlID(ID_EDIT2);
if ( pCtrl )
if ( pCtrl->IsVisible() )
pCtrl->ShowWindow(SW_HIDE);
else
pCtrl->ShowWindow(SW_NORMAL);Is this what you are looking for? Chris
-
CWnd* pCtrl = GetDlgCtrlID(ID_EDIT2);
if ( pCtrl )
if ( pCtrl->IsVisible() )
pCtrl->ShowWindow(SW_HIDE);
else
pCtrl->ShowWindow(SW_NORMAL);Is this what you are looking for? Chris
Shouldn't that be
CWnd* pCtrl = GetDlgItem(ID_EDIT2);
Michael :-) -
Shouldn't that be
CWnd* pCtrl = GetDlgItem(ID_EDIT2);
Michael :-)Thanks, Michael. You are correct. In my haste to post, I forgot to try and compile :-O Chris