使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 4905e2e7537d507f218e8e9595485e09d9f3a2b4
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
#pragma once
 
 
// m_strName
class CMBFileLogoInfo;
typedef map<CString, CMBFileLogoInfo*> CMBFileLogoInfoMap;
 
typedef map<CString, CMBFileLogoInfo*> CMBFileLogoInfoMap;
/************************************************************************/
/*  ÎļþlogoÐÅÏ¢                                                      */
/************************************************************************/
class AFX_EXT_CLASS CMBFileLogoInfo
{
public:
    CMBFileLogoInfo(void);
    ~CMBFileLogoInfo(void);
public:
    CString        m_strName;    // Ãû³Æ
    CStringArray   m_arFileType; // ÎļþÀàÐÍ
public :
    bool           HasFilType( CString strFileType ); // ÓÐÎļþÀàÐÍ
};
 
 
 
/************************************************************************/
/*  Îļþlogo¹ÜÀíÆ÷                                                      */
/************************************************************************/
class AFX_EXT_CLASS CMBFileLogoMgr
{
public:
    CMBFileLogoMgr(void);
    ~CMBFileLogoMgr(void);
private:
    CMBFileLogoInfoMap m_mapFileLogoInfo;
public:
    CString            m_strSkinPath; //  Æ¤·ô·¾¶ 
private:
    CMBFileLogoInfo *GetFileLogoInfo( CString strName );                   // µÃµ½ÎļþlogoÐÅÏ¢
    CString          GetFileLogoName( CString strFileType );               // µÃµ½ÎļþlogoÃû³Æ
    bool             AddFileLogoInfo( CMBFileLogoInfo *pFileLogoInfo );    // Ìí¼ÓÎļþlogoÐÅÏ¢
    bool             RemoveAllFileLogoInfo();                              // ÒƳýÎļþlogoÐÅÏ¢ 
public:
    SStringT         GetFileLogoBigIcon( CString strFileType );            // µÃµ½´óͼƬ
    SStringT         GetFileLogoSmallIcon( CString strFileType );           // µÃµ½Ð¡Í¼Æ¬
    SStringT         GetFileLogoMiddleIcon( CString strFileType );           // µÃµ½ÖÐͼƬ
    bool             ParseXml(CString  &strErrInfo );  // ½âÎöxmlÎļþÐÅÏ¢
public:
    CMBFileLogoInfoMap * GetFileLogoMap (  ); //»ñÈ¡logoÐÅÏ¢¼¯ºÏ
//
//public:
//    IBitmap *       GetFileLogoSmallIconBitmap( CString strFileType );           // µÃµ½Ð¡Í¼Æ¬Í¼Æ¬¶ÔÏó
//    IBitmap *        GetFileLogoMiddleIconBitmap( CString strFileType );           // µÃµ½ÖÐͼƬͼƬ¶ÔÏó
};