MAKEWPARAM ???
-
I need my program to send a message which I define. as below: #define WM_MYMSG WM_USER+100; WPARAM wp; wp = MAKEWPARAM((WORD)0x200, (WORD)0x450); ::PostMessage(NULL, WM_MYMEG, wp, 0); I code a .dll to get this message and then to do something. The problem is, in the program, I get the correct wp value, but when I post the message to the .dll file, it get the wrong value. I use hook function to get this message. It get the message but the WPARAM parameter is wrong. Does anyone could give me some suggestion ? Thanks a lot. :confused:
-
I need my program to send a message which I define. as below: #define WM_MYMSG WM_USER+100; WPARAM wp; wp = MAKEWPARAM((WORD)0x200, (WORD)0x450); ::PostMessage(NULL, WM_MYMEG, wp, 0); I code a .dll to get this message and then to do something. The problem is, in the program, I get the correct wp value, but when I post the message to the .dll file, it get the wrong value. I use hook function to get this message. It get the message but the WPARAM parameter is wrong. Does anyone could give me some suggestion ? Thanks a lot. :confused: