Do a drawing similar to the simulation software, click a button in a dialog box, can be in the client area through the left mouse button button ICONS on the draw (DrawIcon), add information to entities in the array pDoc - & gt; AddObject (point x, point. J y, point, x + 32, point. The y + 32, m_Type, m_DeviceID, m_deviceSymbol);//different icon m_DeviceID
Right I want to achieve different ICONS can pop-up menu, how to judge which is I right click on the icon, is when DrawIcon define a flag, judging by the flag, or according to right-click in the array of the coordinates of the get m_DeviceID judge? Or any other method, novice, but hope to deal with, thank you!