欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
WPF popup is always TOP_MOST

Recently I have this bug inherited from my good intern that WPF <Popup/>will always be TOP_MOST in terms of z-index. The bug scenario is thatwhen you have another application (eg. notepad.exe) going on top of myWPF application (with Popup launched), Popup will be top most eventhough notepad appears on top of my app. So to fix this, I'm using someold Win32 tricks :-)

[DllImport("user32", EntryPoint = "SetWindowPos")]
private static extern int SetWindowPos(IntPtr hwnd, int hwndInsertAfter, int x, int y, int cx, int cy, int wFlags); 

public class MyPopup : Popup
{
  ...
  protected override void OnOpened(EventArgs e)
  {
    IntPtr hwnd = ((HwndSource)PresentationSource.FromVisual(this.Child)).Handle;
    SetWindowPos(hwnd, -2, posX, posY, (int)this.Width, (int)this.Height, 0);
  }
}
 
本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
鎖屏的一個(gè)有趣的問(wèn)題:HWND
VC6.0 SetWindowPos()
C++ 使得窗口置頂(終極方案)
WPF窗體不獲取輸入焦點(diǎn)(開(kāi)發(fā)屏幕鍵盤(pán)必備)
設置WPF窗口相對于非WPF窗口的位置
WPF 開(kāi)發(fā)的實(shí)用小工具(附源碼)持續更新
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久