How to set a custom cursor shape when handling WM_NCHITTEST?
I have a winform that has it's BorderStyle set to FormBorderStyle.None, and I've implemented a bottom right corner scaling system using the following system: protected override void WndProc(ref Message m) { if (m.Msg == 0x84) { // WM_NCHITTEST Point pos = new Point(m.LParam.ToInt32()); pos = this.PointToClient(pos); if (pos.X >= this.ClientSize.Width - cGrip && pos.Y >= this.ClientSize.Height - cGrip) { m.Result = (IntPtr)17; // HTBOTTOMRIGHT return; } } base.WndProc(ref m); } This system seems to be changing my mouse sprite when it's within range: (A visual example can be observed in the 1st
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.