Dan,
My intentions is to ask the User to select a bitmap from their machine after I load explorer.(I think File Dialog require the loading of the file, I don't want to load it, just get the file path name so I can load the bitmap when the dialog is presented. I'm just trying to give the User an interface where they can select their own bitmaps. Any suggests as to how to do this CORRECTLY.
Main Topics
Browse All Topics





by: DanRollinsPosted on 2009-10-29 at 15:59:17ID: 25699031
There is too much ground to cover regarding selecting the image and saving it. Select it how? List view, browse using CFileDialog, drag and drop from an Explorer, etc.? Save it how? As a filename in a database, and a picture blob in a database, as a filename in the registry, etc.?
Here's a start on your selecting options:
Setting View and Sort in a File Open Dialog e.com/A_13 34.html
http://www.experts-exchang
You will want to set the view to Thumbnails. Put up a standard edit control with an associated [Browse...] button. A slick addition to that is shown here:
How to Accept Drag-and-Drop Files from Windows Explorer e.com/A_17 37.html
http://www.experts-exchang
It lets the user drag from a Thumbnail view Explorer window.
To display a bitmap is simple. See:
A Quick and Simple Way to Display a Bitmap in C++ e.com/A_11 72.html
http://www.experts-exchang
You 'll need to provide more direction on the storage requirement.