Hi Herman,
Did you only disable controls on dialog?
For Naomi:
#DEFINE HTCDF_NOSELECTDIR 0x80000000
#define OFN_EXPLORER 0x00080000 // new look commdlg
Declare String CD_GetFile in E:\INT\vfp\HTWindow\HTWindow.dll ;
String cStartDir, String cStrFilter, Long hWndParent, ;
Long nPosition, Long nX, Long nY, ;
Long uFlags, Long uFlagsEx
?CD_GetFile("c:temp\","",0,0,0,0,0,HTCDF_NOSELECTDIR)
To Herman:
If I tried call with uFlags=OFN_EXPLORER then:
- first calling don't show dialog
- second calling close the vfp window
?CD_GetFile("c:temp\","",0,0,0,0,OFN_EXPLORER,HTCDF_NOSELECTDIR)
MartinJ
>Hi Naomi,
>
>>>I saw that you will try new idea in your other threads. :)
>>>
>>>Anyway, I have a GetOpenFileName() and GetSaveFileName API wrapper with ability to prevent a folder selection. Just let me know, I'll update my DLL wrapper if you want.
>>>
>>>Regards
>>
>>Yes, it would be great. That's exactly what I'd like to achieve: the GetFile() interface with the particular directory.
>>
>>Thanks a lot in advance.
>
>The DLL file has been updated (file #
14876). Don't get upset if the interface became a bit ugly, because it is needed to prevent all the posibility to select a folder <g>
>
>Let me know if you have a problems
>HTH