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. ON_MESSAGE & ON_THREAD_MESSAGE

ON_MESSAGE & ON_THREAD_MESSAGE

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 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.
  • T Offline
    T Offline
    thenewbee
    wrote on last edited by
    #1

    Hello All, Is there any diff between these 2 ON_MESSAGE & ON_THREAD_MESSAGE. Both does the same thing & both works for my thread appln. can any 1 plz tell me the diff of 2 & when 2 use them ?? Thanks in Advance Vivek

    K 1 Reply Last reply
    0
    • T thenewbee

      Hello All, Is there any diff between these 2 ON_MESSAGE & ON_THREAD_MESSAGE. Both does the same thing & both works for my thread appln. can any 1 plz tell me the diff of 2 & when 2 use them ?? Thanks in Advance Vivek

      K Offline
      K Offline
      KarstenK
      wrote on last edited by
      #2

      ON_MESSAGE: Message in one thread, sended with PostMessage ON_THREAD_MESSAGE: Message in different threads, sended with PostThreadMessage Read the fine MSDN about it.

      Greetings from Germany

      T 1 Reply Last reply
      0
      • K KarstenK

        ON_MESSAGE: Message in one thread, sended with PostMessage ON_THREAD_MESSAGE: Message in different threads, sended with PostThreadMessage Read the fine MSDN about it.

        Greetings from Germany

        T Offline
        T Offline
        thenewbee
        wrote on last edited by
        #3

        MSDN says ON_THREAD_MESSAGE must be used instead of ON_MESSAGE when you have a CWinThread clas Is this the only 1 difference

        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