File Dialog Class (replace common dialog control with this lightweight class)
Posted: 2002-06-01
By: ArchiveBot
Viewed: 65
Filed Under:
Title | Uploaded | Size |
---|---|---|
CODE_UPLOAD147642102001.zip | 9/3/2020 3:45:00 PM | 5,685 |
Replaces Microsoft's common dialog control file dialog features. Uses same interface to call the FileOpen and FileSave dialogs including multiselection support.
Instead of making a more versatile control with print dialogs, color dialogs, and hooking, I decided to make a very lightweight one since the CommonControl Print and Color Dialogs are
essentially useless.
I could have added hooking functionality, but that would involve including a standard module
as well. The only major benefit of hooking is the ability to center the dialog. However,
with this code, as long as you specify the form's handle, it will position the dialog to the
upper left of the form
This is a direct replacement to the Microsoft CommonDialog control and will involve very little
Change in coding to implement.
Original Author: Bill Bither
Inputs
File Dialog Options (FileName, Filters, Default Extension, etc..)
Returns
selected Filename and/or filenames
API Declarations
GetOpenFileName
GetSaveFileName
Comments on this post
No comments have been added for this post.
You must be logged in to make a comment.