⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 optionsdialog.h

📁 一个人工智能的国际象棋游戏
💻 H
字号:
/****************************************************
Author: S. Senthil kumar
Class Name: OptionsDialog
Purpose:    Displays the options dialog

******************************************************/

class OptionsDialog:public CDialog
{
	CString tempdir;		//Stores default directory
	CListBox *combo;		//to display levels available
	int whitesquare;		//to store color of white square
	int blacksquare;		// to store color of black square	
	int whitecolorchanged;  // Boolean variable to find whether user changed white color
	int blackcolorchanged;	//Boolean variable to find whether user changed black color
public:
	OptionsDialog(int n);	//Constructor
	void OnOK();			//When user clicks OK
	void OnCancel();		//When user clicks Cancel
	int OnInitDialog();		//Message
	void OnEnableSound();	//When user enables sound
	void ShowOpen();		//Shows the file dialog box and get selected directory
	//void DoDataExchange(CDataExchange *pdx);
	void ShowColorDialog(int id);//Shows the color dialog for changing board color
	void RestoreDefaults();		 //When user clicks Restore Defaults.
	
	DECLARE_MESSAGE_MAP();
};

	

⌨️ 快捷键说明

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