FF_OpenFileDialog

Started by James Padgett, December 14, 2010, 06:22:19 AM

Previous topic - Next topic

James Padgett

Can you set FF_OpenFileDialog to show hidden files/folders?  I don't see a switch for it.
I can manually enter the folder and it show up, but I don't see how to have the dialog show hidden folders.

Eddy Van Esch

Does this work? (I did not try it)
Quote%OFN_FORCESHOWHIDDEN
      Windows 2000/XP: Forces the showing of system and hidden files, thus overriding the user setting to show or not
      show hidden files. However, a file that is marked both system and hidden is not shown

Kind regards
Eddy

James Padgett

Nope didn't work..
Functions Lib shows these as allowable :
                 %OFN_ALLOWMULTISELECT   
                 %OFN_CREATEPROMPT   
                 %OFN_ENABLEHOOK   
                 %OFN_ENABLETEMPLATE   
                 %OFN_ENABLETEMPLATEHANDLE   
                 %OFN_EXPLORER   
                 %OFN_EXTENSIONDIFFERENT   
                 %OFN_FILEMUSTEXIST   
                 %OFN_HIDEREADONLY   
                 %OFN_LONGNAMES   
                 %OFN_NOCHANGEDIR   
                 %OFN_NODEREFERENCELINKS   
                 %OFN_NOLONGNAMES   
                 %OFN_NONETWORKBUTTON   
                 %OFN_NOREADONLYRETURN   
                 %OFN_NOTESTFILECREATE   
                 %OFN_NOVALIDATE   
                 %OFN_OVERWRITEPROMPT   
                 %OFN_PATHMUSTEXIST   
                 %OFN_READONLY   
                 %OFN_SHAREAWARE   
                 %OFN_SHOWHELP   


Eddy Van Esch

Well, don't let that stop you.
%OFN_FORCESHOWHIDDEN      = &H10000000
If FF does not define %OFN_FORCESHOWHIDDEN, you can define the constant yourself or you can use the value directly like this:

FF_OpenFileDialog( ByVal_hWnd_As_Long, ......,  %OFN_ALLOWMULTISELECT + &H10000000, ByVal_CenterFlag_As_Long )

Eddy

James Padgett

Thats what I get for assuming :-)...

I'll try it when I get home..