Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListView - header's icon alignment
Message
 
 
À
01/09/2005 12:15:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01045162
Message ID:
01045936
Vues:
37
>>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform