ChatEditBox.h
上传用户:cydong117
上传日期:2009-11-10
资源大小:638k
文件大小:1k
源码类别:

模拟服务器

开发平台:

Visual C++

  1. /******************************************************************************************************************
  2.                                                                                                                    
  3. 葛碘疙:
  4. 累己磊:
  5. 累己老:
  6. [老磊][荐沥磊] : 荐沥 郴侩
  7.                                                                                                                    
  8. *******************************************************************************************************************/
  9. #ifndef _CHATEDITBOX_H
  10. #define _CHATEDITBOX_H
  11. class CChatEdit
  12. {
  13. //1: Constructor/Destructor
  14. public:
  15. CChatEdit();
  16. ~CChatEdit();
  17. protected:
  18. HWND m_hChatEdit;
  19. HWND m_hMainWindow;
  20. HFONT m_hFontChatEdit;
  21. DWORD m_dwFontColor;
  22. WNDPROC m_WndProcChatEdit;
  23. public:
  24. CHAR m_szInputMsg[MAX_PATH];
  25. __inline HWND GetSafehWnd() { return m_hChatEdit; }
  26. BOOL Create(HINSTANCE hInstance, HWND hWndParent, INT nX, INT nY, INT nXsize, INT nYSize);
  27. BOOL DestroyDialog();
  28. BOOL SetLimitText(INT nLimitText);
  29. __inline VOID SetSelectAll() { SendMessage(m_hChatEdit, EM_SETSEL, 0, (LPARAM)-1); }
  30. public:
  31. //4: Message Map
  32. virtual LRESULT CALLBACK ChatEditProc(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
  33. public:
  34. };
  35. #endif // _CHATEDITBOX