mainfrm.h

来自「基于winsock的聊天程序」· C头文件 代码 · 共 70 行

H
70
字号
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__9B235E2A_8FE7_4A16_8EF0_F3F90ABBD6AE__INCLUDED_)
#define AFX_MAINFRM_H__9B235E2A_8FE7_4A16_8EF0_F3F90ABBD6AE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define WM_ADDLIST		  WM_USER + 1001
#define WM_DELETELIST     WM_USER+1002
#define WM_DBCLICKITEM    WM_USER + 1003
#include "OnLine.h"

class CMainFrame : public CFrameWnd
{
	
protected: // create from serialization only
	CMainFrame();
	DECLARE_DYNCREATE(CMainFrame)

// Attributes
public:

	CDialogBar  m_wndSend;
	COnLine  m_wndOnline;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	CStatusBar  m_wndStatusBar;
protected:  // control bar embedded members
	
	CToolBar    m_wndToolBar;

// Generated message map functions
protected:
	afx_msg void OnDblClickItem(WPARAM wParam, LPARAM lParam);
	afx_msg OnRemoveMember(WPARAM wParam, LPARAM lParam);
	afx_msg void OnAddMember(WPARAM wParam, LPARAM lParam);
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAINFRM_H__9B235E2A_8FE7_4A16_8EF0_F3F90ABBD6AE__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?