Static Label Visible Problem
-
I am using MFC. In my application i am using two label one for e-mail id and other for certain URL. Initially I have set its property of Visible to be false. Now when these two labels have certain values during runtime i want to make them visible. Please tell me how to make the static labels visible during run time. Thanks In Advance. Dhiraj Kumar Saini
-
I am using MFC. In my application i am using two label one for e-mail id and other for certain URL. Initially I have set its property of Visible to be false. Now when these two labels have certain values during runtime i want to make them visible. Please tell me how to make the static labels visible during run time. Thanks In Advance. Dhiraj Kumar Saini
ShowWindow function can be used to make the static control visible during runtime GetDlgItem(IDC_STATIC)->ShowWindow(TRUE) u can try using this.
-
I am using MFC. In my application i am using two label one for e-mail id and other for certain URL. Initially I have set its property of Visible to be false. Now when these two labels have certain values during runtime i want to make them visible. Please tell me how to make the static labels visible during run time. Thanks In Advance. Dhiraj Kumar Saini
GetDlgItem(ID_MYCONTROL)->ShowWindow(SW_VISIBLE);
Cédric Moonen Software developer
Charting control [v1.5] OpenGL game tutorial in C++ -
I am using MFC. In my application i am using two label one for e-mail id and other for certain URL. Initially I have set its property of Visible to be false. Now when these two labels have certain values during runtime i want to make them visible. Please tell me how to make the static labels visible during run time. Thanks In Advance. Dhiraj Kumar Saini
if(label_has_certain_values_during_runtime)
{
GetDlgItem(IDC_STATIC_EMAIL)->ShowWindow(TRUE);
} -
I am using MFC. In my application i am using two label one for e-mail id and other for certain URL. Initially I have set its property of Visible to be false. Now when these two labels have certain values during runtime i want to make them visible. Please tell me how to make the static labels visible during run time. Thanks In Advance. Dhiraj Kumar Saini
one thing more to remember they shouldn't have ID liek ID_STATIC! ok
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/xml>