API/MFC

UpdateDialogControls

by MoA posted Sep 05, 2013
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

http://pidiszero.tistory.com/60


요약


1. PreTranslateMessage 추가


2. UpdateDialogControls( this, TRUE ); 추가


BOOL CDialogBoxDlg::PreTranslateMessage( MSG* pMsg )
{
    UpdateDialogControls( this, TRUE );
    return CDialogEx::PreTranslateMessage( pMsg );
}


3. 함수 선언


afx_msg void OnUpdateStart( CCmdUI *pCmdUI );


4. 메세지 맵 정의


ON_UPDATE_COMMAND_UI(IDC_START, &CDialogBoxDlg::OnUpdateStart)


5. 함수 정의


void CDialogBoxDlg::OnUpdateStart( CCmdUI *pCmdUI )
{
    pCmdUI->SetText( _T("시작") );
}