diff options
author | Jan Holesovsky <kendy@suse.cz> | 2012-05-14 17:50:43 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-05-15 08:39:32 +0200 |
commit | 64c696fc92a860fdbbe490ca503391b964dd646f (patch) | |
tree | 8f602a179a2e41f24785eee20f299dcec52bacd4 /vcl/inc | |
parent | 83208da599e46dbba39c9e9a5b503bc4e93d4eea (diff) |
aero: Implement a glass menubar on Windows.
We need to default to the Aero colors too, in order to this be really
beautiful; but hopefully already in the current state it is an improvement :-)
Change-Id: I 113039b62320fa76916ba74071e1eebff4d3476c
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/salframe.hxx | 6 | ||||
-rw-r--r-- | vcl/inc/svdata.hxx | 1 | ||||
-rw-r--r-- | vcl/inc/win/salframe.h | 6 |
3 files changed, 13 insertions, 0 deletions
diff --git a/vcl/inc/salframe.hxx b/vcl/inc/salframe.hxx index e72648316992..e210287871ca 100644 --- a/vcl/inc/salframe.hxx +++ b/vcl/inc/salframe.hxx @@ -279,6 +279,12 @@ public: // (e.g. input methods, printer update handlers). long CallCallback( sal_uInt16 nEvent, const void* pEvent ) const { return m_pProc ? m_pProc( m_pWindow, const_cast<SalFrame*>(this), nEvent, pEvent ) : 0; } + + /// Update the region that is supposed to be handled by the window manager + /// + /// This is primarily for Windows Aero theme in order to be able to draw + /// to the Glass area. + virtual void extendWindowManagerFrameNative( int /*nLeft*/, int /*nRight*/, int /*nTop*/, int /*nBottom*/ ) {} }; diff --git a/vcl/inc/svdata.hxx b/vcl/inc/svdata.hxx index 242d58cea052..c21d580c20be 100644 --- a/vcl/inc/svdata.hxx +++ b/vcl/inc/svdata.hxx @@ -310,6 +310,7 @@ struct ImplSVNWFData bool mbToolboxDropDownSeparate:1; // two adjacent buttons for // toolbox dropdown buttons bool mbFlatMenu:1; // no popup 3D border + bool mbTransparentMenubar:1; //< keep the background of the menubar transparent; needed for the Aero theme bool mbOpenMenuOnF10:1; // on gnome the first menu opens on F10 bool mbNoFocusRects:1; // on Aqua focus rects are not used bool mbNoBoldTabFocus:1; // on Aqua and Gnome the focused tab has not bold text diff --git a/vcl/inc/win/salframe.h b/vcl/inc/win/salframe.h index 0d4e206e8507..b8056696b7f8 100644 --- a/vcl/inc/win/salframe.h +++ b/vcl/inc/win/salframe.h @@ -144,6 +144,12 @@ public: virtual void BeginSetClipRegion( sal_uIntPtr nRects ); virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight ); virtual void EndSetClipRegion(); + + /// Update the region that is supposed to be handled by the window manager + /// + /// This is primarily for Windows Aero theme in order to be able to draw + /// to the Glass area. + virtual void extendWindowManagerFrameNative( int nLeft, int nRight, int nTop, int nBottom ); }; void ImplSalGetWorkArea( HWND hWnd, RECT *pRect, const RECT *pParentRect ); |