Use accessor functions to modify wxPG internal flags.

Use wxPropertyGrid::SetInternalFlag and ClearInternalFlag functions to set/clear appropriate internal flags instead of doing direct modifications on the member variable.
This commit is contained in:
Artur Wieczorek
2015-05-23 18:28:42 +02:00
parent 204a3d229c
commit 74c04c0179

View File

@@ -575,7 +575,7 @@ void wxPropertyGridManager::Init2( int style )
m_pPropGrid->SetId(useId); m_pPropGrid->SetId(useId);
m_pPropGrid->m_iFlags |= wxPG_FL_IN_MANAGER; m_pPropGrid->SetInternalFlag(wxPG_FL_IN_MANAGER);
m_pState = m_pPropGrid->m_pState; m_pState = m_pPropGrid->m_pState;
@@ -1632,7 +1632,7 @@ void wxPropertyGridManager::RecreateControls()
if ( m_windowStyle & wxPG_DESCRIPTION ) if ( m_windowStyle & wxPG_DESCRIPTION )
{ {
// Has help box. // Has help box.
m_pPropGrid->m_iFlags |= (wxPG_FL_NOSTATUSBARHELP); m_pPropGrid->SetInternalFlag(wxPG_FL_NOSTATUSBARHELP);
if ( !m_pTxtHelpCaption ) if ( !m_pTxtHelpCaption )
{ {
@@ -1661,7 +1661,7 @@ void wxPropertyGridManager::RecreateControls()
else else
{ {
// No help box. // No help box.
m_pPropGrid->m_iFlags &= ~(wxPG_FL_NOSTATUSBARHELP); m_pPropGrid->ClearInternalFlag(wxPG_FL_NOSTATUSBARHELP);
if ( m_pTxtHelpCaption ) if ( m_pTxtHelpCaption )
m_pTxtHelpCaption->Destroy(); m_pTxtHelpCaption->Destroy();