看 MSDN :The WM_SHOWWINDOW message is sent to a window when the window is about to be hidden or shown. A window receives this message through its WindowProc function. LRESULT CALLBACK WindowProc(
  HWND hwnd,       // handle to window
  UINT uMsg,       // WM_SHOWWINDOW
  WPARAM wParam,   // show flag (BOOL)
  LPARAM lParam    // status flag
);
不管是隐藏还是显示,都是发送 WM_SHOWWINDOW 消息! 隐藏/显示 是由后面的一个参数wParam控制!!