diff --git a/windows/tab.c b/windows/tab.c index 09d8abfb..d2cbd62f 100644 --- a/windows/tab.c +++ b/windows/tab.c @@ -156,7 +156,7 @@ void addPage(uiTab *tt, const char *name, uiControl *child) // (TODO verify that) // so we need to manually resize the tab ourselves // don't use uiUpdateParent() for the same reason as in the TCN_SELCHANGE handler - SendMessageW(uiControlHWND(c), msgUpdateChild, 0, 0); + SendMessageW(hwnd, msgUpdateChild, 0, 0); } uiTab *uiNewTab(void) diff --git a/windows/window.c b/windows/window.c index 16ea5bac..81fd8ca7 100644 --- a/windows/window.c +++ b/windows/window.c @@ -111,7 +111,7 @@ static void windowSetTitle(uiWindow *ww, const char *text) uiFree(wtext); } -void uiWindowShow(uiWindow *ww) +static void windowShow(uiWindow *ww) { struct window *w = (struct window *) ww; @@ -125,7 +125,7 @@ void uiWindowShow(uiWindow *ww) logLastError("error calling UpdateWindow() after showing uiWindow for the first time"); } -void uiWindowHide(uiWindow *ww) +static void windowHide(uiWindow *ww) { struct window *w = (struct window *) ww; @@ -142,7 +142,7 @@ static void windowOnClosing(uiWindow *ww, int (*f)(uiWindow *, void *), void *da static void windowSetChild(uiWindow *ww, uiControl *c) { - struct window *w = (struct window *) ww + struct window *w = (struct window *) ww; uiParentSetChild(w->content, c); // don't call uiParentUpdate(); instead, synthesize a resize @@ -150,7 +150,7 @@ static void windowSetChild(uiWindow *ww, uiControl *c) SendMessageW(w->hwnd, msgUpdateChild, 0, 0); } -int uiWindowMargined(uiWindow *ww) +static int windowMargined(uiWindow *ww) { struct window *w = (struct window *) ww; @@ -160,7 +160,7 @@ int uiWindowMargined(uiWindow *ww) // from https://msdn.microsoft.com/en-us/library/windows/desktop/dn742486.aspx#sizingandspacing #define windowMargin 7 -void uiWindowSetMargined(uiWindow *ww, int margined) +static void windowSetMargined(uiWindow *ww, int margined) { struct window *w = (struct window *) ww; @@ -172,7 +172,7 @@ void uiWindowSetMargined(uiWindow *ww, int margined) uiParentUpdate(w->content); } -uiWindow *uiNewWindow(char *title, int width, int height) +uiWindow *uiNewWindow(const char *title, int width, int height) { struct window *w; RECT adjust;