using_20non-standard_20mouse_20pointers
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
using_20non-standard_20mouse_20pointers [2018/03/31 13:19] – external edit 127.0.0.1 | using_20non-standard_20mouse_20pointers [2024/01/05 00:21] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====Using non-standard mouse pointers===== | =====Using non-standard mouse pointers===== | ||
- | // by Richard Russell, October 2007//\\ \\ You can select the mouse pointer (cursor) from any of the standard shapes using the [[http:// | + | // by Richard Russell, October 2007//\\ \\ You can select the mouse pointer (cursor) from any of the standard shapes using the [[http:// |
+ | |||
+ | <code bb4w> | ||
IMAGE_CURSOR = 2 | IMAGE_CURSOR = 2 | ||
LR_LOADFROMFILE = 16 | LR_LOADFROMFILE = 16 | ||
cursor$ = " | cursor$ = " | ||
SYS " | SYS " | ||
- | Note that the **2** signifies that the file contains a cursor image.\\ \\ Having obtained the handle (in this case **hHand%**) you can use it to set the mouse pointer to this shape as follows:\\ \\ | + | </ |
+ | |||
+ | Note that the **2** signifies that the file contains a cursor image.\\ \\ Having obtained the handle (in this case **hHand%**) you can use it to set the mouse pointer to this shape as follows: | ||
+ | |||
+ | <code bb4w> | ||
WM_MOUSEMOVE = 512 | WM_MOUSEMOVE = 512 | ||
@hcsr% = hHand% | @hcsr% = hHand% | ||
SYS " | SYS " | ||
+ | </ | ||
+ | |||
The **SendMessage** is simply to force the cursor to change immediately, | The **SendMessage** is simply to force the cursor to change immediately, |
using_20non-standard_20mouse_20pointers.1522502389.txt.gz · Last modified: 2024/01/05 00:16 (external edit)