use HasFlag(wxXX) instead of GetWindowStyle() & wxXX; it's more readable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -387,7 +387,7 @@ wxProgressDialog::Update(int value, const wxString& newmsg, bool *skip)
|
|||||||
// so that we return true below and that out [Cancel] handler knew what
|
// so that we return true below and that out [Cancel] handler knew what
|
||||||
// to do
|
// to do
|
||||||
m_state = Finished;
|
m_state = Finished;
|
||||||
if( !(GetWindowStyle() & wxPD_AUTO_HIDE) )
|
if( !HasFlag(wxPD_AUTO_HIDE) )
|
||||||
{
|
{
|
||||||
EnableClose();
|
EnableClose();
|
||||||
DisableSkip();
|
DisableSkip();
|
||||||
@@ -575,7 +575,7 @@ wxProgressDialog::~wxProgressDialog()
|
|||||||
|
|
||||||
void wxProgressDialog::ReenableOtherWindows()
|
void wxProgressDialog::ReenableOtherWindows()
|
||||||
{
|
{
|
||||||
if ( GetWindowStyle() & wxPD_APP_MODAL )
|
if ( HasFlag(wxPD_APP_MODAL) )
|
||||||
{
|
{
|
||||||
delete m_winDisabler;
|
delete m_winDisabler;
|
||||||
m_winDisabler = (wxWindowDisabler *)NULL;
|
m_winDisabler = (wxWindowDisabler *)NULL;
|
||||||
|
Reference in New Issue
Block a user