BEGIN_EVENTSINK_MAP(CMapxSampleView, CView) ON_EVENT(CMapxSampleView, IDC_MAP, DISPID_MOUSEMOVE, OnMouseMoveInMap, VTS_I2 VTS_I2 VTS_XPOS_PIXELS VTS_YPOS_PIXELS) ON_EVENT(CMapxSampleView, IDC_MAP, 11 /* PolyToolUsed */, OnPolyToolUsedMap, VTS_I2 VTS_I4 VTS_DISPATCH VTS_BOOL VTS_BOOL VTS_PBOOL) ON_EVENT(CMapxSampleView, IDC_MAP, MAPX_DISPID_TOOLUSED, OnToolUsed, VTS_I2 VTS_R8 VTS_R8 VTS_R8 VTS_R8 VTS_R8 VTS_BOOL VTS_BOOL VTS_PBOOL) ON_EVENT(CMapxSampleView, IDC_MAP, -600 /* Click */, OnClickMap, VTS_NONE) ON_EVENT(CMapxSampleView, IDC_MAP, -601 /* DblClick */, OnDblClickMap, VTS_NONE) ON_EVENT(CMapxSampleView, IDC_MAP, -608 /* Error */, OnErrorMap, VTS_I2 VTS_PBSTR VTS_I4 VTS_BSTR VTS_BSTR VTS_I4 VTS_PBOOL) ON_EVENT(CMapxSampleView, IDC_MAP, -602 /* KeyDown */, OnKeyDownMap, VTS_PI2 VTS_I2) ON_EVENT(CMapxSampleView, IDC_MAP, -603 /* KeyPress */, OnKeyPressMap, VTS_PI2) ON_EVENT(CMapxSampleView, IDC_MAP, -604 /* KeyUp */, OnKeyUpMap, VTS_PI2 VTS_I2) ON_EVENT(CMapxSampleView, IDC_MAP, -605 /* MouseDown */, OnMouseDownMap, VTS_I2 VTS_I2 VTS_R4 VTS_R4) ON_EVENT(CMapxSampleView, IDC_MAP, DISPID_MOUSEUP, OnMouseUpInMap, VTS_I2 VTS_I2 VTS_XPOS_PIXELS VTS_YPOS_PIXELS) ON_EVENT(CMapxSampleView, IDC_MAP, 1 /* SelectionChanged */, OnSelectionChangedMap, VTS_NONE) ON_EVENT(CMapxSampleView, IDC_MAP, 2 /* ResolveDataBind */, OnResolveDataBindMap, VTS_I2 VTS_I2 VTS_VARIANT VTS_PI2 VTS_PBOOL) ON_EVENT(CMapxSampleView, IDC_MAP, 4 /* RequestData */, OnRequestDataMap, VTS_BSTR VTS_I4 VTS_I2 VTS_PVARIANT VTS_PBOOL) ON_EVENT(CMapxSampleView, IDC_MAP, 5 /* DataMismatch */, OnDataMismatchMap, VTS_BSTR VTS_I4 VTS_PBSTR) ON_EVENT(CMapxSampleView, IDC_MAP, MAPX_DISPID_MAPVIEWCHANGED, OnMapViewChanged, VTS_NONE) ON_EVENT(CMapxSampleView, IDC_MAP, 7 /* AnnotationAdded */, OnAnnotationAddedMap, VTS_DISPATCH) ON_EVENT(CMapxSampleView, IDC_MAP, 8 /* AnnotationChanged */, OnAnnotationChangedMap, VTS_I2 VTS_DISPATCH VTS_PBOOL) ON_EVENT(CMapxSampleView, IDC_MAP, MAPX_DISPID_THEMEMODIFYREQUESTED, OnThemeModifyRequested, VTS_DISPATCH) ON_EVENT(CMapxSampleView, IDC_MAP, MAPX_DISPID_DRAWUSERLAYER, OnDrawUserLayer, VTS_DISPATCH VTS_I4 VTS_I4 VTS_DISPATCH VTS_DISPATCH) END_EVENTSINK_MAP() BOOL CMapxSampleView::OnMouseMoveInMap(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y) BOOL CMapxSampleView::OnMouseUpInMap(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y) void CMapxSampleView::OnPolyToolUsedMap(short ToolNum, long Flags, LPDISPATCH Points, BOOL bShift, BOOL bCtrl, BOOL FAR* EnableDefault) void CMapxSampleView::OnToolUsed(short ToolNum, double X1, double Y1, double X2, double Y2, double Distance, BOOL Shift, BOOL Ctrl, BOOL* EnableDefault) void CMapxSampleView::OnClickMap() void CMapxSampleView::OnDblClickMap() void CMapxSampleView::OnErrorMap(short Number, BSTR FAR* Description, long Scode, LPCTSTR Source, LPCTSTR HelpFile, long HelpContext, BOOL FAR* CancelDisplay) void CMapxSampleView::OnKeyDownMap(short FAR* KeyCode, short Shift) void CMapxSampleView::OnKeyPressMap(short FAR* KeyAscii) void CMapxSampleView::OnKeyUpMap(short FAR* KeyCode, short Shift) void CMapxSampleView::OnMouseDownMap(short Button, short Shift, float X, float Y) void CMapxSampleView::OnSelectionChangedMap() void CMapxSampleView::OnResolveDataBindMap(short Flag, short NumMatches, const VARIANT FAR& Matches, short FAR* Choice, BOOL FAR* Cancel) void CMapxSampleView::OnRequestDataMap(LPCTSTR DataSetName, long Row, short Field, VARIANT FAR* Value, BOOL FAR* Done) void CMapxSampleView::OnDataMismatchMap(LPCTSTR DataSetName, long Row, BSTR FAR* GeoFieldValue) void CMapxSampleView::OnAnnotationAddedMap(LPDISPATCH Annotation) void CMapxSampleView::OnAnnotationChangedMap(short ChangeType, LPDISPATCH Annotation, BOOL FAR* EnableDefault) void CMapxSampleView::OnThemeModifyRequested(LPDISPATCH Theme) void CMapxSampleView::OnDrawUserLayer(LPDISPATCH Layer, long hOutputDC, long hAttributeDC, LPDISPATCH RectFull, LPDISPATCH RectInvalid) BOOL CMapxSampleView::OnMapViewChanged()