Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Command Bar - CComboBoxEx
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Command Bar - CComboBoxEx

 Post Reply Post Reply
Author
Message
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post Topic: Command Bar - CComboBoxEx
    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?
Back to Top
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post 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.
 
 
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.031 seconds.