Подскажите ктонибудь, как обработать сообщения предназначенные для другого окна, например к desktop..
к примеру wm_mousemove
Здравствуйте, heeelp, Вы писали:
H>Подскажите ктонибудь, как обработать сообщения предназначенные для другого окна, например к desktop..
H>к примеру wm_mousemove
Вот что говорит MSDN:
[msdn]
CWnd::SubclassWindow
BOOL SubclassWindow( HWND hWnd );
Return Value
Nonzero if the function is successful; otherwise 0.
Parameters
hWnd
A handle to the window.
Remarks
Call this member function to "dynamically subclass" a window and attach it to this
CWnd object. When a window is dynamically subclassed, windows messages will route through the
CWnd’s message map and call message handlers in the
CWnd’s class first. Messages that are passed to the base class will be passed to the default message handler in the window.
This member function attaches the Windows control to a
CWnd object and replaces the window’s
WndProc and
AfxWndProc functions. The function stores a pointer to the old
WndProc in the
CWnd object.
[/msdn]
... << RSDN@Home 1.1.0 stable >>