既然窗口已经被销毁了,那么怎么还可以接受WM_NCDESTROY并执行PostNcDestroy函数?感觉不可能啊

解决方案 »

  1.   

    The WM_NCDESTROY message informs a window that its nonclient area is being destroyed. The DestroyWindow function sends the WM_NCDESTROY message to the window following the WM_DESTROY message. WM_DESTROY is used to free the allocated memory object associated with the window.
      

  2.   

    消息循环还是存在的,因为它还没有收到WM_QUIT消息,它就会一直处理其他消息下去直到收到WM_QUIT.