>>>>Does it mean, I can pass 0 instead of that flag? Or what exactly should be my call?
>>>
>>>Yes just pass 0, the function is already include OFN_NOCHANGEDIR.
>>
>>If I pass 0, it behaves as normal getfile with the ability to switch directory.
>
>Ahh.. I think you got it wrong. There are two flags as the parameters. Take look at this:
>
>Declare String CD_GetFile in HTWindow ;
> String cStartDir, String cStrFilter, Long hWndParent, ;
> Long nPosition, Long nX, Long nY, ;
> Long uFlags, Long uFlagsEx, ;
> String cWndTitle, String cBtnCaption
>
>
>The "uFlags" is the standard GetOpenFileName() API flags. While the "uFlagsEx" is the extended one. Use the "uFlagsEx" and pass in HTCDF_NOSELECTDIR in order to prevent the folder selection. If you don't use HTCDF_NOSELECTDIR in the "uFlagsEx" parameter then it behaves as a standard GetOpenFileName with whatever "uFlags" you passed in.
>
>Still confused about it ?
Yes, a little bit. All I know is that it's working fine if I pass the parameter in uFlagsEx. As long as it is working this way, I guess, it's enough for me.
If it's not broken, fix it until it is.
My Blog