Anonymous
11-21-2002, 09:12 PM
Hello, I am just wondering how I can get the handle to the main map window in MapPoint 2002.
Thanks
Thanks
Finding MapPoint Map Window HandleAnonymous 11-21-2002, 09:12 PM Hello, I am just wondering how I can get the handle to the main map window in MapPoint 2002. Thanks John Meyer 11-22-2002, 05:48 AM Check out this article/sample program http://www.mp2kmag.com/articles.asp?ArticleID=74 Quote from the article "This can be done using the Windows API functions that are prototyped in “basMain” of the application" Anonymous 11-22-2002, 10:23 AM It seems to me that this will give me a handle to the main app window, but not the map window. The reason I need a handle to the map window itself is that I want to perform my own low level paint operations using the map device context after calling GetDC on the returned handle. Any ideas? baal_2000 04-04-2003, 09:05 AM this should help: http://www.mp2kmag.com/mappoint/discussion/viewtopic.asp?t=3790 l guess Public Property Get hWnd() in class MapPoint is the cure. Sergiy | ||