Today I wrote two test programs.

Source: Internet
Author: User
Tested the two technical issues of COM component inheritance and connection points. You can refer to this example to understand some difficult problems of arcobject.

Create an API igeometry. The menu is as follows:


 

Add another vertex interface ipoint, as shown in the following figure:

 

Several changes. Start with mygis. IDL:

 

If you need a function, you can also copy it:

 

Modify the cpoint class. The modification method is to directly Delete the inherited igeometry interface. As follows:

 

 

After the above steps, the entire process is complete.

You can check the calling methods.

Ipointptr P (clsid_point );
Long L = 0;
P-> getvalue (& L );

Igeometryptr G = P;
G-> getvalue (& L );

Arcengine9.2 has a toolbar control that requires a mapcontrol object. The toolbar allows you to edit images. What is the internal mechanism of this editing? The toolbar does not accept the mouse information of the map control, but can handle the mouse event accordingly. After analysis, the toolbar controls use the COM connection point technology to receive map controls and mouse and keyboard information.

Related Article

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.