summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/shutdowniconw32.cxx
diff options
context:
space:
mode:
authorHennes Rohling <hro@openoffice.org>2001-08-20 11:28:43 +0000
committerHennes Rohling <hro@openoffice.org>2001-08-20 11:28:43 +0000
commit5d7e855921bec31a5b32978e495d7b1fe0210918 (patch)
tree5bb4ed694ab9e38ab0c1bf0e409b4db0ab5e7d60 /sfx2/source/appl/shutdowniconw32.cxx
parent518c7a746db854a82d5cf05b3501caf7821b9676 (diff)
#89516# Use default bold font for default menu entry
Diffstat (limited to 'sfx2/source/appl/shutdowniconw32.cxx')
-rw-r--r--sfx2/source/appl/shutdowniconw32.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sfx2/source/appl/shutdowniconw32.cxx b/sfx2/source/appl/shutdowniconw32.cxx
index 7394ad1d5f..d76e43e300 100644
--- a/sfx2/source/appl/shutdowniconw32.cxx
+++ b/sfx2/source/appl/shutdowniconw32.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: shutdowniconw32.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: hro $ $Date: 2001-07-30 16:22:18 $
+ * last change: $Author: hro $ $Date: 2001-08-20 12:28:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -589,6 +589,11 @@ void OnDrawItem(HWND hwnd, LPDRAWITEMSTRUCT lpdis)
ncm.cbSize = sizeof(ncm);
SystemParametersInfo(SPI_GETNONCLIENTMETRICS, 0, (PVOID) &ncm, 0);
+
+ // Print default menu entry with bold font
+ if ( lpdis->itemState & ODS_DEFAULT )
+ ncm.lfMenuFont.lfWeight = FW_BOLD;
+
hfntOld = (HFONT) SelectObject(lpdis->hDC, (HFONT) CreateFontIndirect( &ncm.lfMenuFont ));