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. Custom Window Messages

Custom Window Messages

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 4 Posters 1 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.
  • X Offline
    X Offline
    x87Bliss
    wrote on last edited by
    #1

    how can you make an app be able to send and recieve custom window messages between the windows (or even between two applications assuming you have the appropriate window handle) Can you just use a integer in the Message parameter that isn't already used? If so, what are the ranges of unused window message values? Or do you have to do special code to "register" or w/e the custom window message? Thanks

    M R 2 Replies Last reply
    0
    • X x87Bliss

      how can you make an app be able to send and recieve custom window messages between the windows (or even between two applications assuming you have the appropriate window handle) Can you just use a integer in the Message parameter that isn't already used? If so, what are the ranges of unused window message values? Or do you have to do special code to "register" or w/e the custom window message? Thanks

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

      See here: WM_APP Notification[^] You'll probably want to use RegisterWindowMessage() to get a system-unique message ID if posting between separate processes. Mark

      "Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")

      P 1 Reply Last reply
      0
      • M Mark Salsbery

        See here: WM_APP Notification[^] You'll probably want to use RegisterWindowMessage() to get a system-unique message ID if posting between separate processes. Mark

        "Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")

        P Offline
        P Offline
        ppp001
        wrote on last edited by
        #3

        Is custom window messages supported in Window Vista also ? Or any changes in it ?

        M 1 Reply Last reply
        0
        • P ppp001

          Is custom window messages supported in Window Vista also ? Or any changes in it ?

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

          I sure hope so! Otherwise, alot of software will need to be rewritten :)

          "Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")

          1 Reply Last reply
          0
          • X x87Bliss

            how can you make an app be able to send and recieve custom window messages between the windows (or even between two applications assuming you have the appropriate window handle) Can you just use a integer in the Message parameter that isn't already used? If so, what are the ranges of unused window message values? Or do you have to do special code to "register" or w/e the custom window message? Thanks

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

            Have a look at this[^] article. It describes exactly what you should and why you should do it that way.


            "It's supposed to be hard, otherwise anybody could do it!" - selfquote
            "High speed never compensates for wrong direction!" - unknown

            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