EVT_MENU(Sound_About, MyFrame::OnAbout)
EVT_MENU(Sound_PlaySync, MyFrame::OnPlaySync)
EVT_MENU(Sound_PlayAsync, MyFrame::OnPlayAsync)
- EVT_MENU(Sound_PlayAsyncOnStack, MyFrame::OnPlayAsync)
+ EVT_MENU(Sound_PlayAsyncOnStack, MyFrame::OnPlayAsyncOnStack)
EVT_MENU(Sound_PlayLoop, MyFrame::OnPlayLoop)
END_EVENT_TABLE()
menuFile->Append(Sound_Quit, _T("E&xit\tAlt-X"), _T("Quit this program"));
playMenu->Append(Sound_PlaySync, _T("Play sound &synchronously"));
playMenu->Append(Sound_PlayAsync, _T("Play sound &asynchronously"));
- playMenu->Append(Sound_PlayAsync, _T("Play sound asynchronously (&object on stack)"));
+ playMenu->Append(Sound_PlayAsyncOnStack, _T("Play sound asynchronously (&object on stack)"));
playMenu->Append(Sound_PlayLoop, _T("&Loop sound"));
// now append the freshly created menu to the menu bar...
// ... and attach this menu bar to the frame
SetMenuBar(menuBar);
- m_tc = new wxTextCtrl(this, -1, wxEmptyString,
+ m_tc = new wxTextCtrl(this, wxID_ANY, wxEmptyString,
wxDefaultPosition, wxDefaultSize,
wxTE_MULTILINE|wxTE_READONLY);
NotifyUsingFile(m_soundFile);