Files
2026-03-03 13:56:44 +08:00

64 lines
1.2 KiB
C++

#ifndef GAME_DLG_CUSTOM_RULE_HEAD_FILE
#define GAME_DLG_CUSTOM_RULE_HEAD_FILE
#pragma once
#include "Stdafx.h"
//////////////////////////////////////////////////////////////////////////////////
//配置结构
struct tagCustomRule
{
bool bAutoBuildCard; //自动配置;
WORD wTimeOut; //超时时间;
WORD wSendCardTime; //发牌时间;
WORD wCompareCardTime; //比牌时间;
};
//////////////////////////////////////////////////////////////////////////////////
//配置窗口
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