diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-25 15:49:07 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-25 15:49:07 +0000 |
commit | cefec54dec3fb9cda93dd0a2c85e56891afe13e2 (patch) | |
tree | d3d2f6afedc5876302a892eb998bb98a6562872b /plugins/ShellExt/src/shlcom.cpp | |
parent | 2b380e915b686d4aa1c311a9ca59adebce9cec53 (diff) |
Windows XP related fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@5830 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ShellExt/src/shlcom.cpp')
-rw-r--r-- | plugins/ShellExt/src/shlcom.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ShellExt/src/shlcom.cpp b/plugins/ShellExt/src/shlcom.cpp index b9d9be7191..46a1aebc65 100644 --- a/plugins/ShellExt/src/shlcom.cpp +++ b/plugins/ShellExt/src/shlcom.cpp @@ -940,11 +940,11 @@ HRESULT TShlComRec::HandleMenuMsg2(UINT uMsg, WPARAM wParam, LPARAM lParam, LRES // don't check if it's really a menu
MEASUREITEMSTRUCT *msi = (MEASUREITEMSTRUCT*)lParam;
TMenuDrawInfo *psd = (TMenuDrawInfo*)msi->itemData;
- NONCLIENTMETRICSA ncm;
- ncm.cbSize = sizeof(ncm);
+ NONCLIENTMETRICS ncm;
+ ncm.cbSize = (VistaOrLater) ? sizeof(ncm) : offsetof(NONCLIENTMETRICS, iPaddedBorderWidth);
SystemParametersInfo(SPI_GETNONCLIENTMETRICS, 0, &ncm, 0);
// create the font used in menus, this font should be cached somewhere really
- HFONT hFont = CreateFontIndirectA(&ncm.lfMenuFont);
+ HFONT hFont = CreateFontIndirect(&ncm.lfMenuFont);
// select in the font
HFONT hOldFont = (HFONT)SelectObject(hMemDC, hFont);
// default to an icon
|