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. Windows Message Handling

Windows Message Handling

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
4 Posts 3 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.
  • C Offline
    C Offline
    Chibi Maruko S
    wrote on last edited by
    #1

    One of the thread in my application has consumed some windows messages which are aimed to my controls (my own defined control). Can anyone give me a suggestion what I should do to solve the problem?

    R 1 Reply Last reply
    0
    • C Chibi Maruko S

      One of the thread in my application has consumed some windows messages which are aimed to my controls (my own defined control). Can anyone give me a suggestion what I should do to solve the problem?

      R Offline
      R Offline
      Roger Stoltz
      wrote on last edited by
      #2

      What kind of messages would that be? User defined such as "WM_USER + X" or "WM_APP + 1"? If so: read this article[^] by Joe Newcomer. Hope this helps -- Roger


      "It's supposed to be hard, otherwise anybody could do it!" - selfquote

      C 1 Reply Last reply
      0
      • R Roger Stoltz

        What kind of messages would that be? User defined such as "WM_USER + X" or "WM_APP + 1"? If so: read this article[^] by Joe Newcomer. Hope this helps -- Roger


        "It's supposed to be hard, otherwise anybody could do it!" - selfquote

        C Offline
        C Offline
        Chibi Maruko S
        wrote on last edited by
        #3

        Thanks Roger. I would read the article. It is the standard keydown message. I select an item in my list control, then pressed the arrow key up or down, nothing happened in the list control, the selected item has not been changed. I used Spy++ to check and found out that the list control has never recied the key up och down message. The thread which holds the dialog window has recieved the messages, it seems that the thread has consumed the message and never send it to the control. I just wonder why and how I can solve the problem. BR /Chibi

        M 1 Reply Last reply
        0
        • C Chibi Maruko S

          Thanks Roger. I would read the article. It is the standard keydown message. I select an item in my list control, then pressed the arrow key up or down, nothing happened in the list control, the selected item has not been changed. I used Spy++ to check and found out that the list control has never recied the key up och down message. The thread which holds the dialog window has recieved the messages, it seems that the thread has consumed the message and never send it to the control. I just wonder why and how I can solve the problem. BR /Chibi

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          What does your thread's message loop look like?

          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