PDA

View Full Version : Handling Windows Messages



hammer
18-11-2004, 10:47 PM
hi there.
i have a little problem.
in short terms my program activates another program's window
but at the moment that i send the message my programs stops running until i close the other programs window.

SendMessage(mphandle,WM_KEYDOWN,40194,65536); // 'j' key

any ideas how can i fix this? i want my program to continue running after the sendmessage without me having to close the opened window from the other program.
i think if i ignore the wm_activateapp messages i can achieve this ... but i dont know how to ignore them.
please help :)

BenBE
19-11-2004, 08:48 PM
Use the PostMessage function.
That's it :D

hammer
20-11-2004, 09:21 AM
thanks it worked just fine :)