Use wxPropertyGrid::HasInternalFlag() function to check internal flags.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Artur Wieczorek
2014-09-20 19:57:47 +00:00
parent a3611b8190
commit c1741cf677
2 changed files with 2 additions and 2 deletions

View File

@@ -1226,7 +1226,7 @@ bool wxSystemColourProperty::QueryColourFromUser( wxVariant& variant ) const
wxASSERT( propgrid ); wxASSERT( propgrid );
// Must only occur when user triggers event // Must only occur when user triggers event
if ( !(propgrid->GetInternalFlags() & wxPG_FL_IN_HANDLECUSTOMEDITOREVENT) ) if ( !propgrid->HasInternalFlag(wxPG_FL_IN_HANDLECUSTOMEDITOREVENT) )
return res; return res;
wxColourPropertyValue val = GetVal(); wxColourPropertyValue val = GetVal();

View File

@@ -1640,7 +1640,7 @@ wxPGWindowList wxPGCheckBoxEditor::CreateControls( wxPropertyGrid* propGrid,
if ( !property->IsValueUnspecified() ) if ( !property->IsValueUnspecified() )
{ {
if ( propGrid->GetInternalFlags() & wxPG_FL_ACTIVATION_BY_CLICK ) if ( propGrid->HasInternalFlag(wxPG_FL_ACTIVATION_BY_CLICK) )
{ {
// Send the event to toggle the value (if mouse cursor is on the item) // Send the event to toggle the value (if mouse cursor is on the item)
wxPoint point = cb->ScreenToClient(::wxGetMousePosition()); wxPoint point = cb->ScreenToClient(::wxGetMousePosition());