thebarslider
Programmer
Dear All,
I have a dialog application and i wish to retrieve text from an Edit Box within it. I have set up a CEdit variable for the Edit box and used the function GetWindowText to place the text into a CString object.
I now wish to use the information within a different class (object) but the Object/String is in the CDialog class and i dont know how to reference the CDialog class/object in the call from my other object.
For example:
COneDlg:
rogrammeName;
doesnt work
Neither does a call to a GetProgrammeName function within the Dialog class as i dont know what the dialog object is called? I'm not sure if i can do this anyway?
I have tried to use:
dlg.GetProgrammeName
but this doesnt work even though
CDialog dlg;
is defined in my main App and is included in the calling class.
I'm really stuck and need help.
Thank you to any one who can help me
Mark.
I have a dialog application and i wish to retrieve text from an Edit Box within it. I have set up a CEdit variable for the Edit box and used the function GetWindowText to place the text into a CString object.
I now wish to use the information within a different class (object) but the Object/String is in the CDialog class and i dont know how to reference the CDialog class/object in the call from my other object.
For example:
COneDlg:
doesnt work
Neither does a call to a GetProgrammeName function within the Dialog class as i dont know what the dialog object is called? I'm not sure if i can do this anyway?
I have tried to use:
dlg.GetProgrammeName
but this doesnt work even though
CDialog dlg;
is defined in my main App and is included in the calling class.
I'm really stuck and need help.
Thank you to any one who can help me
Mark.