cube01
August 25th, 1999, 02:56 AM
Here's my code:
[ccode]
char strTitle[101];
HWND hWnd = NULL;
HWND hwnd = NULL;
hWnd = ::FindWindow(NULL, "DlgTitle");
hwnd = ::GetDlgItem(hWnd, IDC_EDIT);
::SetWindowText(hwnd, "test");
Everything compiles fine, and it runs fine, except for my edit control doesn't say 'test'
why not?
I've debuged it and all the HWND's get the proper handles, and none of the functions fail...
so what could be the problem?
thank you..
Cube
[ccode]
char strTitle[101];
HWND hWnd = NULL;
HWND hwnd = NULL;
hWnd = ::FindWindow(NULL, "DlgTitle");
hwnd = ::GetDlgItem(hWnd, IDC_EDIT);
::SetWindowText(hwnd, "test");
Everything compiles fine, and it runs fine, except for my edit control doesn't say 'test'
why not?
I've debuged it and all the HWND's get the proper handles, and none of the functions fail...
so what could be the problem?
thank you..
Cube