메뉴 건너뛰기

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. Visual C++ 시리얼 통신(RS-232) 강좌 (2)

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

  4. DLL 이란

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

  6. InvalidateRect 함수, flag성 메세지

  7. UpdateWindow 함수에 대하여..

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

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

  10. CPaneDialog 초기화 (OnInitDialog)

  11. CDockablePane 버튼 비활성화 문제

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

  13. CPaneDialog의 context menu 안뜨게 하기

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

  15. Which Font is the default for MFC Dialog Controls

  16. 세마포어를 이용한 생산/소비자

  17. stdafx.h 사용 (미리 컴파일된 헤더)

  18. 윈도우 프로그램의 종료 메시지 순서

  19. Deploying a Visual C++ Application (배포 방법)

  20. MFC 클래스간 통신

  21. 모달리스 대화상자

Board Pagination Prev 1 ... 2 3 ... 4 Next
/ 4
위로