add "Launch Game" to main menu
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user