How to restrict cursor movement by any area?
The author: OlegGG
To restrict cursor movement it is possible by means of function ClipCursor.
For example, we "clamp" the cursor in a rectangle:
RECT r;
r.left = 10;
r.top = 10;
r.right = 20;
r.bottom = 20;
ClipCursor (&r);
To remove restrictions on cursor movement it is possible, transferring functions NULL:
ClipCursor (NULL);
Where to download pictures for buttons?
The author: kenai
For example, here: bitmaps.zip (8,8 Mb)