I have a question based on the article by Sergiy Pavlov - Extending the MapPoint ActiveX Control - Pt. I.
I am buildind my own ActiveX Control which incorporates the MapPoint ActiveX Control and I am trying to use the method by Sergiy but it is not working. Debugging Details:
When the following code is executed:
Set m_Map = m_MapPointCtrl.NewMap(geoMapEurope)
Private Sub m_MapPointCtrl_ReadyStateChange() ' is called
If m_MapPointCtrl.ReadyState = READYSTATE_COMPLETE Then
'Initialize and remember
m_hWnd_Frame = hWnd_Frame
... continues in clsMapPoint ...
If m_hWnd_Frame = 0 Then
TWnd.hWnd = m_ParentWnd.hWnd
' TWnd.hWnd gets its value e.g. 2229032
TWnd.hWnd = TWnd.FindChildWindow("ATL:", vbNullString, False).hWnd
.... continues in TWindow ....
FindChildWindow.hWnd = GetWindow(mvarhWnd, GW_CHILD)
' mvarhWnd= 2229032 GW_CHILD =5
GetWindow RETURNS ALWAYS 0
1) Do you have any idea about correcting this problem?
2) The ActiveX Control is being displayed in the Internet Explorer Browser. Does this has anything to do with the problem?