#ifndef GAME_DLG_CUSTOM_RULE_HEAD_FILE #define GAME_DLG_CUSTOM_RULE_HEAD_FILE #pragma once #include "Stdafx.h" ////////////////////////////////////////////////////////////////////////////////// //配置结构 struct tagCustomRule { WORD wTimeOut; //超时时间; WORD wSendCardTime; //发牌时间; WORD wCompareCardTime; //比牌时间; LONG lMinChipScore; //最小可下注; LONG lMaxChipScore; //最大可下注; BYTE cbMaxPlayRound; //最大轮数; BYTE cbMinLookRound; //最小看牌轮数; BYTE cbMinCompareUser; //最小比牌人数; BYTE cbMinCompareRound; //最小比牌轮数; }; ////////////////////////////////////////////////////////////////////////////////// //配置窗口 class CDlgCustomRule : public CDialog { //配置变量 protected: tagCustomRule m_CustomRule; //配置结构 //函数定义 public: //构造函数 CDlgCustomRule(); //析构函数 virtual ~CDlgCustomRule(); //重载函数 protected: //配置函数 virtual BOOL OnInitDialog(); //确定函数 virtual VOID OnOK(); //取消消息 virtual VOID OnCancel(); //功能函数 public: //更新控件 bool FillDataToControl(); //更新数据 bool FillControlToData(); //配置函数 public: //读取配置 bool GetCustomRule(tagCustomRule & CustomRule); //设置配置 bool SetCustomRule(tagCustomRule & CustomRule); DECLARE_MESSAGE_MAP() }; ////////////////////////////////////////////////////////////////////////////////// #endif