메뉴 건너뛰기

OBG

Programming

API/MFC
2013.07.18 17:04

CPaneDialog 초기화 (OnInitDialog)

MoA
조회 수 1080 추천 수 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. Video Preview and Frames Capture

  3. MFC TIP

  4. 이미지공학(IE) 연구실

  5. CString class

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

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

  8. High-speed Charting Control

  9. DLL 이란

  10. extern "C" 에 관하여

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

  12. InvalidateRect 함수, flag성 메세지

  13. UpdateWindow 함수에 대하여..

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

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

  16. CPaneDialog 초기화 (OnInitDialog)

  17. CDockablePane 버튼 비활성화 문제

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

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

  20. CPaneDialog의 context menu 안뜨게 하기

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

Board Pagination Prev 1 ... 6 7 8 9 10 11 12 13 14 ... 15 Next
/ 15
위로