![]() |
Attach CXTComboBoxEx in a dialog |
Post Reply
|
| Author | |
janus79fo
Newbie
Joined: 26 May 2006 Location: Denmark Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: Attach CXTComboBoxEx in a dialogPosted: 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 |
|
![]() |
|
janus79fo
Newbie
Joined: 26 May 2006 Location: Denmark Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
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 |