Guest User

Untitled

a guest
Dec 16th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. protected override void WndProc(ref Message m) {
  2. if (m.Msg == 0x20) { // Trap WM_SETCUROR
  3. if ((m.LParam.ToInt32() & 0xffff) == 2) { // Trap HTCAPTION
  4. Cursor.Current = Cursors.Hand;
  5. m.Result = (IntPtr)1; // Processed
  6. return;
  7. }
  8. }
  9. base.WndProc(ref m);
  10. }
Add Comment
Please, Sign In to add comment