Guest Reima_M Posted November 23, 2003 Report Posted November 23, 2003 I have a dialog that includes an edit box. SetDlgItemText(IDC_MY_EDIT_BOX, _T("Some text here")); works just fine as long as it's done inside the dialog class and my problem is that I would have to modify the contents of the edit box outside the class. I have tried getting the HWND of the dialog and using that with SetDlgItemText(handle, dialog_id, text) but with no success. Also I tried making a function inside the dialog class that took a string as its arguments and would have put that in the edit box. That function works if it's called inside the class but even if I pass the functions pointer to a function outside the class and call it there it won't do any change on the edit box. Weird. Any ideas how to update an edit box outside the dialog class it is in? I'm using eMbedded VC++ 3.0 + WTL libraries.
Guest Reima_M Posted November 24, 2003 Report Posted November 24, 2003 Thanks to spacemonkey, problem solved.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now