본문 바로가기

Windows/MFC

다이얼로그 띄우기

[code]Private :
//해당 클래스명 맴버변수명
CMsgDlg m_dMsgDlg;

if (m_dDlg.DoModal() == IDOK)
{
    // The user checked OK, display the message the
    // user typed in on the message dialog
    m_sResult = m_dDlg.m_sMessage;
    // Update the dialog
    UpdateData(FALSE);
    // Enable the Which Option button
    //m_cWhichOption.EnableWindow(TRUE);
}[/code]

'Windows > MFC' 카테고리의 다른 글

Font list 보기 폰트리스트  (0) 2013.10.02
오른쪽 클릭 메뉴  (0) 2013.10.02
공통 다이얼로그 함수  (0) 2013.10.02
열기창 CFileDialog  (0) 2013.10.02
한줄씩 파일 읽기  (0) 2013.10.02