![]() |
Command Bar - CComboBoxEx |
Post Reply ![]() |
Author | |
Kenneth ![]() Senior Member ![]() ![]() Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
![]() ![]() ![]() ![]() ![]() 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?
|
|
![]() |
|
Kenneth ![]() Senior Member ![]() ![]() Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
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 |