Create a ComboBox/DropDown in a ToolbarControl

3770
2
03-18-2015 05:04 PM
FergusGraham
New Contributor

I am stuck.... I am developing an ArcEngine MapControl application and I want to add a combobox to the toolbarcontrol.  Something I assumed should be relatively straightforward.  I have tried developing a custom control that implements ICommand and I've tried creating a BaseCommand that implements IComboBox.  I just can't seem to hook it all up so that it displays anything but the Command button.  Any pointers or samples would be appreciated.

0 Kudos
2 Replies
RiverTaig1
Occasional Contributor

I think what you are after is an IToolControl.  See the documentation here:

IToolControl Interface

FergusGraham
New Contributor

Yes.... that was it exactly.  Thanks.

Create a BaseCommand

Implement IToolControl

Instantiate a ComboBox in the BaseCommand.New()

Add hWnd = ComboBox.Handle.ToInt32 in the Get of the IToolControl.hWnd property

0 Kudos