Advertisement
TheFanatr

SourceInitialized Event Handler for WmGetMinMaxInfo Hook

Mar 15th, 2017
2,224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.17 KB | None | 0 0
  1. SourceInitialized += (s, e) =>
  2. {
  3.     IntPtr handle = (new WindowInteropHelper(this)).Handle;
  4.     HwndSource.FromHwnd(handle).AddHook(new HwndSourceHook(WindowProc));
  5. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement