|
| TalMap SDK Libary Reference |
| XObjectState::GetEventMode |
| 개체(Object)의 이벤트 모드 값을 확인합니다. |
|
|
|
|
Parameters
|
|
Return Value
| |
설정 여부
0: 설정 되지 않음.
1: 설정 되어 있음.
|
|
|
|
Remarks
| |
GetEventMode 는 XObjectState 의 Method로 제공됩니다.
사용자는 이 메소드를 이용하여 개체에 설정된 이벤트 모드 값을 확인할 수 있습니다.
|
|
|
|
Example
| |
|
|
var util = m_Map.GetUtility();
var ctrlman = m_Map.GetCtrlMan();
var poiman = ctrlman.GetPOIMan();
var poigroup = poiman.FindGroup(1); // Group ID가 1인 Group를 찾는다.
if (poigroup) {
if (poigroup.GetEventMode(util.GetConstToValue("TMEVENTTYPE_CLICK"))) { // Click 이벤트 설정 확인
alert("Click Event Setting");
} else {
alert("Click Event Not Setting");
}
}
|
|
|
|
#include "CXCtrlMan.h"
#include "CXUtility.h"
#include "CXPOIMan.h"
#include "CXPOIGroup.h"
CXUtility util = m_Map.GetUtility();
CXCtrlMan ctrlman = m_Map.GetCtrlMan();
CXPOIMan poiman = ctrlMan.GetPOIMan();
CXPOIGroup poigroup = poiman.FindGroup(1); // Group ID가 1인 Group를 찾는다.
if (poigroup.m_lpDispatch != NULL) {
if (poigroup.GetEventMode(util.GetConstToValue(_T("TMEVENTTYPE_CLICK"))) { // Click 이벤트 설정 확인
AfxMessageBox(_T("Click Event Setting"));
} else {
AfxMessageBox(_T("Click Event Not Setting"));
}
}
|
|
|
|
See Also
|