View Single Post

  #1 (permalink)  
Old 03-30-2004
Anonymous Anonymous is offline
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Map Point ActiveX in MFC View (MDI application)

Did somebody knows how to embed a MapPointCtrl into FormView in MFC.
I tried to use
BOOL CRaw_com1Dlg::PreTranslateMessage(MSG* pMsg)
{
// for modeless processing (or modal)
ASSERT(m_hWnd != NULL);
ASSERT(::IsWindow(m_hWnd));

if (((CLEDOccManager*)afxOccManager)->IsDialogMessageHACK(this, pMsg))
return TRUE;

// filter both messages to dialog and from children
return PreTranslateInput(pMsg);
}
from dialog based application, but when I click on the Map the application got a Stack overflow.
Reply With Quote