git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70481 
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
     item->m_sticky = sticky;
 
     Refresh(false);
     item->m_sticky = sticky;
 
     Refresh(false);
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
 }
 
 bool wxAuiToolBar::GetToolSticky(int tool_id) const
 }
 
 bool wxAuiToolBar::GetToolSticky(int tool_id) const
     if (former_hover != pitem)
     {
         Refresh(false);
     if (former_hover != pitem)
     {
         Refresh(false);
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
     if (former_item != pitem)
     {
         Refresh(false);
     if (former_item != pitem)
     {
         Refresh(false);
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
     {
         m_overflowState = overflow_state;
         Refresh(false);
     {
         m_overflowState = overflow_state;
         Refresh(false);
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
     }
 
     m_overflowState = overflow_state;
     }
 
     m_overflowState = overflow_state;
     m_sizer->SetDimension(0, 0, x, y);
 
     Refresh(false);
     m_sizer->SetDimension(0, 0, x, y);
 
     Refresh(false);
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
 
     // idle events aren't sent while user is resizing frame (why?),
     // but resizing toolbar here causes havoc,
 
     // idle events aren't sent while user is resizing frame (why?),
     // but resizing toolbar here causes havoc,
 
                 // repaint immediately
                 Refresh(false);
 
                 // repaint immediately
                 Refresh(false);
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
 
         m_pressedButton = m_hoverButton;
         m_pressedButton->curState = wxAUI_BUTTON_STATE_PRESSED;
         Refresh();
         m_pressedButton = m_hoverButton;
         m_pressedButton->curState = wxAUI_BUTTON_STATE_PRESSED;
         Refresh();
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
 
         if (!(m_pressedButton->curState & wxAUI_BUTTON_STATE_DISABLED))
         {
 
         if (!(m_pressedButton->curState & wxAUI_BUTTON_STATE_DISABLED))
         {
             m_hoverButton->curState = wxAUI_BUTTON_STATE_NORMAL;
             m_hoverButton = NULL;
             Refresh();
             m_hoverButton->curState = wxAUI_BUTTON_STATE_NORMAL;
             m_hoverButton = NULL;
             Refresh();
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
         }
 
         if (button->curState != wxAUI_BUTTON_STATE_HOVER)
         {
             button->curState = wxAUI_BUTTON_STATE_HOVER;
             Refresh();
         }
 
         if (button->curState != wxAUI_BUTTON_STATE_HOVER)
         {
             button->curState = wxAUI_BUTTON_STATE_HOVER;
             Refresh();
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
             m_hoverButton = button;
             return;
         }
             m_hoverButton = button;
             return;
         }
             m_hoverButton->curState = wxAUI_BUTTON_STATE_NORMAL;
             m_hoverButton = NULL;
             Refresh();
             m_hoverButton->curState = wxAUI_BUTTON_STATE_NORMAL;
             m_hoverButton = NULL;
             Refresh();
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
         m_hoverButton->curState = wxAUI_BUTTON_STATE_NORMAL;
         m_hoverButton = NULL;
         Refresh();
         m_hoverButton->curState = wxAUI_BUTTON_STATE_NORMAL;
         m_hoverButton = NULL;
         Refresh();
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
             {
                 SetTabOffset(GetTabOffset()-1);
                 Refresh();
             {
                 SetTabOffset(GetTabOffset()-1);
                 Refresh();
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
             }
         }
         else
         {
             SetTabOffset(GetTabOffset()+1);
             Refresh();
             }
         }
         else
         {
             SetTabOffset(GetTabOffset()+1);
             Refresh();
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
         }
     }
     else if (button == wxAUI_BUTTON_WINDOWLIST)
         }
     }
     else if (button == wxAUI_BUTTON_WINDOWLIST)
         // TODO: else if (GetFlags() & wxAUI_NB_RIGHT){}
 
         m_tabs->Refresh();
         // TODO: else if (GetFlags() & wxAUI_NB_RIGHT){}
 
         m_tabs->Refresh();
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
 
         wxAuiNotebookPageArray& pages = m_tabs->GetPages();
         size_t i, page_count = pages.GetCount();
 
         wxAuiNotebookPageArray& pages = m_tabs->GetPages();
         size_t i, page_count = pages.GetCount();
             tabctrl->SetFlags(m_flags);
             tabframe->DoSizing();
             tabctrl->Refresh();
             tabctrl->SetFlags(m_flags);
             tabframe->DoSizing();
             tabctrl->Refresh();
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
         wxAuiNotebookPage& info = ctrl->GetPage(ctrl_idx);
         info.caption = text;
         ctrl->Refresh();
         wxAuiNotebookPage& info = ctrl->GetPage(ctrl_idx);
         info.caption = text;
         ctrl->Refresh();
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
         wxAuiNotebookPage& info = ctrl->GetPage(ctrl_idx);
         info.bitmap = bitmap;
         ctrl->Refresh();
         wxAuiNotebookPage& info = ctrl->GetPage(ctrl_idx);
         info.bitmap = bitmap;
         ctrl->Refresh();
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
 
             if (p.rect != old_pane_rects[i])
             {
                 p.window->Refresh();
             if (p.rect != old_pane_rects[i])
             {
                 p.window->Refresh();
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
             // remove the last hint rectangle
             m_lastHint = rect;
             m_frame->Refresh();
             // remove the last hint rectangle
             m_lastHint = rect;
             m_frame->Refresh();
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
     if (!m_lastHint.IsEmpty())
     {
         m_frame->Refresh();
     if (!m_lastHint.IsEmpty())
     {
         m_frame->Refresh();
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
         m_lastHint = wxRect();
     }
 }
         m_lastHint = wxRect();
     }
 }
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS
 }
 
 void wxAuiManager::OnFloatingPaneMoved(wxWindow* wnd, wxDirection dir)
 }
 
 void wxAuiManager::OnFloatingPaneMoved(wxWindow* wnd, wxDirection dir)
     if ( dc == NULL )
     {
         m_frame->Refresh() ;
     if ( dc == NULL )
     {
         m_frame->Refresh() ;
+#ifdef TODO_REMOVE_IF_NO_PROBLEMS