Hi,
Sorry for the delay, meanwhile we have solved the problem. It seems that firedoubleclicEvent is not called. On the double click event handler of mapwingis it's just calling the OnLbuttonClick() function.
Concerning the sample code, i can give you the way it's treated right now in our software (mfc application) :
Sorry for the delay, meanwhile we have solved the problem. It seems that firedoubleclicEvent is not called. On the double click event handler of mapwingis it's just calling the OnLbuttonClick() function.
Concerning the sample code, i can give you the way it's treated right now in our software (mfc application) :
BEGIN_EVENTSINK_MAP(CMapContainer, CDialog)
ON_EVENT(CMapContainer, IDC_MAP1, 1, MouseDownMap1, VTS_I2 VTS_I2 VTS_I4 VTS_I4)
ON_EVENT(CMapContainer, IDC_MAP1, 2, MouseUpMap1, VTS_I2 VTS_I2 VTS_I4 VTS_I4)
ON_EVENT(CMapContainer, IDC_MAP1, 3, MouseMoveMap1, VTS_I2 VTS_I2 VTS_I4 VTS_I4)
ON_EVENT(CMapContainer, IDC_MAP1, 4, FileDroppedMap1, VTS_BSTR)
ON_EVENT(CMapContainer, IDC_MAP1, 5, SelectBoxFinalMap1, VTS_I4 VTS_I4 VTS_I4 VTS_I4)
ON_EVENT(CMapContainer, IDC_MAP1, 6, SelectBoxDragMap1, VTS_I4 VTS_I4 VTS_I4 VTS_I4)
ON_EVENT(CMapContainer, IDC_MAP1, 7, ExtentsChangedMap1, VTS_NONE)
ON_EVENT(CMapContainer, IDC_MAP1, 8, MapStateMap1, VTS_I4)
ON_EVENT(CMapContainer, IDC_MAP1, 9, OnDrawBackBufferMap1, VTS_I4)
ON_EVENT(CMapContainer, IDC_MAP1, DISPID_DBLCLICK, DblClickMap1, VTS_NONE)
END_EVENTSINK_MAP()
void CMapContainer::DblClickMap1()
{
TRACE("Handling double click on map");
/* rest of code */
}
Pierre