diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-13 13:11:17 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-13 13:11:17 -0400 |
| commit | 719cab87420d29a57223b356556c55ce40cfe46d (patch) | |
| tree | 6f4827f567ab11d73135d4d6e31ec9153dba42ca /stdwndclass_windows.go | |
| parent | eead01b1761be54d93ceb825215984f315de6db7 (diff) | |
Migrated cursors_windows.go and icons_windows.go.
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) } |
