summaryrefslogtreecommitdiff
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
commit8869f83d52cd7b4e3358780cfa695ae87526147a (patch)
treeba71fcaa738bd4d3c7ed3d660bc1848b6bd72c34
parent1f247bfd2d7d3c0dc43f616029b314b41304a2d2 (diff)
#89516# Use default bold font for default menu entry
-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 7e149d2668c6..0573b30ae72f 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 ));