로그인

검색

API/MFC
2013.07.18 17:04

CPaneDialog 초기화 (OnInitDialog)

MoA
조회 수 5161 추천 수 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 Views22016
    read more
  2. __cdecl , __pascal, __stdcall

    Date2013.07.28 CategoryAPI/MFC ByMoA Views4356
    Read More
  3. fopen 함수가 Multi Thread 에서 안전한가?

    Date2013.07.28 CategoryC/C++ ByMoA Views4326
    Read More
  4. memset vs for 초기화. 속도 차이가 얼마나 날까?

    Date2013.07.28 CategoryC/C++ ByMoA Views4414
    Read More
  5. unsigned char <-> 유니코드(unicode) 및, string 변환 매크로 - USES_CONVERSION

    Date2013.07.28 CategoryAPI/MFC ByMoA Views5859
    Read More
  6. Redmine 설치

    Date2013.07.28 CategoryTool/etc ByMoA Views4575
    Read More
  7. MFC 클래스 멤버함수 설명서

    Date2013.07.28 CategoryAPI/MFC ByMoA Views5164
    Read More
  8. Direct3D 9 compile

    Date2013.07.28 CategoryGraphic ByMoA Views3615
    Read More
  9. Data Conversions

    Date2013.07.28 CategoryC/C++ ByMoA Views4488
    Read More
  10. 다른 스레드에서 메인다이얼로그 포인터 받아오기 AfxGetMainWnd()

    Date2013.07.28 CategoryAPI/MFC ByMoA Views6370
    Read More
  11. 파일 입출력

    Date2013.07.28 CategoryC/C++ ByMoA Views3752
    Read More
  12. char*, String, CString

    Date2013.07.28 CategoryAPI/MFC ByMoA Views4519
    Read More
  13. CreateThread, ExitThread, GetExitCodeThread ...

    Date2013.07.28 CategoryAPI/MFC ByMoA Views4579
    Read More
  14. Thread와 SendMessage를 통해 DeadLock을 만드는 방법

    Date2013.07.28 CategoryAPI/MFC ByMoA Views6741
    Read More
  15. 작업자 스레드(Worker Thread) 와 사용자 인터페이스 스레드(User Interface Thread)

    Date2013.07.28 CategoryAPI/MFC ByMoA Views4506
    Read More
  16. WaitForSingleObject와의 삽질..

    Date2013.07.28 CategoryAPI/MFC ByMoA Views4883
    Read More
  17. 스레드(CreateThread), EVENT 동기화

    Date2013.07.28 CategoryAPI/MFC ByMoA Views5179
    Read More
  18. 스레드 강좌 + CreateThread() 와 _beginthreadex() 함수의 차이

    Date2013.07.28 CategoryAPI/MFC ByMoA Views4725
    Read More
  19. 비주얼 스튜디오 2005 단축키

    Date2013.07.28 CategoryAPI/MFC ByMoA Views4937
    Read More
  20. VC의 소스 파일, sln파일 관리

    Date2013.07.28 CategoryAPI/MFC ByMoA Views4162
    Read More
  21. 비베의 MSCOMM.OCX VC++에서 불러쓰기

    Date2013.07.28 CategoryAPI/MFC ByMoA Views4798
    Read More
Board Pagination Prev 1 ... 6 7 8 9 10 11 12 13 14 15 ... 17 Next
/ 17