SetWindowPos 窗口置顶与不置顶

if(m_ckTop.GetCheck())
::SetWindowPos(AfxGetApp()->m_pMainWnd->m_hWnd,HWND_TOPMOST,0,0,0,0,SWP_SHOWWINDOW|SWP_NOMOVE|SWP_NOSIZE);
    else
::SetWindowPos(AfxGetMainWnd()->m_hWnd,HWND_NOTOPMOST,0,0,0,0,SWP_SHOWWINDOW|SWP_NOMOVE|SWP_NOSIZE);

posted @ 2014-07-17 16:46  hanks  阅读(590)  评论(0)    收藏  举报