Use HasFlag() instead of GetWindowStyleFlag() to check flags in propgrid sample.
Dedicated method to check flags is more readable.
This commit is contained in:
parent
ab32194e91
commit
0ef325bfdc
@ -959,7 +959,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !(pgman->GetWindowStyleFlag()&wxPG_HIDE_CATEGORIES) )
|
if ( !pgman->HasFlag(wxPG_HIDE_CATEGORIES) )
|
||||||
{
|
{
|
||||||
RT_START_TEST(Collapse_and_GetFirstCategory_and_GetNextCategory)
|
RT_START_TEST(Collapse_and_GetFirstCategory_and_GetNextCategory)
|
||||||
|
|
||||||
@ -1000,7 +1000,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//if ( !(pgman->GetWindowStyleFlag()&wxPG_HIDE_CATEGORIES) )
|
//if ( !pgman->HasFlag(wxPG_HIDE_CATEGORIES) )
|
||||||
{
|
{
|
||||||
RT_START_TEST(Expand_and_GetFirstCategory_and_GetNextCategory)
|
RT_START_TEST(Expand_and_GetFirstCategory_and_GetNextCategory)
|
||||||
|
|
||||||
@ -1045,7 +1045,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
|||||||
pgman = m_pPropGridManager;
|
pgman = m_pPropGridManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
//if ( !(pgman->GetWindowStyleFlag()&wxPG_HIDE_CATEGORIES) )
|
//if ( !pgman->HasFlag(wxPG_HIDE_CATEGORIES) )
|
||||||
{
|
{
|
||||||
RT_START_TEST(RandomCollapse)
|
RT_START_TEST(RandomCollapse)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user