[MFC] CMFCOcolBar 툴 버튼을 끌 수 없는 문제
증세
처리하다.
구성원 함수 중 계승
CWinApp
또는 CWinAppEx
의InitInstance()
의 머리AfxOleInit();
, 상속ExitInstance()
의 구성원 함수에 삽입AfxOleTerm();
삽입대응 예
BOOL CMFCApp::InitInstance() {
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
+ AfxOleInit();
CWinAppEx::InitInstance();
int CMFCApp::ExitInstance() {
+ AfxOleTerm();
return CWinAppEx::ExitInstance();
}
참고 자료Feature Pack 2008 - Customise toolbars problem (2021-11-25)
Reference
이 문제에 관하여([MFC] CMFCOcolBar 툴 버튼을 끌 수 없는 문제), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/inonote/items/6e0dc24d015e14f468cc텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)