-
May 9th, 2000, 04:53 AM
#1
How to get CEdit Value
Hello:
I use VC++6.0 MFC.Built a Dialog class.
I add a CEdit myEdit.If I can get the value of
myEdit use other (Dialog)exe file?
Welcome any advices!Thank you very much.
Still waiting.
-
May 9th, 2000, 07:04 AM
#2
Re: How to get CEdit Value
Get a Mouse cursor and then compare controls on wich mose is positioned with CEdit and then GetWindowText(). If you want something else please let me now
Regards,
Oliviu
-
May 9th, 2000, 07:59 AM
#3
Re: How to get CEdit Value
If you defined the myEdit using Class Wizard, then it is public and can be accessed from outside the class:
CMyDialog doit;
CString foo;
doit.myEdit = "test";
doit.DoModal();
// you can use the value in this function
foo = doit.myEdit;
// you can pass the value to another dialog
CAnotherDialog bash;
bash.amotherEdit = doit.myEdit;
-
May 9th, 2000, 07:57 PM
#4
Re: How to get CEdit Value
Yes:
I want to do it.But I want to know if I
can do it not use mouse case.
Example: My Dialog name is "HelloDialog",my CEdit is myEdit,ID is "IDC_MYCHECK" in the Dialog.
Could you give me some sample code?How to get myEdit value ?
Thank you very much!
-
May 10th, 2000, 12:27 AM
#5
Re: How to get CEdit Value
Hi buddy,
try to this code:
CString Str;
GetDlgItemText(IDC_MYCHECK,Str);
Here Str have the value of your edit controls.
All the best.
srinu
-
May 10th, 2000, 12:29 AM
#6
Re: How to get CEdit Value
I am unable to understand what do you want? What do you mean by "If I can get the value of myEdit use other (Dialog)exe file?"
--- Rating a good post motivates me ---
Mukhtar
-
May 10th, 2000, 01:09 AM
#7
Re: How to get CEdit Value
Right now I can't send you some example code because I'm 7 days out of office. But you can look at process help. Try to find the id of process created by your Dialog application and the rest is easy. I hope I can send you an example net week.
Regards,
Oliviu
-
May 10th, 2000, 03:05 AM
#8
Re: How to get CEdit Value
Thank you:
I am doing this use your advice.But I think
maybe I will see you next week?(:-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|