CWnd::OnQueryOpen
Visual Studio 2010
The framework calls this member function when the CWnd object is minimized and the user requests that the CWnd be restored to its preminimized size and position.
afx_msg BOOL OnQueryOpen( );