What about PostMessage ?
BOOL PostMessage(
HWND hWnd, // handle to destination window
UINT Msg, // message
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);
>From: Met...@ao...
>To: dev...@li...
>Subject: [Dev-C++] Sending API messages from *within* a subclassed control
>Date: Wed, 7 Aug 2002 10:17:30 EDT
>
>Hi there.
>
>I subclassed a single line edit box in a dialog window, to verify user
>entry.
>The subclassing works very well, I am able to see WM_KEYDOWN-like messages.
>
>But now, as the user press "enter", I just want to send a message to the
>dialog box, like the user has clicked on the "Go" button, just beside the
>edit box.
>
>I tried setting the msg var to WM_COMMAND, the wParam var to id of the
>button
>and let the CallWindowProc at the end of the subclassed message handling
>proc
>do the work but nothing happens.
>
>I've tried to find some examples on google groups and the web but nothing
>really helps.
>
>If anybody had a relevant piece of code to do this, it would be nice for
>me.
>
>Thanks all mates
>
>--
>
>Seb
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
|