extern void DlgOpenSample( void ) /*******************************/ { for( ;; ) { if( !DlgFileBrowse( LIT( Enter_Sample ), sampFilterList, SamplePath, sizeof( SamplePath ), 0 ) ) break; if( WPSampFound() ) { OpenSample(); break; } ErrorMsg( LIT( File_Does_Not_Exist ), SamplePath ); } }
void GUImain( void ) /******************/ { WPInit(); WndCreateStatusWindow( &WndColours[ WPA_STATUS_LINE ] ); WndStatusText( "" ); #if defined( __OS2_PM__ ) WndSetIcon( WndMain, &MainIcon ); #endif WPInitHelp(); AboutOpen(); WndShowAll(); WndShowWndMain(); if( !WPSampFound() ) { DlgOpenSample(); } else { OpenSample(); } }