-
-
Save LaraSQP/4802c700fea2667f68132332d79089bb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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