Add edit box to CXTPEditListBox browse operation |
Post Reply |
Author | |
markr
Senior Member Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
Posted: 28 February 2011 at 5:10pm |
Hi,
I'm using an instance of CXTPEditListBox to allow users to browse for multiple folder locations. Users can add a list item and click the "..." button to browse for a folder, which is great, but I need the resulting browse dialog to also show an edit box. Normally, this would be achieved by passing BIF_EDITBOX as a flag to BROWSEINFO when calling SHBrowseForFolder Windows function. What do I need to override in CXTPEditListBox to accomplish the same thing? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
First you need create own CXTPItemEdit class and override its ChooseDirectory method (copy original from source and add flags) Now you need override virtual CXTPItemEdit* CXTPEditListBox ::CreateEditControl(CRect rcItem); and return own class.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
markr
Senior Member Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
|
Perfect, thank you again Oleg.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |