diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-25 15:09:01 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-25 15:09:01 -0400 |
| commit | 51469fffb57cef9624f53a744409475fc14c6208 (patch) | |
| tree | 363dddc89fe09cbbd7a88031bb5213480a256aaf /stdwndclass_windows.go | |
| parent | e7327f237867157955657a781be148a559f4bd52 (diff) | |
Removed constants from common_windows.go. Almost done!
Diffstat (limited to 'stdwndclass_windows.go')
| -rw-r--r-- | stdwndclass_windows.go | 5 |
1 files changed, 3 insertions, 2 deletions
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) } |
