From 499bbaeba33ed77d8a43817de6713ba3f70b018d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 7 Mar 2005 02:11:30 +0000 Subject: [PATCH] replaced complicated and not working test for WinCE version with a simple and working test for whether WM_CONTEXTMENU is defined git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/treectrl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index 23722d24ec..e4bd059a26 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -2241,8 +2241,8 @@ WXLRESULT wxTreeCtrl::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPara WXLRESULT rc = 0; bool isMultiple = (GetWindowStyle() & wxTR_MULTIPLE) != 0; -#if (!defined(_WIN32_WCE)) || (defined(_WIN32_WCE) && (_WIN32_WCE >= 400)) - if (nMsg == WM_CONTEXTMENU) +#ifdef WM_CONTEXTMENU + if ( nMsg == WM_CONTEXTMENU ) { wxTreeEvent event( wxEVT_COMMAND_TREE_ITEM_MENU, GetId() ); event.m_item = GetSelection();