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