|
-
February 1st, 2009, 08:02 PM
#1
SendMessage Problem
I use the ShellExecute to execute notepad, and the return from that api is the HANDLE to the notepad, the handle is in a HMODULE, but after i try to use SendMessage, and give it the handle as the first argument, i get problems.
SendMessage wants a HWND but ShellExecute wants a HMODULE...
Code:
HMODULE hWnd;
//HWND hWnd;
hWnd = ShellExecute(NULL,"open","Notepad.exe",NULL,NULL,SW_MAXIMIZE);
//SendMessage(hWnd,WM_SETTEXT, 0, 0);
I just want to use SendMessage to "type" text on notepad.
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
|