How do you trap messages that are sent to a registered window?
Posted on 2003-02-22
I've got a window thats registered with another that sends messages to my window, and I've spied the messages it receives using spyxx, and it says my program's receiving the right messages. Such as:
message: 0x0536 [User-defined:WM_USER+310] wParam:0000023 lParam:0000022
now, how do I get my program to realize its been sent a message? And how do I get the wParam and lParam from it? I've tried using GetMessage and such, and it just halts the program in an endless loop, I probably used it wrong, so ya know, a snippet of code showing how to trap a message wouldn't be a hinderance. =)