Print Page | Close Window

Command Bar - CComboBoxEx

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=7442
Printed Date: 03 March 2025 at 12:58pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Command Bar - CComboBoxEx
Posted By: Kenneth
Subject: Command Bar - CComboBoxEx
Date Posted: 25 June 2007 at 10:28am
I have placed two CComboBoxEx controls on a control bar using:
 
CXTPControlCustom* pControl = CXTPControlCustom::CreateControlCustom(&m_Host);
 
 
However the controls do not reflect the theme colors selected.  What am I doing wrong?  Also, how would I get the controls to be flat?
 
In addition, the three CXTPControlEdit controls to the right of the combo controls appear not to have the internal m_pEdit created.  If I try to do a SetEditText on any of the CXTPControlEdit controls, the program will abort.  Is it ok to have more than one CXTPControlEdit on a control bar?



Replies:
Posted By: Kenneth
Date Posted: 25 June 2007 at 8:27pm
I discovered the CComboBoxEx lack of theme support was due to a missing manifest.  Seems the codejock wizard does not add this to new projects.
 
The CXTPControlEdit problem is quite strange, however I discovered that the value of pUser returned within the OnCreate section is flaky.
 
pUser = (CXTPControlEdit*)pCommandList->Add(xtpControlEdit,IDC_USERNAME); 
 
If I reference the CXTPControlEdit control by:
 
((CXTPControlEdit*)pToolBar->GetControls()->FindControl(IDC_USERNAME))->SetEditText(m_strUserName);
 
then all is well.  Enough to drive one crazy.
 
 



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