Results 1 to 3 of 3

Thread: Handling Windows Messages

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Handling Windows Messages

    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

  2. #2

    Handling Windows Messages

    Use the PostMessage function.
    That's it
    The more complex a system is, the smaller the bugs get; the smaller the bugs are, the more often they appear.

  3. #3

    Handling Windows Messages

    thanks it worked just fine

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •