void COthelloDlg::OnExitGame()
{
CDialog::OnCancel(); //调用基类退出函数
}
void COthelloDlg::OnGameStart()
{
GameStart(); //调用游戏开始接口函数
}
void COthelloDlg::OnHelp()
{
CHelpDlg dlg; //创建帮助对话框类对象
dlg.DoModal(); //本文来自辣&文*论~文'网,毕业论文 www.751com.cn 加7位QQ324,9114找源文弹出帮助对话框
}
void COthelloDlg::OnLevelHigh()
{
CWnd* pMain = AfxGetMainWnd();
CMenu* pMenu = pMain->GetMenu();
//判断播放音乐菜单当前状态
BOOL bCheck = (BOOL)pMenu->GetMenuState(IDR_LEVEL_HIGH, MF_CHECKED);
if( !bCheck )
{
pMenu->CheckMenuItem(IDR_LEVEL_HIGH,
MF_BYCOMMAND | MF_CHECKED);
pMenu->CheckMenuItem(IDR_LEVEL_LOW,
MF_BYCOMMAND | MF_UNCHECKED);
pMenu->CheckMenuItem(IDR_LEVEL_NOR,
MF_BYCOMMAND | MF_UNCHECKED);
g_iGameLevel = LEVEL_HIGH;
}
}
void COthelloDlg::OnLevelLow()
{
CWnd* pMain = AfxGetMainWnd();
CMenu* pMenu = pMain->GetMenu();
//判断播放音乐菜单当前状态
BOOL bCheck = (BOOL)pMenu->GetMenuState(IDR_LEVEL_LOW, MF_CHECKED);
if( !bCheck )
{
pMenu->CheckMenuItem(IDR_LEVEL_HIGH,
MF_BYCOMMAND | MF_UNCHECKED);
pMenu->CheckMenuItem(IDR_LEVEL_LOW,
MF_BYCOMMAND | MF_CHECKED);
pMenu->CheckMenuItem(IDR_LEVEL_NOR,
MF_BYCOMMAND | MF_UNCHECKED);
g_iGameLevel = LEVEL_LOW;
}
}
void COthelloDlg::OnLevelNor()
{
CWnd* pMain = AfxGetMainWnd();
CMenu* pMenu = pMain->GetMenu();
//判断播放音乐菜单当前状态
BOOL bCheck = (BOOL)pMenu->GetMenuState(IDR_LEVEL_NOR, MF_CHECKED);
if( !bCheck )
上一页 [1] [2] [3] [4] [5] [6] [7]