initset.h

来自「用c++ 开发的中国象棋」· C头文件 代码 · 共 75 行

H
75
字号
#if !defined(AFX_INITSET_H__CED8AED6_5D1A_4B9F_BE0B_AC76C9B40CC6__INCLUDED_)
#define AFX_INITSET_H__CED8AED6_5D1A_4B9F_BE0B_AC76C9B40CC6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// InitSet.h : header file
//
//#include "MySock.h"
/////////////////////////////////////////////////////////////////////////////
// CInitSet dialog
#include "MyButton.h"

class CInitSet : public CDialog
{
private:
	CRect rectLarge;
    CRect rectSmall;
	int m_nFace;
	CBrush m_Brush[4];

// Construction
public:
	CInitSet(CWnd* pParent = NULL);   // standard constructor
	int iGameType;
	BOOL bIsCreateGame;
	CString m_strIP;
// Dialog Data
	//{{AFX_DATA(CInitSet)
	enum { IDD = IDD_DIALOG_INITSET };
	CMyButton	m_BtnCancle;
	CMyButton	m_BtnSure;
	CIPAddressCtrl	m_IPAddress;
	CStatic	m_Face;
	CScrollBar	m_Scroll;
	CString	m_PlayerName;
	UINT	m_Port;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CInitSet)
	public:
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
	virtual CScrollBar* GetScrollBarCtrl(int nBar) const;
	virtual void OnSetFont(CFont* pFont);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CInitSet)
	afx_msg void OnRadioNetbattle();
	afx_msg void OnRadioMantomachine();
	afx_msg void OnRadioCreate();
	afx_msg void OnRadioJoin();
	virtual BOOL OnInitDialog();
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnRadioJoinplayroom();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_INITSET_H__CED8AED6_5D1A_4B9F_BE0B_AC76C9B40CC6__INCLUDED_)

⌨️ 快捷键说明

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