The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: trodon on December 19, 2006, 01:25:48 AM

Title: open file styles
Post by: trodon on December 19, 2006, 01:25:48 AM
i was just see couple programs with diferent open styles...
but i only know one style, default style, but how to customise?
here is 3 styles

http://www.ti5.tu-harburg.de/manual/vba5/graphics/12tva02.gif (http://www.ti5.tu-harburg.de/manual/vba5/graphics/12tva02.gif)
http://www.k1simplify.com/vba/img/tips12-1.gif (http://www.k1simplify.com/vba/img/tips12-1.gif)
http://www.netcult.ch/elmue/ComdlgWin-en.gif (http://www.netcult.ch/elmue/ComdlgWin-en.gif)


I modified the links so that they are clickable :)

- sluggy



Title: Re: open file styles
Post by: jdoe on December 19, 2006, 02:11:34 AM
trodon,

You need to play with the Flags member of OPENFILENAME structure and use the OFNHookProc procedure (search MSDN).
Maybe with one more hook procedure, you'll be able to do what you want with this windows dialog.

Regards
jdoe

Title: Re: open file styles
Post by: sluggy on December 19, 2006, 04:51:40 AM
Two of those different styles are due to them being different versions of windows and/or IE. IIRC the shortcut buttons on the left side that you see in link #2 were introduced around IE 5.5 and also with Office (2000 i think).
I believe you can also supply a custom template for that dialog, which will explain link #1. Link #3 is just the old style (circa WinNT4 or Win2K).

Title: Re: open file styles
Post by: Darrel on December 19, 2006, 05:57:22 AM
Take a look at this topic (http://www.masm32.com/board/index.php?topic=5685.0)

Regards,

Darrel
Title: Re: open file styles
Post by: trodon on December 19, 2006, 11:03:23 AM
Thanks for example Darrel