57 pClass = pClass->m_pNextClass) 58 { 59 if (lstrcmpA(szClassName, pClass->m_lpszClassName) == 0) 60 { 61 AfxUnlockGlobals(CRIT_RUNTIMECLASSLIST); 62 return pClass; 63 } 64 } 65 } 66 } 67 //动态创建CStudent类的对象 68 pOb = pClassRef->CreateObject(); 69 { 70 pObjec...
CTypedSimpleList<CRuntimeClass*> m_classList; // OLE object factories #ifndef _AFX_NO_OLE_SUPPORT #ifdef _AFXDLL COleObjectFactory* m_pFactoryInit; #endif CTypedSimpleList<COleObjectFactory*> m_factoryList; #endif // number of locked OLE objects long m_nObjectCount; BOOL m_bUserCtrl; /...
_init_CStudent,全局的变量,类型是AFX_CLASSINIT operator>>,全局函数,作用是读取对象 (3)结构的说明 struct AFX_CLASSINIT { AFX_CLASSINIT( CRuntimeClass* pNewClass ) { AfxClassInit( pNewClass ) { //将classCStudent的地址保存到应用程序的链表m_classList中 pModuleState->m_classList.AddHead( p...
· CRuntimeClass* m_pClassInit —— 指向第一个类的 CRuntimeClass 信息的指针(通常是 m_classList的头) · CTypedSimpleList<CRuntimeClass*> m_classList —— 模块里各个对象的 CRuntimeClass 信息链表 · COleObjectFactory* m_pFactoryInit —— 指向第一个 COleObjectFactory对象的指针(通常是 m_f...
CRuntimeClass *CRuntimeClass::Load(CString szClassName) { CRuntimeClass *pClass=NULL; AFX_MODULE_STATE pModuleState=afxGetModuleState(); ASSERT(!pModuleState->m_classList.IsEmpty()); //我加的断言,调试用 for (pClass=pModuleState->m_classList;pClass!=NULL;pClass=pClass->m_pNextClass...
//Runtime class data: #ifdef _AFXDLL CRuntimeClass* m_pClassInit; #endif CTypedSimpleList<CRuntimeClass*> m_classList; // OLE object factories #ifndef _AFX_NO_OLE_SUPPORT #ifdef _AFXDLL COleObjectFactory* m_pFactoryInit; #endif CTypedSimpleList<COleObjectFactory*> m_factoryList; #endif...
//Runtime class data: #ifdef _AFXDLL CRuntimeClass* m_pClassInit; #endif CTypedSimpleList<CRuntimeClass*> m_classList; // OLE object factories #ifndef _AFX_NO_OLE_SUPPORT #ifdef _AFXDLL COleObjectFactory* m_pFactoryInit; #endif CTypedSimpleList<COleObjectFactory*> m_factoryList; #endif...
10、mgClasslist:Messag已t?pe:Fun匚百口仃handlername:OnBnClickedReadimgHandlerdescription:IndicatestineuserdickedabuttonAddandEditCancelBNCLICKEDCAboutElgUi删句柄名设置为OnBnClickedReadimg,主要的响应操作包括弹出对话框选择图片文件、读入图片文件、对图片统一缩放至256*256的大小、显示图像,代码如下:/TODO:Add...
const AFX_CLASSINIT* m_pClassInit; ...// } 其中两个重要函数Store和Load的源代码如下:这两个函数主要写和读a runtime class description,其中包括m_lpszClassName和m_wSchema(版本号); //in arccore.cpp void CRuntimeClass:...
SetGrayDisabledItems Specifies whether the text of the disabled list control is grayed. SetSortColumn Sets the current sorted column and its sort order. Sort Immediately sorts the list control. Public Attributes m_bVisualManagerStyle Specifies whether a control has a Visual Manager style look. Prot...