使用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
 
#pragma once
 
#include "MBReadMsgItem.h"
class CMBReadMsgPro : public CObject  
{
public:
    CMBReadMsgPro();
    virtual ~CMBReadMsgPro();
 
// Attributes
public:
    void                    *m_pOwner;
    CList<CMBReadMsgItem*, CMBReadMsgItem*>    m_listSTKReadMsg;
    CMapStringToString      m_mapStkOpenedMsg;
 
// Operations
public:    
    void        CleanData( );
 
    BOOL        AMReadMsg( CString strMsgID, long nTrID, CString strSender,HWND hWnd = NULL);
    BOOL        AMMsgReceive( ISTKMessage *pMsg );
    BOOL        ReReadMsg( CString strMsgID, long nTrID, long nErrorCode, CString strSender );
    void        OnTimerReadMsg( );
    void        AddOpenedMsg( CString strMsgID, CString strLogin );
    void        RemoveOpenedMsg( CString strMsgID );
    BOOL        IsMsgOpened( CString strMsgID );
    CString        GetReadMsgID( long nTrID,CString &strLogin );
    CString        GetReadMsgIDAndWnd( long nTrID,HWND &hWnd );
    HWND        GetReadMsgIDAndWnd( CString strMsgID );
    POSITION    FindReadMsg( CString strMsgID );
    BOOL        RemoveReadMsg( CString strMsgID );
private:    
    void        AddReadMsg( CString strMsgID, long nTrID, CString strSender ,HWND hWnd= NULL);
    void        ReadMessage( CString strMsgID, CString strSender, long &nTrID );
};