summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@nokia.com>2009-05-08 07:09:32 (GMT)
committerMaurice Kalinowski <maurice.kalinowski@nokia.com>2009-05-13 06:10:58 (GMT)
commit03415f5db33ee1d8af15b924f84b547a9ed8020b (patch)
tree7be999e2d180442343b5d040e3078e55a292d521 /src/gui/widgets
parentdcf1867f5715991e233120122f6252b18ccd26e3 (diff)
downloadQt-03415f5db33ee1d8af15b924f84b547a9ed8020b.zip
Qt-03415f5db33ee1d8af15b924f84b547a9ed8020b.tar.gz
Qt-03415f5db33ee1d8af15b924f84b547a9ed8020b.tar.bz2
fix WinCE build
Reviewed-by: thartman
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/qmenu_wince.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/qmenu_wince.cpp b/src/gui/widgets/qmenu_wince.cpp
index 847a623..fbe54fe 100644
--- a/src/gui/widgets/qmenu_wince.cpp
+++ b/src/gui/widgets/qmenu_wince.cpp
@@ -214,10 +214,12 @@ static HWND qt_wce_create_menubar(HWND parentHandle, HINSTANCE resourceHandle, i
mbi.nToolBarId = toolbarID;
if (ptrCreateMenuBar(&mbi)) {
+#ifdef Q_WS_WINCE_WM
// Tell the menu bar that we want to override hot key behaviour.
LPARAM lparam = MAKELPARAM(SHMBOF_NODEFAULT | SHMBOF_NOTIFY,
SHMBOF_NODEFAULT | SHMBOF_NOTIFY);
SendMessage(mbi.hwndMB, SHCMBM_OVERRIDEKEY, VK_TBACK, lparam);
+#endif
return mbi.hwndMB;
}
}