MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / OnSourceInitialized

Method OnSourceInitialized

loader/MainWindow.xaml.cs:48–55  ·  view source on GitHub ↗
(EventArgs e)

Source from the content-addressed store, hash-verified

46 }
47
48 protected override void OnSourceInitialized(EventArgs e)
49 {
50 base.OnSourceInitialized(e);
51
52 var hwnd = new WindowInteropHelper(this).EnsureHandle();
53 var source = HwndSource.FromHwnd(hwnd);
54 source.AddHook(new HwndSourceHook(WndProc));
55 }
56
57 private IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wp, IntPtr lp, ref bool handled)
58 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected