代码改变世界

随笔分类 -  WPF

WPF设置窗体最前端显示

2012-09-13 13:25 by xchit, 4284 阅读, 收藏,
摘要: [DllImport("user32.dll")] private static extern int SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, int uFlags); static readonly IntPtr HWND_TOPMOST = new IntPtr(-1); const int SWP_SHOWWINDOW = 0x0040;在load下面代码: //Join WinAPI Setting Focse(); IntPtr h... 阅读全文