메뉴 건너뛰기

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 게시판 관련

    Date2014.11.01 CategoryTool/etc ByMoA Views1714
    read more
  2. 모달리스 대화상자

    Date2012.08.02 CategoryAPI/MFC ByNaya Views703
    Read More
  3. stdafx.h 사용 (미리 컴파일된 헤더)

    Date2012.08.13 CategoryAPI/MFC ByNaya Views721
    Read More
  4. 메시지 펌프

    Date2011.08.26 CategoryAPI/MFC By너울 Views731
    Read More
  5. MFC, CHM파일 연동 (context help)

    Date2012.04.16 CategoryAPI/MFC By너울 Views737
    Read More
  6. 비베의 MSCOMM.OCX VC++에서 불러쓰기

    Date2013.07.28 CategoryAPI/MFC ByMoA Views748
    Read More
  7. CDockablePane 배경화면 회색으로 변경

    Date2013.07.11 CategoryAPI/MFC ByMoA Views750
    Read More
  8. UpdateDialogControls

    Date2013.09.05 CategoryAPI/MFC ByMoA Views803
    Read More
  9. Serial Communication in MFC

    Date2011.08.25 CategoryAPI/MFC By너울 Views846
    Read More
  10. Windows 10 앱 개발(UWP)

    Date2015.10.13 CategoryAPI/MFC ByMoA Views850
    Read More
  11. MSCOMM32.OCX 등록

    Date2011.10.17 CategoryAPI/MFC By너울 Views899
    Read More
  12. WTL 정리

    Date2013.12.22 CategoryAPI/MFC ByMoA Views947
    Read More
  13. 로그 클래스 및 업데이터

    Date2013.08.30 CategoryAPI/MFC ByMoA Views952
    Read More
  14. MFC Feature Pack: An Introduction

    Date2012.02.08 CategoryAPI/MFC By너울 Views953
    Read More
  15. 다이얼로그 기반에서 메뉴 내용이 갱신 안되는 문제 해결

    Date2014.02.13 CategoryAPI/MFC ByMoA Views955
    Read More
  16. 다이얼로그 resize 시 child control의 그래픽 깨짐 해결

    Date2013.07.25 CategoryAPI/MFC ByMoA Views1053
    Read More
  17. CPaneDialog 초기화 (OnInitDialog)

    Date2013.07.18 CategoryAPI/MFC ByMoA Views1080
    Read More
  18. Thread에서 Dialog의 UpdateData()사용하는 방법

    Date2011.09.26 CategoryAPI/MFC By너울 Views1124
    Read More
  19. MFC 클래스간 통신

    Date2012.08.02 CategoryAPI/MFC ByNaya Views1189
    Read More
  20. 리스트 컨트롤에 체크박스 추가

    Date2013.08.14 CategoryAPI/MFC ByMoA Views1197
    Read More
  21. CDockablePane 버튼 비활성화 문제

    Date2013.07.17 CategoryAPI/MFC ByMoA Views1217
    Read More
Board Pagination Prev 1 ... 2 3 ... 4 Next
/ 4
위로