Пример #1
0
// delegate Windows GUI messsage
func delegateProc(hWnd win.HWND, message uint, wParam uintptr, lParam uintptr, pParam uintptr, pHandled *int) int {
	switch message {
	case win.WM_DESTROY:
		log.Println("closing window ...")
		win.PostQuitMessage(0)
		*pHandled = 1
	}
	return 0
}
Пример #2
0
func (app *Application) Exit(exitCode int) {
	app.exiting = true
	app.exitCode = exitCode
	win.PostQuitMessage(int32(exitCode))
}