setwindowlong api
GWL_WNDPROC
GWL_WNDPROC Sets a new address for the window procedure.
Windows NT/2000/XP: You cannot change this attribute if the window does not belong to the same process as the calling thread.
总有爱已经回答了你的问题。
LONG SetWindowLong(
HWND hWnd, // handle of window
int nIndex, // offset of value to set
LONG dwNewLong // new value
);
GWL_WNDPROC Sets a new address for the window procedure.
遇到这种类似的问题先baidu,google。