본문 바로가기

코드^학습/메모한 지식

[MFC] 다이얼로그 시작과 동시에 윈도우 숨기기

WM_WINDOWPOSCHANGING 메시지를 추가한 다음에 아래와 같이 작성합니다.


void CTestDlg::OnWindowPosChanging(WINDOWPOS* lpwndpos)

{

     lpwndpos->flags &= ~SWP_SHOWWINDOW; // <- 속성에서 윈도우를 hidden으로 설정한다.


     CDialog::OnWindowPosChanging(lpwndpos);

}


[ 출처 : http://eachan.tistory.com/20 ]