diff options
Diffstat (limited to 'alf/alfnotebook.cpp')
| -rw-r--r-- | alf/alfnotebook.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/alf/alfnotebook.cpp b/alf/alfnotebook.cpp index 6679ec4..143defa 100644 --- a/alf/alfnotebook.cpp +++ b/alf/alfnotebook.cpp @@ -306,6 +306,7 @@ ALF__NotebookWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) RECT oldR; GetWindowRect(priv->hwndTabCtrl, &oldR); + TabCtrl_AdjustRect(priv->hwndTabCtrl, FALSE, &oldR); HDWP hdwp = BeginDeferWindowPos(n+1); @@ -328,7 +329,9 @@ ALF__NotebookWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) EndDeferWindowPos(hdwp); - if (priv->hTheme && ((oldR.bottom - oldR.top) != (r.bottom - r.top))) { + if (priv->hTheme + && !(priv->flags & ALF_NOTEBOOK_SOLID_TAB_BACKGROUND) + && ((oldR.bottom - oldR.top) != (r.bottom - r.top))) { // only needed when height changes, since bg is tiled horizontally HWND panel = ALF_NotebookSelectedPanel(hwnd); if (panel != NULL) |
