qqchatwnd.h
来自「经典的QQ聊天源程序代码,有很大的参考价值」· C头文件 代码 · 共 41 行
H
41 行
// QQChatWnd.h: interface for the CQQChatWnd class.
#if !defined(QQCHATWND_H)
#define QQCHATWND_H
#include <windows.h>
#define MSG_CHAT_MODE 1
#define P2P_CHAT_MODE 2
class CQQChatWnd
{
public:
bool Chat( void );
bool AddChatText(char *lpstrText);
bool SetChatText( char * lpstrText );
bool GetChatText(char **lplpstrText/*out*/) ;
bool ChangeSysMode( int nSysMode );
int GetSysMode( void );
bool Detach( HWND hChatWnd);
bool Attatch(HWND hChatWnd);
public:
CQQChatWnd();
virtual ~CQQChatWnd();
private:
static BOOL CALLBACK SearchSysModeEnumProc(HWND hwnd, LPARAM lParam);
static BOOL CALLBACK SearchSendButtonEnumProc(HWND hwnd, LPARAM lParam);
static BOOL CALLBACK SearchRichEditEnumProc( HWND hwnd , LPARAM lParam );
bool GetChatRichEditWnd( HWND *pChatRichEditWnd /*in,out*/);
bool GetChatToolbarWnd( HWND *pChatToolbarWnd /*in,out*/);
bool GetSendButtonWnd( HWND *pSendButtonWnd /*in,out*/);
bool GetModeWnd( HWND *pModeWnd /*in,out*/);
int m_nSysMode;
HWND m_hChatWnd;
HWND m_hSendButtonWnd;
HWND m_hModeWnd;
HWND m_hChatRichEditWnd;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?