summaryrefslogtreecommitdiff
path: root/prev/wintable/resize.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-12-11 20:37:59 -0500
committerPietro Gagliardi <[email protected]>2015-12-11 20:37:59 -0500
commitf8e3f12ab02b528f2a05a4f713d7af7ea8e44b42 (patch)
tree82dedf4d37f0f6d31e88ebb2ca1ce6499dead261 /prev/wintable/resize.h
parente34c561ed5bedeb180437ec165882b98d70d38c1 (diff)
LET'S GET THIS FINAL REWRITE EVER STARTED
Diffstat (limited to 'prev/wintable/resize.h')
-rw-r--r--prev/wintable/resize.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/prev/wintable/resize.h b/prev/wintable/resize.h
new file mode 100644
index 0000000..7805bd9
--- /dev/null
+++ b/prev/wintable/resize.h
@@ -0,0 +1,21 @@
+// 7 december 2014
+
+// TODO why doesn't this trigger on first show?
+// TODO see if there's anything not metaphor related in the last bits of the scrollbar series
+// TODO rename this to boot
+// TODO merge with update.h?
+
+HANDLER(resizeHandler)
+{
+ WINDOWPOS *wp;
+
+ if (uMsg != WM_WINDOWPOSCHANGED)
+ return FALSE;
+ wp = (WINDOWPOS *) lParam;
+ if ((wp->flags & SWP_NOSIZE) != 0)
+ return FALSE;
+ // TODO redraw everything?
+ update(t, TRUE);
+ *lResult = 0;
+ return TRUE;
+}