In arcgisengine development, how do I add other widgets such as ComboBox to the Toolbar Control?

Source: Internet
Author: User

How to add other widgets such as ComboBox to the Toolbar Control During arcgisengine development?

If you add a ComboBox to the ESRI Toolbar Control, you must implement the itoolcontrol interface in the Command class.
Return the handle of the specified control as itoolcontrol. hwnd.
Process description
Public class mycombobox: basecommand, itoolcontrol
{
Private int _ HANDLE = 0;
Private icompletionpolicy _ compnotify;
Public mycombobox (INT handle)
{
_ HANDLE = handle;
}

Public override void oncreate (Object hook)
{
// Todo: Add symboltype. oncreate implementation

}
# Region itoolcontrol Member

Public int hwnd
{
Get
{
// Todo: Add symboltype. hwnd getter implementation
Return _ HANDLE;
}
}

Public void onfocus (icompletionpolicy complete)
{
_ Compnotify = complete;
// Todo: Add symboltype. onfocus implementation
}

Public bool ondrop (ESRI. ArcGIS. systemui. esricmdbartype bartype)
{
// Todo: Add symboltype. ondrop to implement
If (bartype = esricmdbartype. esricmdbartypetoolbar)
{
Return true;
}
Else return false;
}

# Endregion
}
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.