From 719cab87420d29a57223b356556c55ce40cfe46d Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 13 Apr 2014 13:11:17 -0400 Subject: Migrated cursors_windows.go and icons_windows.go. --- stdwndclass_windows.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'stdwndclass_windows.go') diff --git a/stdwndclass_windows.go b/stdwndclass_windows.go index e3368ca..edf0149 100644 --- a/stdwndclass_windows.go +++ b/stdwndclass_windows.go @@ -123,14 +123,9 @@ func registerStdWndClass(s *sysData) (newClassName string, err error) { } func initWndClassInfo() (err error) { - const ( - _IDI_APPLICATION = 32512 - _IDC_ARROW = 32512 - ) - r1, _, err := user32.NewProc("LoadIconW").Call( uintptr(_NULL), - uintptr(_IDI_APPLICATION)) + _MAKEINTRESOURCE(_IDI_APPLICATION)) if r1 == 0 { // failure return fmt.Errorf("error getting window icon: %v", err) } @@ -138,7 +133,7 @@ func initWndClassInfo() (err error) { r1, _, err = user32.NewProc("LoadCursorW").Call( uintptr(_NULL), - uintptr(_IDC_ARROW)) + _MAKEINTRESOURCE(_IDC_ARROW)) if r1 == 0 { // failure return fmt.Errorf("error getting window cursor: %v", err) } -- cgit v1.2.3