用WH_GETMESSAGE类型的钩子能够拦截到 窗口的 最大化、最小化、大小改变 的消息吗?
如果能的化怎么样在钩子函数中进行判断?
如果不能应当怎么做?

解决方案 »

  1.   

    The CBTProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The system calls this function before activating, creating, destroying, minimizing, maximizing, moving, or sizing a window; before completing a system command; before removing a mouse or keyboard event from the system message queue; before setting the keyboard focus; or before synchronizing with the system message queue. A computer-based training (CBT) application uses this hook procedure to receive useful notifications from the system.因此你应该拦截WH_CBT消息。
      

  2.   

    http://www.langchaosoft.com.cn/delphi/Windows-API/data3126039.html