getdlgitem/getwindowtext
-
I have to get back the static text on a dialog programatically. Say version number on help about dialog which will keep on changing . But when the code like getwindow text executes the dialog is not active . So grtting invalid handle .please advise Suman ray
-
I have to get back the static text on a dialog programatically. Say version number on help about dialog which will keep on changing . But when the code like getwindow text executes the dialog is not active . So grtting invalid handle .please advise Suman ray
assuming you have an object in your main program for this dialog and you are also using MFC, then you can assign a variable (CString probably) to the text box using the class wizard and then you should be able to access it in your main program (you may need to add a Get method). hth
-
assuming you have an object in your main program for this dialog and you are also using MFC, then you can assign a variable (CString probably) to the text box using the class wizard and then you should be able to access it in your main program (you may need to add a Get method). hth
-
the problem is that there is no gurantee that this object will be created in program lifetime. In fact if the user does not click on help->about , object is never created. Suman ray
-
the problem is that there is no gurantee that this object will be created in program lifetime. In fact if the user does not click on help->about , object is never created. Suman ray
raysuman wrote: the problem is that there is no gurantee that this object will be created in program lifetime perhaps calling
IsWindow(..)
with the handle of the static control to receive the text from before doing so helps
We are men. We are different. We have only one word for soap. We do not own candles. We have never seen anything of any value in a craft shop. We do not own magazines full of photographs of celebrities with their clothes on. - Steve