|
-
February 5th, 2004, 10:07 AM
#1
Text from editbox
Hi, i'm having problems getting the text from an edit box. I have a splitter window with two windows. My editbox is on one window and i want to get the text from it and send it to my second window. I have tried the option below but it gives me an error when the program starts.
CWnd* pWnd = GetDlgItem(IDD_EDIT1);
CString Tester;
pWnd->GetWindowText(Tester);
I'm using Doc/view arc , and the Editbox does not belong to the view that is calling for the text, is there another way to do this. I also tried the selection below and it gave me a blank string.
GetDlgItemText(IDD_EDIT,Tester);
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
|