git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14231
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
parent = parent->GetParent();
}
- bool iconized;
+ bool iconized = FALSE;
+ // wxMotif doesn't yet have a wxTopLevelWindow implementation
+#ifdef __WXMOTIF__
+ wxFrame *winTop = wxDynamicCast(parent, wxFrame);
+#else
wxTopLevelWindow *winTop = wxDynamicCast(parent, wxTopLevelWindow);
+#endif
if ( winTop )
{
iconized = winTop->IsIconized();
}
+#ifndef __WXMOTIF__
else
{
wxFAIL_MSG(wxT("should have a top level parent!"));
iconized = FALSE;
}
-
+#endif
+
if ( iconized )
{
event.Skip();