summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorcsaba <csaba>2023-11-07 14:26:22 (GMT)
committercsaba <csaba>2023-11-07 14:26:22 (GMT)
commit0387ee30db92a410d55a0649267445c5e6f2d5bf (patch)
tree025a8372014938dc57b14e9762be9df209b999fe /win
parenta9c51043b69d0ed4d04761acb1eb5d166232cca3 (diff)
downloadtk-0387ee30db92a410d55a0649267445c5e6f2d5bf.zip
tk-0387ee30db92a410d55a0649267445c5e6f2d5bf.tar.gz
tk-0387ee30db92a410d55a0649267445c5e6f2d5bf.tar.bz2
ttkWinXPTheme.c: Made sure that no separating line appears any longer between the selected ttk::notebook tab and the client area.
Diffstat (limited to 'win')
-rw-r--r--win/ttkWinXPTheme.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/win/ttkWinXPTheme.c b/win/ttkWinXPTheme.c
index a4b53fc..14f62bf 100644
--- a/win/ttkWinXPTheme.c
+++ b/win/ttkWinXPTheme.c
@@ -794,16 +794,20 @@ static void TabElementDraw(
if (state & TTK_STATE_USER1)
partId = TABP_TABITEMLEFTEDGE;
- elementData->procs->DrawThemeBackground(
- elementData->hTheme, elementData->hDC, partId, stateId, &rc, NULL);
-
- if (nbTabsStickBit != TTK_STICK_S) {
+ if (nbTabsStickBit == TTK_STICK_S) {
/*
- * Erase the border
+ * Draw the border and fill into rc
*/
- elementData->procs->DrawThemeEdge(
- elementData->hTheme, elementData->hDC, partId, stateId, &rc,
- BDR_RAISEDINNER, BF_MONO|BF_RECT, NULL);
+ elementData->procs->DrawThemeBackground(
+ elementData->hTheme, elementData->hDC, partId, stateId, &rc, NULL);
+ } else {
+ /*
+ * Draw the fill but no border into rc
+ */
+ RECT rc2 = rc;
+ --rc2.top; --rc2.left; ++rc2.bottom; ++rc2.right;
+ elementData->procs->DrawThemeBackground(
+ elementData->hTheme, elementData->hDC, partId, stateId, &rc2, &rc);
}
if (state & TTK_STATE_SELECTED) {