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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hooking standard open/save file dialogs on windows 1

Status
Not open for further replies.

spavkov

Programmer
Jun 16, 2004
26
Hi all!

Does enybody knows how to hook to standard windows open/save file dialogs and when they appear, customize them.

for example, this could be used to add some extra buttons on all system open/save file dialogs.
maybe one SHORTCUTS button that brings popup menu with commonly used directories/files?

anybody?
im sure this is a tough one!
 
You light look into the OFNHookProc function defined in the MSND library. It talks about the ability to add custom controls to the standard, old-style, and other Open/Save dialogue boxes, as well as getting control over the box through Callback functionality.
 
I checked OFNHookProc and its ok for hooking to application-wide open/save dialogs.
it works fine...

BUT, how can one make system-wide OFNHookProc type hook that will work for all applications.
so when user, for example opens Word or Excell and tries to open/save file, my hook gets called.

in MSDN it says that OFNHookProc 'is an application-defined or library-defined callback function ',
but it does not say how to make it library-defined (this would probably make it system-wide hook).

anybody????
pliiiiz????

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top