How do I check whether a dock window is opened or closed?? 
        CodeBlocksDockEvent evtT,evt1T;
          
         evtT.pWindow = m_pTreeT;
         Manager::Get()->ProcessEvent(evtT);
         evt1T.SetEventType(cbEVT_SHOW_DOCK_WINDOW);
         evt1T.pWindow = m_pTreeT;
         Manager::Get()->ProcessEvent(evt1T);
In the above code, I have opened the window using evtT, evtT1. Now I close the window, so how should I check whether the window is closed or not??