Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListView - header's icon alignment
Message
 
 
To
01/09/2005 12:15:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01045162
Message ID:
01045936
Views:
42
>>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform