请帮忙讨论一下,WM_DESTROY消息是在什么时候产生的?

解决方案 »

  1.   

    The WM_DESTROY message is sent when a window is being destroyed. It is sent to the window procedure of the window being destroyed after the window is removed from the screen. This message is sent first to the window being destroyed and then to the child windows (if any) as they are destroyed. During the processing of the message, it can be assumed that all child windows still exist. 
      

  2.   

    窗口关闭时,比WM_CLOSE接受到的消息多,包括右上角关闭按钮消息

      

  3.   

    当按下close消息时,发关WM_CLOSE消息,但程序不处理它。而是交给DefWindowProc处理,它收到
    close消息后,调用DestroyWindow()把窗口清掉,DestroyWindow本身发送WM_DESTROY.
      

  4.   

    zswzwy(←圣骑士!帕迪拉斯) 说的对!