diff options
Diffstat (limited to 'stdwndclass_windows.go')
| -rw-r--r-- | stdwndclass_windows.go | 9 |
1 files changed, 2 insertions, 7 deletions
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) } |
