Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Attach CXTComboBoxEx in a dialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Attach CXTComboBoxEx in a dialog

 Post Reply Post Reply
Author
Message
janus79fo View Drop Down
Newbie
Newbie
Avatar

Joined: 26 May 2006
Location: Denmark
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote janus79fo Quote  Post ReplyReply Direct Link To This Post Topic: Attach CXTComboBoxEx in a dialog
    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 

Back to Top
janus79fo View Drop Down
Newbie
Newbie
Avatar

Joined: 26 May 2006
Location: Denmark
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote janus79fo Quote  Post ReplyReply Direct Link To This Post 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.

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.082 seconds.