| 12345678910111213141516171819202122232425262728293031323334 |
- using System;
- using System.Runtime.InteropServices;
- using System.Windows;
- namespace Muchinfo.WPF.Controls.WebBrowser
- {
- internal static class Win32
- {
- [StructLayout(LayoutKind.Sequential)]
- public struct POINT
- {
- public int X;
- public int Y;
- public POINT(int x, int y)
- {
- this.X = x;
- this.Y = y;
- }
- public POINT(Point pt)
- {
- X = Convert.ToInt32(pt.X);
- Y = Convert.ToInt32(pt.Y);
- }
- };
- [DllImport("user32.dll")]
- internal static extern bool ClientToScreen(IntPtr hWnd, ref POINT lpPoint);
- [DllImport("user32.dll")]
- internal static extern bool MoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint);
- }
- }
|