cGetDir Flags

Post Reply
sanilpmc
Posts: 36
Joined: Tue Jun 17, 2008 7:09 am

cGetDir Flags

Post by sanilpmc »

Dear all,

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


Thank you
Sanil
User avatar
Antonio Linares
Site Admin
Posts: 42511
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

Post 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

   if ( ISNUM( 5 ) )
     lpbi.ulFlags = _parl( 5 ) ;

It should be:

Code: Select all | Expand

   if ( ISNUM( 5 ) )
     lpbi.ulFlags = _parnl( 5 ) ;

We can send you the modified OBJ if you want to
regards, saludos

Antonio Linares
www.fivetechsoft.com
sanilpmc
Posts: 36
Joined: Tue Jun 17, 2008 7:09 am

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 42511
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

Post 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 ? :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply