summaryrefslogtreecommitdiff
path: root/cursors_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-11 16:17:17 -0500
committerPietro Gagliardi <[email protected]>2014-02-11 16:17:17 -0500
commit9b19ee72457586e41da5788f802c6bc55ea7a84b (patch)
treeeea575b4db46d314f27a1da3044a25dea7787dc7 /cursors_windows.go
parent9794814e9375e597d087b94e9643c943f7999f9c (diff)
Moved things that I haven't migated yet out of the way for now.
Diffstat (limited to 'cursors_windows.go')
-rw-r--r--cursors_windows.go41
1 files changed, 0 insertions, 41 deletions
diff --git a/cursors_windows.go b/cursors_windows.go
deleted file mode 100644
index 78fb1f8..0000000
--- a/cursors_windows.go
+++ /dev/null
@@ -1,41 +0,0 @@
-// 8 february 2014
-package main
-
-import (
-// "syscall"
-// "unsafe"
-)
-
-// Predefined cursor resource IDs.
-const (
- IDC_APPSTARTING = 32650
- IDC_ARROW = 32512
- IDC_CROSS = 32515
- IDC_HAND = 32649
- IDC_HELP = 32651
- IDC_IBEAM = 32513
-// IDC_ICON = 32641 // [Obsolete for applications marked version 4.0 or later.]
- IDC_NO = 32648
-// IDC_SIZE = 32640 // [Obsolete for applications marked version 4.0 or later. Use IDC_SIZEALL.]
- IDC_SIZEALL = 32646
- IDC_SIZENESW = 32643
- IDC_SIZENS = 32645
- IDC_SIZENWSE = 32642
- IDC_SIZEWE = 32644
- IDC_UPARROW = 32516
- IDC_WAIT = 32514
-)
-
-var (
- loadCursor = user32.NewProc("LoadCursorW")
-)
-
-func LoadCursor_ResourceID(hInstance HANDLE, lpCursorName uint16) (cursor HANDLE, err error) {
- r1, _, err := loadCursor.Call(
- uintptr(hInstance),
- MAKEINTRESOURCE(lpCursorName))
- if r1 == 0 { // failure
- return NULL, err
- }
- return HANDLE(r1), nil
-}