msdorsey
April 22nd, 1999, 02:43 PM
I have gotten a pointer to a window through CWnd::FindWindow(). How can I receive messages that are sent to that window if I have a pointer to it?
Mike Dorsey
Mike Dorsey
|
Click to See Complete Forum and Search --> : Recieving other windows' messages... msdorsey April 22nd, 1999, 02:43 PM I have gotten a pointer to a window through CWnd::FindWindow(). How can I receive messages that are sent to that window if I have a pointer to it? Mike Dorsey Paul McKenzie April 22nd, 1999, 04:59 PM Check out topics dealing with "window subclassing". This is exactly what you need to do to accomplish your goal. In a nutshell, you are replacing the new window's procedure with your own window procedure. You track the messages within your own procedure, and when done, call the original window procedure that you replaced. Regards, Paul McKenzie codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |