summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2012-11-28 13:45:31 +0100
committerJan Holesovsky <kendy@suse.cz>2012-11-28 17:04:20 +0100
commit264cf8bffa598326b255e352d4e4a7a791cf8409 (patch)
tree4db7438724fd9bf9c156135aa30649b999583133
parent6111068d52a3d60a326866a2bccc998f50b66398 (diff)
Windows: Draw line between the bottom toolbar(s) and viewshell too.
But do _not_ draw such a line for the vertical toolbars, it looks distracting. Change-Id: Icc1083c8c69f26740b5999b11214ee60078ea218
-rw-r--r--vcl/win/source/gdi/salnativewidgets-luna.cxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/vcl/win/source/gdi/salnativewidgets-luna.cxx b/vcl/win/source/gdi/salnativewidgets-luna.cxx
index f61ba64addb6..abed11889bc6 100644
--- a/vcl/win/source/gdi/salnativewidgets-luna.cxx
+++ b/vcl/win/source/gdi/salnativewidgets-luna.cxx
@@ -492,6 +492,26 @@ void impl_drawAeroToolbar( HDC hDC, RECT rc, bool bHorizontal )
HBRUSH hbrush = CreateSolidBrush( RGB( 0xf0, 0xf0, 0xf0 ) );
FillRect( hDC, &rc, hbrush );
DeleteObject( hbrush );
+
+ // darker line to distinguish the toolbar and viewshell
+ // it is drawn only for the horizontal toolbars; it did not look well
+ // when done for the vertical ones too
+ if ( bHorizontal )
+ {
+ long from_x, from_y, to_x, to_y;
+
+ from_x = rc.left;
+ to_x = rc.right;
+ from_y = to_y = rc.top;
+
+ HPEN hpen = CreatePen( PS_SOLID, 1, RGB( 0xa0, 0xa0, 0xa0 ) );
+ SelectObject( hDC, hpen );
+
+ MoveToEx( hDC, from_x, from_y, NULL );
+ LineTo( hDC, to_x, to_y );
+
+ DeleteObject( hpen );
+ }
}
}