#pragma once #include "MBSelOrgList.h" // CMBOrgUIBaseFun command target class AFX_EXT_CLASS CMBOrgUIBaseFun : public CObject { public: CMBOrgUIBaseFun(); virtual ~CMBOrgUIBaseFun(); public: static SStringW GetContactMiddleSkin( int nType, int nSex); static SStringW GetContactMiddleFile( int nSex ) ; static SStringW GetCrowdMiddleFile( ); static CString GetDateTimeString( CString strParam ); static int ComponentValue(const TCHAR* aColorSpec, int aLen, int color, int dpc); static BOOL HexToRGB( const CString& strColor, COLORREF* pColor); static BOOL IsFileValid( LPCTSTR strPath); static int GetStringLen(CString strText); static CString GetRelSubject( CString strSubject, long nMaxLen ); static int FindStrNoCaseInArray( CString strData, CStringArray &asData ); static void SetUserPictureFixSize(CString strSaveDir, CString strImagePath, CString strID, CString &strMImgPath, CString &strLImgPath); static BOOL CreateDirectoryFullPath( CString strFilePath) ; static BOOL ShowSelectOrgItemWnd(CMBServerMgr *pMBServerMgr, CMBRecentContact *pMBRecentContact, CString strTitle,CMBSelOrgList *pListSelOrg) ;//,bool bMultiSelect,int nSelectStyle };