This commit is contained in:
NaBian committed 2020-05-12 23:59:46 +08:00
1 parent 1fa4c20a91
commit f4a0c6fd4f
7 files changed
+112 -30

No files matched your search

@@ -75,7 +75,7 @@ namespace HandyControl.Controls
}
}
protected virtual IntPtr HwndSourceHook(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
private IntPtr HwndSourceHook(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
{
if (msg <= InteropValues.WM_WINDOWPOSCHANGED)
{
@@ -167,7 +167,7 @@ namespace HandyControl.Controls
protected override void OnSourceInitialized(EventArgs e)
{
var hwndSource = HwndSource.FromHwnd(new WindowInteropHelper(this).Handle);
var hwndSource = this.GetHwndSource();
if (hwndSource != null)
{
hwndSource.AddHook(HwndSourceHook);