Page 1 of 1

cGetDir Flags

PostPosted: Mon Sep 08, 2008 11:35 am
by sanilpmc
Dear all,

Please Help me, Which Flage is used to hide Make New Folder Option in cGetDir() Dialog Box.


Thank you
Sanil

PostPosted: Mon Sep 08, 2008 11:54 am
by Antonio Linares
Sanil,

You have to use:

#define BIF_NONEWFOLDERBUTTON 0x0200

but there is a bug in cGetDir() to fix in this code:
Code: Select all  Expand view
   if ( ISNUM( 5 ) )
     lpbi.ulFlags = _parl( 5 ) ;

It should be:
Code: Select all  Expand view
   if ( ISNUM( 5 ) )
     lpbi.ulFlags = _parnl( 5 ) ;

We can send you the modified OBJ if you want to

PostPosted: Tue Sep 09, 2008 5:42 am
by sanilpmc
Antonio Linares wrote:Sanil,

We can send you the modified OBJ if you want to


Dear Antonio Linares,

Thank you, I have changed the source and set the Flag as you said and its work fine.

Can you please send me the modified OBJ
My email address sanilpmc@gmail.com

Thank You
Sanil

PostPosted: Tue Sep 09, 2008 9:09 am
by Antonio Linares
Sanil,

> I have changed the source and set the Flag as you said and its work fine.

If it is working fine, then why do you need the OBJ ? :-)