Update FormMain.xaml.vb

修复 UAC 阻止文件拖拽
This commit is contained in:
wuliaodexiaoluo
2024-03-19 13:56:11 +08:00
committed by GitHub
parent 65ca2e0cf4
commit eb195373ea
+2
View File
@@ -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)