본문 바로가기

Programming/MFC

MessgeBox 졸료하기

// 먼저 메세지 박스를 만든다.

MessageBox(_T("TEST"), _T("Error")) ;

 

// 메세지 박스의 핸들을 얻오온다.

HWND hMsgBox = NULL ;

hMsgBox = ::FindWindow(_T("#32770"), _T("Error") ) ;

 

// 메세지 박스를 종료한다.

::EndDialog( hMsgBox, IDOK ) ;