- if ( !m_frozenness++) {
- if (IsShown()) {
- for ( wxWindowList::compatibility_iterator node = GetChildren().GetFirst();
- node;
- node = node->GetNext() )
- {
- wxWindow *child = node->GetData();
- if ( child->IsTopLevel() )
- continue;
- else
- child->Freeze();
- }
- }
- }
-}
-
-void wxTopLevelWindowMSW::Thaw()
-{
- wxASSERT_MSG( m_frozenness > 0, _T("Thaw() without matching Freeze()") );
- if ( --m_frozenness == 0 )
- {
- if ( IsShown() ) {
- for ( wxWindowList::compatibility_iterator node = GetChildren().GetFirst();
- node;
- node = node->GetNext() )
- {
- wxWindow *child = node->GetData();
- if ( child->IsTopLevel() )
- continue;
- else
- child->Thaw();
- }
- }
- }
+ // do nothing: freezing toplevel window causes paint and mouse events
+ // to go through it any TLWs under it, so the best we can do is to freeze
+ // all children -- and wxWindowBase::Freeze() does that