Thanks Wilfried;
Is it posible you share this small class in C# with those API functions or where can obtain it ??
I woul be great you.
contempo@ya.com
Thanks in advanced
This is a discussion on Access some hidden features in MapPoint2002 ActiveX control within the MapPoint Desktop Discussion forums, part of the Map Forums category; Thanks Wilfried; Is it posible you share this small class in C# with those API functions or where can obtain ...
Thanks Wilfried;
Is it posible you share this small class in C# with those API functions or where can obtain it ??
I woul be great you.
contempo@ya.com
Thanks in advanced
Hi,
Here are some I regulary use. You have to add the ones you needed for your use.
Code:using System; using System.Text; using System.Xml; using System.IO; using System.Windows.Forms; using System.Runtime.InteropServices; // needed to call external application (winAPI dll) namespace Mestdagh.biz { public static class Win32 { [DllImport("kernel32.dll")] public static extern Boolean AllocConsole(); [DllImport("User32.dll")] public static extern IntPtr FindWindow(string ClassName, string WindowName); [DllImport("User32.dll")] public static extern Boolean PostMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam); [DllImport("User32.dll")] public static extern Boolean PostMessage(IntPtr hWnd, uint Msg, int wParam, int lParam); [DllImport("User32.dll")] public static extern Boolean SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam); [DllImport("User32.dll")] public static extern Boolean SendMessage(IntPtr hWnd, uint Msg, int wParam, int lParam); [DllImport("User32.dll")] public static extern Int32 SetForegroundWindow(int hWnd); [DllImport("User32.dll")] public static extern Boolean EnumChildWindows(int hWndParent, Delegate lpEnumFunc, int lParam); [DllImport("User32.dll")] public static extern Int32 GetWindowText(int hWnd, StringBuilder s, int nMaxCount); [DllImport("User32.dll")] public static extern Int32 GetWindowTextLength(int hwnd); [DllImport("user32.dll", EntryPoint = "GetDesktopWindow")] public static extern int GetDesktopWindow(); [DllImport("User32.dll")] public static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo); }
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
Hi !
Just to let you know, i had some problems with Sergiy's code update for mp2006. Changed the sentence "Private Property Get hWnd_Frame() As Long" in updated mappoint.cls to Public and it works perfect !
Thanks guys ! Great code ...
Can somebody help me to install mappoint 2006 in delphi 2006?
There are currently 1 users browsing this thread. (0 members and 1 guests)