<pre> void CDlgEstimateTime::OnBnClickedMaximize() { if (m_bMinMax == false) { ShowWindow(SW_MAXIMIZE); m_bMinMax = true; } else { this->SetWindowPos(this, 0, 0, m_nWidthInitial, m_nHightInitial, SWP_NOREPOSITION | SWP_NOCOPYBITS | SWP_NOZORDER | SWP_SHOWWINDOW); CenterWindow(); m_bMinMax = false; } }
ShowWindow( SW_NORMAL );
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)