Skip to content

Instantly share code, notes, and snippets.

@LaraSQP
Last active September 22, 2021 21:29
Show Gist options
  • Save LaraSQP/4802c700fea2667f68132332d79089bb to your computer and use it in GitHub Desktop.
Save LaraSQP/4802c700fea2667f68132332d79089bb to your computer and use it in GitHub Desktop.
private const int WM_NCHITTEST = 0x84;
protected override void WndProc( ref Message msg )
{
if( msg.Msg == WM_NCHITTEST )
{
// A result of -1 sends mouse events to the underlying window
msg.Result = (IntPtr)( -1 );
return;
}
base.WndProc( ref msg );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment