ChatControls.h
上传用户:maryhy001
上传日期:2007-05-02
资源大小:2317k
文件大小:2k
- #ifndef _CHATCONTROLS_H
- #define _CHATCONTROLS_H
- #include "resource.h"
- #include "GfxOutBarCtrl.h"
- //CChatRichEditCtrl class.
- class CChatRichEditCtrl : public CRichEditCtrl
- {
- DECLARE_DYNCREATE(CChatRichEditCtrl)
- public:
- CChatRichEditCtrl();
- ~CChatRichEditCtrl();
- BOOL Setlogfile(LPCSTR lpszLogfile);
- void AppendText(LPCSTR lpszToOrFrm, LPCSTR lpszUserName, LPCSTR lpszContents);
- BOOL SaveToFile(LPCSTR lpszFilename, const BOOL bOverwrite);
- static DWORD CALLBACK StreamOutCallback(DWORD dwCookie,
- LPBYTE pbBuff,
- LONG cb, LONG *pcb);
- // Implementation
- protected:
-
- // Generated message map functions
- //{{AFX_MSG(CChatRichEditCtrl)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- protected:
- void WriteLog(LPCSTR lpszloginfo, UINT uncount);
- protected:
- CFont m_guifont;
- HANDLE m_hlogfile;
- };
- //CChatInputEdit class.
- #define UWM_CHARINPUTOVER WM_APP + 355
- class CChatInputEdit : public CEdit
- {
- DECLARE_DYNCREATE(CChatInputEdit)
- public:
- CChatInputEdit();
- ~CChatInputEdit();
- public:
- virtual BOOL PreTranslateMessage(MSG* pMsg);
-
- // Implementation
- protected:
-
- // Generated message map functions
- //{{AFX_MSG(CChatInputEdit)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
-
- private:
- CFont m_guifont;
- };
- //CChatGfxOutBarCtrl class.
- class CChatGfxOutBarCtrl : public CGfxOutBarCtrl
- {
- public:
- CChatGfxOutBarCtrl();
- ~CChatGfxOutBarCtrl();
- BOOL ExistsAgent(const int nFolderIndex, const int nAgentId, int &nItemIndex);
- BOOL GetImageIndex(WORD wHeadportraitIndex, int &nNormalImageIndex, int &nDisableImageIndex);
-
- // Generated message map functions
- protected:
- //{{AFX_MSG(CChatPanelBar)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- //}}AFX_MSG
-
- DECLARE_MESSAGE_MAP()
-
- protected:
- CImageList m_imaLarge;
- CImageList m_imaSmall;
- int m_nImageManCount,
- m_nImageWomanCount;
- };
- #endif //!_CHATCONTROLS_H