Fixed errors in the previous commit.

This commit is contained in:
Pietro Gagliardi 2015-06-01 13:02:43 -04:00
parent e7801222be
commit b540d93e3d
2 changed files with 7 additions and 7 deletions

View File

@ -12,9 +12,9 @@ _UI_EXTERN HWND uiWindowsUtilCreateControlHWND(DWORD dwExStyle, LPCWSTR lpClassN
_UI_EXTERN void uiWindowsUtilDestroy(HWND hwnd); _UI_EXTERN void uiWindowsUtilDestroy(HWND hwnd);
_UI_EXTERN void uiWindowsUtilSetParent(HWND hwnd, uiControl *parent); _UI_EXTERN void uiWindowsUtilSetParent(HWND hwnd, uiControl *parent);
_UI_EXTERN void uiWindowsUtilResize(HWND hwnd, intmax_t x, intmax_t y, intmax_t width, intmax_t height, uiSizing *d); _UI_EXTERN void uiWindowsUtilResize(HWND hwnd, intmax_t x, intmax_t y, intmax_t width, intmax_t height, uiSizing *d);
_UI_EXTERN void uiWIndowsUtilShow(HWND hwnd); _UI_EXTERN void uiWindowsUtilShow(HWND hwnd);
_UI_EXTERN void uiWindowsUtilHide(HWND hwnd); _UI_EXTERN void uiWindowsUtilHide(HWND hwnd);
_UI_EXTERN void uiWIndowsUtilEnable(HWND hwnd); _UI_EXTERN void uiWindowsUtilEnable(HWND hwnd);
_UI_EXTERN void uiWindowsUtilDisable(HWND hwnd); _UI_EXTERN void uiWindowsUtilDisable(HWND hwnd);
_UI_EXTERN uintptr_t uiWindowsUtilStartZOrder(HWND hwnd); _UI_EXTERN uintptr_t uiWindowsUtilStartZOrder(HWND hwnd);
_UI_EXTERN uintptr_t uiWindowsUtilSetZOrder(HWND hwnd, uintptr_t insertAfter); _UI_EXTERN uintptr_t uiWindowsUtilSetZOrder(HWND hwnd, uintptr_t insertAfter);

View File

@ -116,7 +116,7 @@ static void recreateUpDown(struct spinbox *s)
SendMessageW(s->updown, UDM_SETPOS32, 0, (LPARAM) current); SendMessageW(s->updown, UDM_SETPOS32, 0, (LPARAM) current);
} }
if (uiControlContainerVisible(uiControl(s))) if (uiControlContainerVisible(uiControl(s)))
uiWIndowsUtilShow(s->updown); uiWindowsUtilShow(s->updown);
s->inhibitChanged = FALSE; s->inhibitChanged = FALSE;
} }
@ -135,10 +135,10 @@ static void spinboxResize(uiControl *c, intmax_t x, intmax_t y, intmax_t width,
f(s->hwnd); \ f(s->hwnd); \
f(s->updown); \ f(s->updown); \
} }
COMMIT(Show, uiWIndowsUtilShow) COMMIT(Show, uiWindowsUtilShow)
COMMIT(Hide, uiWIndowsUtilHide) COMMIT(Hide, uiWindowsUtilHide)
COMMIT(Enable, uiWIndowsUtilEnable) COMMIT(Enable, uiWindowsUtilEnable)
COMMIT(Disable, uiWIndowsUtilDisable) COMMIT(Disable, uiWindowsUtilDisable)
// TODO does it go here relative of other things? // TODO does it go here relative of other things?
static void defaultOnChanged(uiSpinbox *s, void *data) static void defaultOnChanged(uiSpinbox *s, void *data)