// Free everything here BOOL CTabSpeech::DestroyWindow() { if(m_speech_supported == true) { SpDestroyTokenComboBox( GetDlgItem(IDC_VOICE_COMBO )->GetSafeHwnd() ); speech_deinit(); } return CDialog::DestroyWindow(); }
void CTTSApp::MainHandleClose() ///////////////////////////////////////////////////////////////// { // Call helper functions from sphelper.h to destroy combo boxes // created with SpInitTokenComboBox SpDestroyTokenComboBox( GetDlgItem( m_hWnd, IDC_COMBO_VOICES ) ); // Terminate the app PostQuitMessage(0); // Return success return; }