Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding comboBox to CaptionBar 1

Status
Not open for further replies.

EmeraldFire

Programmer
Oct 31, 2000
2
US
I'm working on an MDI application and i need to add a comboBox in the caption Bar. If anyone has any idea how this is done, please let me know.
Thanks in advance
 
If anyone is curious, i added a combo box to a toolbar instead. I created the combo box manual, and made sure there was room on the tool bar for it.
I added ID_SEPARATOR to the buttons array and called setButtons:
m_ChartToolBar.SetButtons(buttons, sizeof(buttons)/sizeof(UINT))

m_StudyComboBox.Create(WS_VISIBLE|WS_CHILD|ES_RIGHT|ES_READONLY | WS_VSCROLL|
CBS_UPPERCASE,CRect(190, 0, 300, 100),
&m_ChartToolBar, 3)

Hope this helps anyone that is interested.
 
Also read up on DialogBar. It is a resource definable implementation of these kind of controls in dockable bars...

hth
Randy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top