Hide a label, and show a label

Hide a label, and show a label

Post by aotem » Sat, 30 Oct 2004 06:12:30


I'm using EVC 3.0 and I have 2 labels on top of eachother. I would
like to be able to show only the text of a single label at any one
time.

so how do you hide a label in evc? and how do I show the label again?

I thought it would be something like

GetDlgItem(myLBL)->setVisible(false);

but that doesn't seem to work at all! Please let me know what you
think.

Thanks!
 
 
 

Hide a label, and show a label

Post by Ravi Ambro » Sat, 30 Oct 2004 06:56:52

GetDlgItem(myLBL)->ShowWindow(SW_HIDE);
GetDlgItem(myLBL)->ShowWindow(SW_SHOW);

--
Ravi Ambros Wallau
r w a l l a u @ s p r i n g w i r e l e s s . n e t