Forráskód Böngészése

Update FormMain.xaml.vb

修复 UAC 阻止文件拖拽
wuliaodexiaoluo 2 éve
szülő
commit
eb195373ea
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      Plain Craft Launcher 2/FormMain.xaml.vb

+ 2 - 0
Plain Craft Launcher 2/FormMain.xaml.vb

@@ -400,6 +400,8 @@ Public Class FormMain
         '    ChangeWindowMessageFilter(&H4A, 1)
         '    ChangeWindowMessageFilter(&H49, 1)
         'End If
+         ChangeWindowMessageFilterEx(hwndDlg, WM_DROPFILES, MSGFLT_ALLOW, NULL);
+         ChangeWindowMessageFilterEx(hwndDlg, 0x0049, MSGFLT_ALLOW, NULL);                                                         
         '切换到首页
         If Not IsNothing(FrmLaunchLeft.Parent) Then FrmLaunchLeft.SetValue(ContentPresenter.ContentProperty, Nothing)
         If Not IsNothing(FrmLaunchRight.Parent) Then FrmLaunchRight.SetValue(ContentPresenter.ContentProperty, Nothing)