Print Page | Close Window

Add edit box to CXTPEditListBox browse operation

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=17973
Printed Date: 17 November 2024 at 12:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Add edit box to CXTPEditListBox browse operation
Posted By: markr
Subject: Add edit box to CXTPEditListBox browse operation
Date 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?



Replies:
Posted By: Oleg
Date 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


Posted By: markr
Date Posted: 01 March 2011 at 8:34am
Perfect, thank you again Oleg.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net