summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-11 07:50:00 -0500
committerPietro Gagliardi <[email protected]>2014-02-11 07:50:00 -0500
commit6ae39f57a299508ed02818dc13a51acec883596a (patch)
tree0ee3dc8943056609e14d01810bb66c33e1d3ecf8 /main.go
parent07f92bb8d939c04ee2777739b05d8bd975ad9e8d (diff)
Added window minimum sizes.
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.go b/main.go
index 7129a7e..ef2db67 100644
--- a/main.go
+++ b/main.go
@@ -87,6 +87,11 @@ func wndProc(hwnd HWND, msg uint32, wParam WPARAM, lParam LPARAM) LRESULT {
MB_OK)
}
return 0
+ case WM_GETMINMAXINFO:
+ mm := lParam.MINMAXINFO()
+ mm.PtMinTrackSize.X = 320
+ mm.PtMinTrackSize.Y = 240
+ return 0
case WM_CLOSE:
err := DestroyWindow(hwnd)
if err != nil {