Reading MessageBox
-
How can I read the content of a messagebox through my VC application Please reply asap Thanks for ur help Uday
-
How can I read the content of a messagebox through my VC application Please reply asap Thanks for ur help Uday
-
No, static Text, Label Say in MessageBox it comes as Hi! This is for Test I want to read this
-
No, static Text, Label Say in MessageBox it comes as Hi! This is for Test I want to read this
udayGovekar wrote: ...static Text... Call
GetWindowText()
on the CStatic-variable, or call::GetWindowText()
with the HWND of your static text control.
My opinions may have changed, but not the fact that I am right.
-
No, static Text, Label Say in MessageBox it comes as Hi! This is for Test I want to read this
-
No, static Text, Label Say in MessageBox it comes as Hi! This is for Test I want to read this
Number of ways... e.g.
GetWindowText()
GetDlgItemText()
Have a look in MSDN for more info on both these. If it's an MFC app dialog app and you have the Resource ID just use something like:GetDlgItemText(IDC_STATIC, string);
where string in a CString reference, for example. Regards, Brian Dela :-)
Run naked in the snow until you're sweating like a stuck pig and can't seem to catch your breath. When the flu becomes pneumonia, they can cure that with a shot. - Roger Wright