Filtering OnFileOpen
-
In a SDI program, when the user clicked the Open File Button and the standard File Open Dialog pops up I want to filter what type of file extensions the user can select. J Guds Masters Student Kansas University
-
In a SDI program, when the user clicked the Open File Button and the standard File Open Dialog pops up I want to filter what type of file extensions the user can select. J Guds Masters Student Kansas University
The following code opens files with .wav extension Modify it as per ur need.
void CMyProjectView::OnFileOpen()
{
CFileDialog cfd(TRUE,".wav",NULL,OFN_FILEMUSTEXIST|OFN_PATHMUSTEXIST,"WAV File(*.wav)|*.wav||",this);
cfd.DoModal();
}...Avenger
Remember... testing & debugging are always part of programming ...so exterminate those stinking bugs