app: [windows] add missing cursors

Signed-off-by: Egon Elbre <egonelbre@gmail.com>
This commit is contained in:
Egon Elbre
2022-02-21 14:54:35 +02:00
committed by Elias Naur
parent bed5902476
commit b7a42da386
3 changed files with 38 additions and 15 deletions
+14 -7
View File
@@ -115,13 +115,20 @@ const (
HTCLIENT = 1
IDC_ARROW = 32512
IDC_IBEAM = 32513
IDC_HAND = 32649
IDC_CROSS = 32515
IDC_SIZENS = 32645
IDC_SIZEWE = 32644
IDC_SIZEALL = 32646
IDC_APPSTARTING = 32650 // Standard arrow and small hourglass
IDC_ARROW = 32512 // Standard arrow
IDC_CROSS = 32515 // Crosshair
IDC_HAND = 32649 // Hand
IDC_HELP = 32651 // Arrow and question mark
IDC_IBEAM = 32513 // I-beam
IDC_NO = 32648 // Slashed circle
IDC_SIZEALL = 32646 // Four-pointed arrow pointing north, south, east, and west
IDC_SIZENESW = 32643 // Double-pointed arrow pointing northeast and southwest
IDC_SIZENS = 32645 // Double-pointed arrow pointing north and south
IDC_SIZENWSE = 32642 // Double-pointed arrow pointing northwest and southeast
IDC_SIZEWE = 32644 // Double-pointed arrow pointing west and east
IDC_UPARROW = 32516 // Vertical arrow
IDC_WAIT = 32514 // Hour
INFINITE = 0xFFFFFFFF
+16
View File
@@ -734,6 +734,22 @@ func loadCursor(name pointer.CursorName) (syscall.Handle, error) {
curID = windows.IDC_SIZENS
case pointer.CursorGrab:
curID = windows.IDC_SIZEALL
case pointer.CursorTopLeftResize:
curID = windows.IDC_SIZENWSE
case pointer.CursorTopRightResize:
curID = windows.IDC_SIZENESW
case pointer.CursorBottomLeftResize:
curID = windows.IDC_SIZENESW
case pointer.CursorBottomRightResize:
curID = windows.IDC_SIZENWSE
case pointer.CursorLeftResize:
curID = windows.IDC_SIZEWE
case pointer.CursorRightResize:
curID = windows.IDC_SIZEWE
case pointer.CursorTopResize:
curID = windows.IDC_SIZENS
case pointer.CursorBottomResize:
curID = windows.IDC_SIZENS
case pointer.CursorNone:
return 0, nil
}