使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 0408576e9da10015ffa9da0079b8c985113ce4b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#pragma once
 
typedef struct _AMADDIN_MSG
{
    CString        strAddInMsgFlag;
    CString        strAddInMsgParam;
    CString        strAddInMsg;
} AMADDIN_MSG;
typedef CArray<AMADDIN_MSG, AMADDIN_MSG &>    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);
};