Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COMDLG32.DLL - Centering File Save Dialog and Adding a Check Box 1

Status
Not open for further replies.

dftjsn

Programmer
Feb 25, 2002
43
US
Hi,

I'm using:

Private Declare Function GetSaveFileName Lib "comdlg32.dll" Alias "GetSaveFileNameA" (pOpenfilename As W32_OPENFILENAME) As Boolean

to get a file save dialog. The dialog form appears in the upper left corner of the screen. How does one center this?

Is it possible to add a custom option button to the file save dialog form from comdlg32.dll? If not, how about putting on the Read Only option but changing the text from Read Only to what my option is?

Thanks!

dftjsn
 
I've never tried but I think you could customize the dialog appearance with a C++ resource editor. However, I think the code details are encapsulated. Still it might be worth taking a looking at it. You might just as well write your own ActiveX aggregate control. JHall
 
The VB control is available (Windows Common controls) within Access. I think the default is centered...

cdlgMyDialogue.ShowSave

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top