func WndProc(hwnd syscall.Handle, msg uint32, wparam, lparam uintptr) (rc uintptr) { switch msg { case wingui.WM_CREATE: rc = wingui.DefWindowProc(hwnd, msg, wparam, lparam) case wingui.WM_SIZE: cef.WindowResized(unsafe.Pointer(hwnd)) case wingui.WM_CLOSE: wingui.DestroyWindow(hwnd) case wingui.WM_DESTROY: cef.QuitMessageLoop() default: rc = wingui.DefWindowProc(hwnd, msg, wparam, lparam) } return }
func OnDestroyWindow() { cef.QuitMessageLoop() }