From 51469fffb57cef9624f53a744409475fc14c6208 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 25 May 2014 15:09:01 -0400 Subject: Removed constants from common_windows.go. Almost done! --- stdwndclass_windows.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'stdwndclass_windows.go') diff --git a/stdwndclass_windows.go b/stdwndclass_windows.go index c2f5079..276e698 100644 --- a/stdwndclass_windows.go +++ b/stdwndclass_windows.go @@ -123,10 +123,11 @@ func registerStdWndClass(s *sysData) (newClassName string, err error) { return newClassName, nil } +// no need to use/recreate MAKEINTRESOURCE() here as the Windows constant generator already took care of that because Microsoft's headers do already func initWndClassInfo() (err error) { r1, _, err := user32.NewProc("LoadIconW").Call( uintptr(_NULL), - _MAKEINTRESOURCE(_IDI_APPLICATION)) + uintptr(_IDI_APPLICATION)) if r1 == 0 { // failure return fmt.Errorf("error getting window icon: %v", err) } @@ -134,7 +135,7 @@ func initWndClassInfo() (err error) { r1, _, err = user32.NewProc("LoadCursorW").Call( uintptr(_NULL), - _MAKEINTRESOURCE(_IDC_ARROW)) + uintptr(_IDC_ARROW)) if r1 == 0 { // failure return fmt.Errorf("error getting window cursor: %v", err) } -- cgit v1.2.3