var objectid; .... var ctrlman = m_Map.GetCtrlMan(); var poiman = ctrlman.GetPOIMan(); if (poiman.IsObjectID(objectid)) { alert("Object ID"); } else { alert("Not Object ID"); }
#include "CXCtrlMan.h" #include "CXPOIMan.h" long objectid; .... CXCtrlMan ctrlman = m_Map.GetCtrlMan(); CXPOIMan poiman = ctrlMan.GetPOIMan(); if (poiman.GetObjectID(objectid)) { AfxMessageBox(_T("Object ID")); } else { AfxMessageBox(_T("Not Object ID")); }