Print Page | Close Window

Attach CXTComboBoxEx in a dialog

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4288
Printed Date: 10 November 2025 at 3:41pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Attach CXTComboBoxEx in a dialog
Posted By: janus79fo
Subject: Attach CXTComboBoxEx in a dialog
Date Posted: 26 May 2006 at 1:00pm

I'm trying to make a explorer like layout in a CDialog, and have got the connection between CXTShellTreeCtrl, CXTShellListCtrl and CComboBox working. The problem is that the file/folder icons aren't shown. Therefore I'd really like to associate the tree ctrl to a CXTComboBoxEx in order to get the system imagelist.

But when I try so, the combo contents are all white. Not icons, no text.. but when I expand it seems to contain items, as the expand window is quite large.

I think that the actual problem is that the CXTComboBoxEx is not initialized correctly and the drawing of the control is wrong - this is based on the fact that the imagelist is initialized correcltly when calling AssociateCombo from the tree.

Is it necassary to use CreateControlCustom? And if so, how do I do this in a dialog?

I wonder if the xtpFlagManualUpdate flag is what needs to be set, just as in the WinExplorer sample.

Well, if anyone can help me get this working I'm going to look like this  and if not.. like this 




Replies:
Posted By: janus79fo
Date Posted: 27 May 2006 at 6:54am

Well, figured out the problem.

Have to use the "Extended Combo Box" instead of the regular "Combo Box" from the resource toolbox.




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