Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. PostMessage is not received.

PostMessage is not received.

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studiodata-structureshelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mathias S
    wrote on last edited by
    #1

    I need some tips on how to find out why this is happening. I got a workerthread. And when it has added an item to an queue, I post a message to mainframe. (the message has been created with ::RegisterWindowMessage(...) ) using PostMessage( hWndMainFram, MY_MESSAGEID , 0 , 0 ); And in CMainFrame::PreTranslateMessage(...) I trap the message and I pick up the item from the queue, This all work very well. Except in one situation. If the user are in a menu. If an menu is shown at the same time the postmessage are sent from the workerthread, The message is never recieved in CMainFrame::PreTranslateMessage(...) Anyone got any ide on how to fix it. - Mathias S.

    N 1 Reply Last reply
    0
    • M Mathias S

      I need some tips on how to find out why this is happening. I got a workerthread. And when it has added an item to an queue, I post a message to mainframe. (the message has been created with ::RegisterWindowMessage(...) ) using PostMessage( hWndMainFram, MY_MESSAGEID , 0 , 0 ); And in CMainFrame::PreTranslateMessage(...) I trap the message and I pick up the item from the queue, This all work very well. Except in one situation. If the user are in a menu. If an menu is shown at the same time the postmessage are sent from the workerthread, The message is never recieved in CMainFrame::PreTranslateMessage(...) Anyone got any ide on how to fix it. - Mathias S.

      N Offline
      N Offline
      Nitheesh George
      wrote on last edited by
      #2

      Hi Mathias, I dont know am i correct or not. But this link may help you. http://support.microsoft.com/kb/126874[^] thanks. Nitheesh

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups