Added TREE_ITEM_MENU event to MSW control.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2004-12-28 16:00:35 +00:00
parent 6511d3078e
commit 30f5e34f64

View File

@@ -2219,6 +2219,16 @@ WXLRESULT wxTreeCtrl::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPara
WXLRESULT rc = 0;
bool isMultiple = (GetWindowStyle() & wxTR_MULTIPLE) != 0;
if (nMsg == WM_CONTEXTMENU)
{
wxTreeEvent event( wxEVT_COMMAND_TREE_ITEM_MENU, GetId() );
event.m_item = GetSelection();
event.SetEventObject( this );
GetEventHandler()->ProcessEvent( event );
return rc;
}
if ( (nMsg >= WM_MOUSEFIRST) && (nMsg <= WM_MOUSELAST) )
{
// we only process mouse messages here and these parameters have the