WXLRESULT rc = 0;
bool isMultiple = (GetWindowStyle() & wxTR_MULTIPLE) != 0;
-#ifndef __SMARTPHONE__
+#if (!defined(_WIN32_WCE)) || (defined(_WIN32_WCE) && (_WIN32_WCE >= 400))
if (nMsg == WM_CONTEXTMENU)
{
wxTreeEvent event( wxEVT_COMMAND_TREE_ITEM_MENU, GetId() );