Print Page | Close Window

CXTToolbar with 2 CComboBoxEx stuck !

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=1752
Printed Date: 07 November 2025 at 9:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTToolbar with 2 CComboBoxEx stuck !
Posted By: totolehéros
Subject: CXTToolbar with 2 CComboBoxEx stuck !
Date Posted: 04 February 2005 at 8:14am

Hi All,

I'm playing with controls insertion into toolbars. I successfully managed to create and insert a CComboBox and a CComboBoxEx into my toolbar. It worked like a charm.

Then I decided to change my CComboBox into a CComboBoxEx. When I do that, the app freezes when painting the toolbar for the 1st time. The call stack shows that we're somewhere (very) deep into CXTToolBar::OnCustomDraw() drawing this 2nd combo.

I noticed that if I don't InsertControl() the 2nd CComboBoxEx, everything is fine (except of course that the combo is floating above the toolbar buttons). If I don't InsertControl() the other CComboBoxEx(), everything is fine as well. If I InsertControl 1 combobox and 1 comboboxex, it's fine. I really have 2 InsertControl() _2_ CComboBox_Ex_ to experience the problem.

Does it ring any bell to anyone ?

TIA,

Serge.




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