summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-30 18:03:57 -0400
committerPietro Gagliardi <[email protected]>2014-05-30 18:03:57 -0400
commite5ec4bb159ac3a242f952048001e88fd427c8d00 (patch)
treec700214870f72b61ae1c49cecbfd0e6ff37a2d33
parent4a66f1467bf0ee9a69c0758a53ab6f1425da166d (diff)
Some quick formatting changes to stdwndclass_windows.go.
-rw-r--r--stdwndclass_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdwndclass_windows.go b/stdwndclass_windows.go
index 44af126..3dd677f 100644
--- a/stdwndclass_windows.go
+++ b/stdwndclass_windows.go
@@ -51,6 +51,7 @@ func setWindowLongPtr(hwnd _HWND, what uintptr, value uintptr) {
// we can store a pointer in extra space provided by Windows
// we'll store sysData there
// see http://blogs.msdn.com/b/oldnewthing/archive/2005/03/03/384285.aspx
+
func getSysData(hwnd _HWND) *sysData {
return (*sysData)(unsafe.Pointer(getWindowLongPtr(hwnd, negConst(_GWLP_USERDATA))))
}
@@ -77,7 +78,6 @@ func stdWndProc(unused *sysData) func(hwnd _HWND, uMsg uint32, wParam _WPARAM, l
if s == nil { // not yet saved
return storeSysData(hwnd, uMsg, wParam, lParam)
}
-
switch uMsg {
case _WM_COMMAND:
id := _HMENU(wParam.LOWORD())