C++/(MFC)CWnd를 Top Most로 만들기

  1. void ToggleTopMost(CWnd* pWnd) {
  2.     if (pWnd->GetExStyle() & WS_EX_TOPMOST)
  3.         pWnd->SetWindowPos(&wndNoTopMost, 0, 0, 0, 0,
  4.         SWP_NOSIZE | SWP_NOMOVE);
  5.     else
  6.         pWnd->SetWindowPos(&wndTopMost, 0, 0, 0, 0,
  7.         SWP_NOSIZE | SWP_NOMOVE);
  8. }

이 글에는 0 개의 댓글이 있습니다.