summaryrefslogtreecommitdiff
path: root/stdwndclass_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-03 11:04:07 -0400
committerPietro Gagliardi <[email protected]>2014-07-03 11:04:07 -0400
commit1238936a16170757104879d9593ba9440c70e8cd (patch)
treeeade2af3e7602a986dd7144032c72a18f59c9825 /stdwndclass_windows.go
parentf7dedc8cb05960134234f242042a4f00d88aaf9e (diff)
Added Post() and implemented it on Windows.
Diffstat (limited to 'stdwndclass_windows.go')
-rw-r--r--stdwndclass_windows.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/stdwndclass_windows.go b/stdwndclass_windows.go
index f6dd395..ef6a053 100644
--- a/stdwndclass_windows.go
+++ b/stdwndclass_windows.go
@@ -108,6 +108,10 @@ func stdWndProc(hwnd _HWND, uMsg uint32, wParam _WPARAM, lParam _LPARAM) _LRESUL
return storeSysData(hwnd, uMsg, wParam, lParam)
}
switch uMsg {
+ case msgPost:
+ data := (*interface{})(unsafe.Pointer(lParam))
+ s.post(*data)
+ return 0
case _WM_COMMAND:
id := _HMENU(wParam.LOWORD())
s.childrenLock.Lock()