fixed spurious debug message when right clicking outside of any items area
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2134,10 +2134,10 @@ long wxTreeCtrl::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
|
|||||||
switch ( nMsg )
|
switch ( nMsg )
|
||||||
{
|
{
|
||||||
case WM_RBUTTONDOWN:
|
case WM_RBUTTONDOWN:
|
||||||
// if the item we are about to right click on
|
// if the item we are about to right click on is not already
|
||||||
// is not already select, remove the entire
|
// selected or if we click outside of any item, remove the
|
||||||
// previous selection
|
// entire previous selection
|
||||||
if (!::IsItemSelected(GetHwnd(), htItem))
|
if ( !htItem || !::IsItemSelected(GetHwnd(), htItem) )
|
||||||
{
|
{
|
||||||
UnselectAll();
|
UnselectAll();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user