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
Submitted By: Smedis (smedis)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxFrame::HandleSize() uses m_iconized incorrectly
If 'id' is SIZE_RESTORED or SIZE_MAXIMIZED,
wxFrame::HandleSize() is checking the variable
m_iconized to see if the frame was previously
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
My EVT_MOVE handler is called before
wxFrame::HandleSize() is called, and its logic will
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.