Setwindowpos

SetWindowPos 和Z序

参考文档:http://www.cnblogs.com/findumars/p/3948315.html SetWindowPos(hWnd: HWND; {窗口句柄}hWndInsertAfter: HWND; {窗口的 Z 顺序}X, Y: Integer; {位置}cx, cy: Integer; {大小}uFlags: UINT {选项}): BO...

让WPF的Popup不总置顶的解决方案

使用WPF的Popup的时候会发现有一个问题,它总是会置顶,只要Popup的StayOpen不设置为False,它就一直呆在最顶端,挡住其他的窗口。 解决方案是继承Popup重新定义控件PopupEx。 public class PopupEx : Popup    {        public static DependencyProperty Top...