Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - Add edit box to CXTPEditListBox browse operation
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Add edit box to CXTPEditListBox browse operation

 Post Reply Post Reply
Author
Message
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 443
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Topic: Add edit box to CXTPEditListBox browse operation
    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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 01 March 2011 at 1:31am
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
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 443
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Posted: 01 March 2011 at 8:34am
Perfect, thank you again Oleg.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.