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. resolve windows message number into plain text name of message?

resolve windows message number into plain text name of message?

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

    Hi In functions like PreTranslateMessage you get a pointer to a MSG structure which includes some UINT message. How can I resolve that number into plaintext (the name of the message) e.x. "WM_KEYDOWN" so that I have an understandable TRACE output? Thanks & Bye, T.T.H.

    S 1 Reply Last reply
    0
    • T T T H

      Hi In functions like PreTranslateMessage you get a pointer to a MSG structure which includes some UINT message. How can I resolve that number into plaintext (the name of the message) e.x. "WM_KEYDOWN" so that I have an understandable TRACE output? Thanks & Bye, T.T.H.

      S Offline
      S Offline
      S Hassan
      wrote on last edited by
      #2

      please refer winuser.h where you can find the numeric values of each windows message example: #define WM_COMMAND 0x0111 #define WM_SYSCOMMAND 0x0112 #define WM_TIMER 0x0113 #define WM_HSCROLL 0x0114 #define WM_VSCROLL 0x0115 #define WM_INITMENU 0x0116 #define WM_INITMENUPOPUP 0x0117 #define WM_MENUSELECT 0x011F #define WM_MENUCHAR 0x0120 #define WM_ENTERIDLE 0x0121

      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