wxWidgets/samples/treectrl
Vadim Zeitlin 22993989b4 Don't send wxEVT_COMMAND_TREE_ITEM_MENU event without valid item in wxMSW.
The generic wxTreeCtrl version only sends this event when the mouse is right
clicked on a valid item so do the same in wxMSW version too for consistency.

This is also consistent with wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK event and
avoids strange problems with unexpected wxEVT_COMMAND_TREE_ITEM_MENU events
generated on right double click.

Finally, replace the checks for item validity in the event handler in the
sample with asserts which should loudly complain if it happens to be invalid.

Closes #11226.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-10-24 22:40:52 +00:00
..
checked.xpm Use xpms for checked/unchecked states instead of drawing them (yielded junk) 2008-10-17 11:58:39 +00:00
icon1.xpm made all XPM const to avoid warnings from mingw32 4.0 and adopt the code accordingly (patch 1872384) 2008-01-16 01:39:44 +00:00
icon2.xpm made all XPM const to avoid warnings from mingw32 4.0 and adopt the code accordingly (patch 1872384) 2008-01-16 01:39:44 +00:00
icon3.xpm made all XPM const to avoid warnings from mingw32 4.0 and adopt the code accordingly (patch 1872384) 2008-01-16 01:39:44 +00:00
icon4.xpm made all XPM const to avoid warnings from mingw32 4.0 and adopt the code accordingly (patch 1872384) 2008-01-16 01:39:44 +00:00
icon5.xpm made all XPM const to avoid warnings from mingw32 4.0 and adopt the code accordingly (patch 1872384) 2008-01-16 01:39:44 +00:00
makefile.bcc Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
makefile.gcc Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
Makefile.in Rebake. 2010-01-09 19:56:18 +00:00
makefile.unx Rebake from clean wx tree. 2010-01-04 00:45:45 +00:00
makefile.vc Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
makefile.wat Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
state1.xpm use transparent icons and clear the DC before drawing them to fix the background of state icons appearance (part of #9591) 2008-09-14 19:15:19 +00:00
state2.xpm use transparent icons and clear the DC before drawing them to fix the background of state icons appearance (part of #9591) 2008-09-14 19:15:19 +00:00
state3.xpm use transparent icons and clear the DC before drawing them to fix the background of state icons appearance (part of #9591) 2008-09-14 19:15:19 +00:00
state4.xpm use transparent icons and clear the DC before drawing them to fix the background of state icons appearance (part of #9591) 2008-09-14 19:15:19 +00:00
state5.xpm use transparent icons and clear the DC before drawing them to fix the background of state icons appearance (part of #9591) 2008-09-14 19:15:19 +00:00
treectrl_vc7.vcproj Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
treectrl_vc8.vcproj Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
treectrl_vc9.vcproj Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
treectrl.bkl add headers to the samples' bakefiles so that they show up in MSVC project files 2009-03-04 11:47:32 +00:00
treectrl.dsp Rebake from clean wx tree. 2010-01-04 00:45:45 +00:00
treetest.cpp Don't send wxEVT_COMMAND_TREE_ITEM_MENU event without valid item in wxMSW. 2010-10-24 22:40:52 +00:00
treetest.h Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
unchecked.xpm Use xpms for checked/unchecked states instead of drawing them (yielded junk) 2008-10-17 11:58:39 +00:00