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. register window message

register window message

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

    i registed my message on DlgMain WM_PK_MESSAGE by RegisterWindowMessage and i have a DLL..have InjectDLL Function callback to a wndproc i want my DLL get WM_PK_MESSAGE.. can you have some ideas for me ;) tk so much

    X 1 Reply Last reply
    0
    • S so0_lanhlung2

      i registed my message on DlgMain WM_PK_MESSAGE by RegisterWindowMessage and i have a DLL..have InjectDLL Function callback to a wndproc i want my DLL get WM_PK_MESSAGE.. can you have some ideas for me ;) tk so much

      X Offline
      X Offline
      xrg_soft 163 com
      wrote on last edited by
      #2

      Hi, In each process you using the registered message, you should first call WM_PK_MESSAGE = RegisterWindowMessage and then you can use the WM_PK_MESSAGE.

      S 1 Reply Last reply
      0
      • X xrg_soft 163 com

        Hi, In each process you using the registered message, you should first call WM_PK_MESSAGE = RegisterWindowMessage and then you can use the WM_PK_MESSAGE.

        S Offline
        S Offline
        softwaremonkey
        wrote on last edited by
        #3

        You also need to use the ON_REGISTERED_MESSAGE macro instead of the normal ON_MESSAGE e.g.

        // In message map
        BEGIN_MESSAGE_MAP(CMyWnd, CWnd)
        ON_REGISTERED_MESSAGE(m_nRegMsg, OnRegisteredMessage)
        END_MESSAGE_MAP()

        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