define WM_CONTEXTMENU if the standard headers don't

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-04-06 09:18:42 +00:00
parent e60fbfcb6b
commit ed4eede6c2
2 changed files with 5 additions and 3 deletions

View File

@ -644,8 +644,12 @@ typedef struct {
#define VK_OEM_PERIOD 0xBE
#endif
#ifndef WM_CONTEXTMENU
#define WM_CONTEXTMENU 0x007B
#endif
#ifndef WM_UPDATEUISTATE
#define WM_UPDATEUISTATE 0x128
#define WM_UPDATEUISTATE 0x0128
#endif
#ifndef UIS_INITIALIZE

View File

@ -2243,7 +2243,6 @@ WXLRESULT wxTreeCtrl::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPara
WXLRESULT rc = 0;
bool isMultiple = HasFlag(wxTR_MULTIPLE);
#ifdef WM_CONTEXTMENU
if ( nMsg == WM_CONTEXTMENU )
{
wxTreeEvent event( wxEVT_COMMAND_TREE_ITEM_MENU, GetId() );
@ -2256,7 +2255,6 @@ WXLRESULT wxTreeCtrl::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPara
processed = true;
//else: continue with generating wxEVT_CONTEXT_MENU in base class code
}
#endif // WM_CONTEXTMENU
else if ( (nMsg >= WM_MOUSEFIRST) && (nMsg <= WM_MOUSELAST) )
{
// we only process mouse messages here and these parameters have the