wsachatdlg.h
来自「一个漂亮的聊天对话框程序」· C头文件 代码 · 共 78 行
H
78 行
// WSAChatDlg.h : header file
//
#if !defined(AFX_WSACHATDLG_H__2CC785EE_A309_462E_981D_138D769365D7__INCLUDED_)
#define AFX_WSACHATDLG_H__2CC785EE_A309_462E_981D_138D769365D7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define UM_SOCK WM_USER+1
/////////////////////////////////////////////////////////////////////////////
// CWSAChatDlg dialog
class CWSAChatDlg : public CDialog
{
// Construction
public:
BOOL InitSocket();
CWSAChatDlg(CWnd* pParent = NULL); // standard constructor
~CWSAChatDlg();
// Dialog Data
//{{AFX_DATA(CWSAChatDlg)
enum { IDD = IDD_WSACHAT_DIALOG };
CEdit m_editRecv;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWSAChatDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CWSAChatDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBtnSend();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
//}}AFX_MSG
afx_msg void OnSock(WPARAM wParam,LPARAM lParam);
DECLARE_MESSAGE_MAP()
private:
SOCKET m_socket;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WSACHATDLG_H__2CC785EE_A309_462E_981D_138D769365D7__INCLUDED_)
extern "C" __declspec(dllimport)
BOOL
WINAPI
AnimateWindow(
HWND hWnd,
DWORD dwTime,
DWORD dwFlags);
#define AW_HOR_POSITIVE 0x00000001
#define AW_HOR_NEGATIVE 0x00000002
#define AW_VER_POSITIVE 0x00000004
#define AW_VER_NEGATIVE 0x00000008
#define AW_CENTER 0x00000010
#define AW_HIDE 0x00010000
#define AW_ACTIVATE 0x00020000
#define AW_SLIDE 0x00040000
#define AW_BLEND 0x00080000
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?