From 94da27c9bace32d3074d02564f31e52b8690935d Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 7 May 2015 10:14:49 -0400 Subject: [PATCH] Decided not to rewrite the resizing logic in windows/tab.c for now. Adjusted a few comments as well. --- windows/tab.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/tab.c b/windows/tab.c index ee9041b2..bfafdff2 100644 --- a/windows/tab.c +++ b/windows/tab.c @@ -176,7 +176,7 @@ static void resizeTab(struct tab *t, LONG width, LONG height) } // and finally, because we have to resize parents, we have to handle resizes and updates -// TODO see if this approach is /really/ necessary and we can get by with an alteration to the above function and overriding uiControlResize() +// this is also partially where tab navigation is handled static LRESULT CALLBACK tabSubProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT_PTR uIdSubclass, DWORD_PTR dwRefData) { struct tab *t = (struct tab *) dwRefData; @@ -251,7 +251,7 @@ static void tabAppendPage(uiTab *tt, const char *name, uiControl *child) // if this is the first tab, Windows will automatically show it /without/ sending a TCN_SELCHANGE notification // so we need to manually resize the tab ourselves - // don't use uiUpdateParent() for the same reason as in the TCN_SELCHANGE handler + // don't use uiContainerUpdate() for the same reason as in the TCN_SELCHANGE handler SendMessageW(t->hwnd, msgUpdateChild, 0, 0); }