From 63f1f7576e640ca38fb47de1d33612655176e345 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 29 Apr 2015 23:05:15 -0400 Subject: [PATCH] Fixed a dumb typo in windows/tab.c that prevented tab switching from working correctly on Windows. --- windows/tab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/tab.c b/windows/tab.c index 4444d512..d2824a48 100644 --- a/windows/tab.c +++ b/windows/tab.c @@ -33,7 +33,7 @@ static BOOL onWM_NOTIFY(uiControl *c, NMHDR *nm, LRESULT *lResult) case TCN_SELCHANGE: n = SendMessageW(t->hwnd, TCM_GETCURSEL, 0, 0); if (n != (LRESULT) (-1)) { // if we're changing to a real tab - uiControlHide(uiControl(t->pages[n])); + uiControlShow(uiControl(t->pages[n])); // because we only resize the current child on resize, we'll need to trigger an update here // don't call uiParentUpdate(); doing that won't size the content area (so we'll still have a 0x0 content area, for instance) SendMessageW(t->hwnd, msgUpdateChild, 0, 0);