diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-16 09:53:00 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-16 09:53:44 -0400 |
| commit | 8f4788d506c4d1a054b2b713510b021f8f101ea6 (patch) | |
| tree | 03a288cfea9aeb821ea27190d33ec68a000e8073 /new/windows/tab.c | |
| parent | 54c5d551f0d994b6ebb177e2542190220d6638bc (diff) | |
Fixed some build errors in the Windows backend.
Diffstat (limited to 'new/windows/tab.c')
| -rw-r--r-- | new/windows/tab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/new/windows/tab.c b/new/windows/tab.c index 1afef82..09d8abf 100644 --- a/new/windows/tab.c +++ b/new/windows/tab.c @@ -132,7 +132,7 @@ void addPage(uiTab *tt, const char *name, uiControl *child) t->pages = (uiParent **) uiRealloc(t->pages, t->cap * sizeof (uiParent *), "uiParent *[]"); } - hwnd = uiControlHWND(c); + hwnd = uiControlHWND(uiControl(t)); n = SendMessageW(hwnd, TCM_GETITEMCOUNT, 0, 0); parent = uiNewParent((uintptr_t) hwnd); @@ -179,7 +179,7 @@ uiTab *uiNewTab(void) uiWindowsNewControl(uiControl(t), &p); hwnd = uiControlHWND(uiControl(t)); - if ((*fv_SetWindowSubclass)(hwnd, tabSubProc, 0, (DWORD_PTR) c) == FALSE) + if ((*fv_SetWindowSubclass)(hwnd, tabSubProc, 0, (DWORD_PTR) t) == FALSE) logLastError("error subclassing Tab to give it its own resize handler in uiNewTab()"); uiControl(t)->PreferredSize = preferredSize; |
