로그인

검색

API/MFC
2013.07.18 17:04

CPaneDialog 초기화 (OnInitDialog)

MoA
조회 수 4281 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄

http://social.msdn.microsoft.com/Forums/en-US/d213a9cf-726e-4f31-9d03-050d1ac1c51d/cpanedialog-doesnt-call-handleinitdialog

http://blog.naver.com/PostView.nhn?blogId=youkgc&logNo=150082929746

 

CPaneDialog 클래스에는 OnInitDialog 가상 함수가 없기 때문에 WM_INITDIALOG 메시지를 이용한다.

 

// 헤더
virtual BOOL OnInitDialog();
afx_msg LRESULT HandleInitDialog(WPARAM, LPARAM);

// 소스
BEGIN_MESSAGE_MAP(Class, CPaneDialog)
    ...
    ON_MESSAGE(WM_INITDIALOG, HandleInitDialog)
END_MESSAGEMAP()

BOOL Class::OnInitDialog()
{
    UpdateData(FALSE);

    return TRUE;
}

LRESULT Class::HandleInitDialog(WPARAM wParam, LPARAM lParam)
{
    OnInitDialog();

    return CPaneDialog::HandleInitDialog(wParam, lParam);
}

?

  1. Programming 게시판 관련

  2. Visual C++ 시리얼 통신(RS-232) 강좌 (1)

  3. High-speed Charting Control

  4. DLL 이란

  5. extern "C" 에 관하여

  6. UpdateData(TRUE) or UpdateData(FALSE) 구분

  7. InvalidateRect 함수, flag성 메세지

  8. UpdateWindow 함수에 대하여..

  9. 다이얼로그 resize 시 child control의 그래픽 깨짐 해결

  10. Property Sheet의 버튼 속성 변경하기

  11. CPaneDialog 초기화 (OnInitDialog)

  12. CDockablePane 버튼 비활성화 문제

  13. CDockablePane 배경화면 회색으로 변경

  14. What to use instead of “addPreferencesFromResource” in a PreferenceActivity?

  15. CPaneDialog의 context menu 안뜨게 하기

  16. 리스트 컨트롤 클릭 이벤트

  17. Which Font is the default for MFC Dialog Controls

  18. 시스템 분석을 위한 쉘 명령어

  19. logcat 사용법

  20. 리스트뷰에 체크박스 추가 예제

  21. PackageBroadcastReceiver 구현

Board Pagination Prev 1 ... 8 9 10 11 12 13 14 15 16 17 Next
/ 17