void CMyErrorLookupDlg::OnCheck() { //1.remember to UpdateData //2.Ignore the the x and y parameters using SWP_NOMOVE //3.Ignore the cx and cy parameters using SWP_NOSIZE //4.Make the current window showing using SWP_SHOWWINDOW UpdateData();
if(m_bIsChecked) SetWindowPos(&wndTopMost,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE|SWP_SHOWWINDOW); else SetWindowPos(&wndNoTopMost,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE|SWP_SHOWWINDOW);
UpdateData(FALSE); }