add "Launch Game" to main menu

This commit is contained in:
Chris Danford
2005-11-28 05:24:09 +00:00
parent f6f700f910
commit 2784c08ea3
7 changed files with 36 additions and 20 deletions
+8
View File
@@ -51,6 +51,7 @@ BEGIN_MESSAGE_MAP(MainMenuDlg, CDialog)
ON_BN_CLICKED(IDC_OPEN_PREFERENCES, OnBnClickedOpenPreferences)
ON_BN_CLICKED(IDC_CLEAR_PREFERENCES, OnBnClickedClearPreferences)
//}}AFX_MSG_MAP
ON_BN_CLICKED(IDC_BUTTON_LAUNCH_GAME, OnBnClickedButtonLaunchGame)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
@@ -241,3 +242,10 @@ void MainMenuDlg::OnBnClickedClearPreferences()
MessageBox( PREFERENCES_INI + " cleared." );
}
void MainMenuDlg::OnBnClickedButtonLaunchGame()
{
// TODO: Add your control notification handler code here
LaunchGame();
exit(0);
}