#pragma once typedef struct _AMADDIN_MSG { CString strAddInMsgFlag; CString strAddInMsgParam; CString strAddInMsg; } AMADDIN_MSG; typedef CArray CAddinMsgArray; // CMBAddInPro command target class CMBAMWnd; class CMBAddInPro : public CObject { public: CMBAddInPro(); virtual ~CMBAddInPro(); // Attributes public: CObList m_listSTKCAddIn; CObList m_listSTKCAddInObj; CObList m_listSTKVAddIn; CObList m_listSTKSVAddIn; private: CMBAMWnd *m_pMBAMWnd; CString m_strAddinDir; CString m_strLginInfoParam; BOOL m_bLoadedAddIn; CAddinMsgArray m_arAddinMsg; // Operations public: void SetAMWndPtr( CMBAMWnd *pMBAMWnd ); void CleanOwner( ); void InitData( CString strAddinDir ); void CleanData( ); void Logined( CString strParamXml ); void LayOut( ); // ±»Ìß³ö£¨»òÖØÐµÇ¼£© void OffLine( ); CMBCAddInItem* GetMBCAddInItem( CString strAddInFlag ); CMBVAddInItem* GetMBVAddInItem( CString strAddInFlag ); CMBVAddInItem* GetSTKSVAddInItem( CString strAddInFlag ); CMBAddInObj* GetSTKCAddInObj( CString strAddInFlag ); void GetMBAddInItem(UINT nShowType, CObList &listSTKCAddIn); BOOL AMSubAddInMsgReceive( CString strAddInMsgFlag, ISTKMessage *pMsg ); CString GetLoginInfo(){return m_strLginInfoParam;}; void LoadServerAddInData( CString strAddinDir ); BOOL ParseServerAddmIn(CString strFile); void DealLoginAddinMsg(); int GetVAddInCount(); private: void LoginedCmd( CString strParamXml ); void LayOutCmd( ); void CmdReceive( CString strParamXml ); BOOL ParseSTKAddmIn(CString strFile); };