Got rid of the reverse HWND->sysData lookup for now, to see if there's a mistake elsewhere. Now we're up to a panic... with Success...
This commit is contained in:
parent
cee78198e4
commit
88363e131c
|
@ -16,7 +16,7 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func stdWndProc(hwnd _HWND, uMsg uint32, wParam _WPARAM, lParam _LPARAM) _LRESULT {
|
func stdWndProc(hwnd _HWND, uMsg uint32, wParam _WPARAM, lParam _LPARAM) _LRESULT {
|
||||||
sysData := getSysData(hwnd)
|
// sysData := getSysData(hwnd)
|
||||||
switch uMsg {
|
switch uMsg {
|
||||||
case _WM_COMMAND:
|
case _WM_COMMAND:
|
||||||
id := wParam.LOWORD()
|
id := wParam.LOWORD()
|
||||||
|
@ -32,10 +32,10 @@ func stdWndProc(hwnd _HWND, uMsg uint32, wParam _WPARAM, lParam _LPARAM) _LRESUL
|
||||||
// TODO
|
// TODO
|
||||||
return 0
|
return 0
|
||||||
case _WM_CLOSE:
|
case _WM_CLOSE:
|
||||||
if sysData.closing != nil {
|
/* if sysData.closing != nil {
|
||||||
sysData.closing <- struct{}{}
|
sysData.closing <- struct{}{}
|
||||||
}
|
}
|
||||||
return 0
|
*/ return 0
|
||||||
default:
|
default:
|
||||||
r1, _, _ := defWindowProc.Call(
|
r1, _, _ := defWindowProc.Call(
|
||||||
uintptr(hwnd),
|
uintptr(hwnd),
|
||||||
|
|
Loading…
Reference in New Issue