How to Show the specified folder in the Open Dialog Box
Posted on 2003-03-06
I am working in an SDI(formview) application.I had displayed the bitmaps on the screen through Open Dialog Box.Now the problem is that whenever i want to choose the bitmaps,i have to follow the number of paths to reach that specified folder in order to click on the actual bitmaps.Is it possible that whenever i click on the Open Dialog Box option,only the required folder open and all other paths vanish.The user should not be able to select any other bitmaps on the hard disk except the required one.
This is the work i have done.plz give me suggestions that what changes should i do in this....
static char BASED_CODE szFilter="Bitmap Files (*.bmp)|*.bmp||";
if(filedlg.DoModal() == IDOK)
m_strBmpFile = filedlg.GetPathName();
m_pBmp = new CBitmap();
HBITMAP hBitmap = (HBITMAP)LoadImage(AfxGetApp()->
waiting for comments.