MFC CShellManager
我可以在Acad 2010中这样做吗?这似乎很有效..virtual AcRx::AppRetCode On_kInitAppMsg (void *pkt) {
// TODO: Load dependencies here
// You *must* call On_kInitAppMsg here
AcRx::AppRetCode retCode =AcRxArxApp::On_kInitAppMsg (pkt) ;
// TODO: Add your initialization code here
CWinAppEx *capp = static_cast(acedGetAcadWinApp()); ///GetShellManager();
}
return (retCode) ;
}
**** Hidden Message ***** 我会使用DYNAMIC_DOWNCAST并验证投射是否成功。 唉,它失败了,CMFCShellTreeCtrl和CMFCShellListCtr似乎都需要调用CWinAppEx::InitShellManager,否则它们将无法创建
页:
[1]