[ wxwindows-Bugs-1407848 ] wxFrame::HandleSize() uses m_iconized incorrectly

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ wxwindows-Bugs-1407848 ] wxFrame::HandleSize() uses m_iconized incorrectly

SourceForge.net
Bugs item #1407848, was opened at 2006-01-16 21:08
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1407848&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxMSW specific
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Smedis (smedis)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxFrame::HandleSize() uses m_iconized incorrectly

Initial Comment:
If 'id' is SIZE_RESTORED or SIZE_MAXIMIZED,
wxFrame::HandleSize() is checking the variable
m_iconized to see if the frame was previously
iconized.

However, this variable may have already been updated
by a call to wxTopLevelWindowMSW::IsIconized().

In my case, I'm handling EVT_MOVE. In my handler, I
call IsIconized().

My EVT_MOVE handler is called before
wxFrame::HandleSize() is called, and its logic will
not work.

Either wxFrame::IsIconized() should use a new
variable to track the previous state, or the variable
m_iconized should be managed differently.

As a workaround, I used ::IsIconic() instead in my
code, but it doesn't feel very robust.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1407848&group_id=9863

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]