Usermode/AxWin4 - Slowly implementing
[tpg/acess2.git] / Usermode / Applications / axwin4_src / Server / CClient.cpp
index 9fe806e..92898b1 100644 (file)
@@ -24,10 +24,13 @@ CClient::~CClient()
 
 CWindow* CClient::GetWindow(int ID)
 {
-       if( ID == 0 )
-               return 0;
-       
-       return m_windows[ID];
+       _SysDebug("GetWindow(ID=%i)", ID);
+       try {
+               return m_windows.at(ID);
+       }
+       catch(const std::exception& e) {
+               return NULL;
+       }
 }
 
 void CClient::SetWindow(int ID, CWindow* window)
@@ -36,9 +39,7 @@ void CClient::SetWindow(int ID, CWindow* window)
        if( m_windows[ID] ) {
                delete m_windows[ID];
        }
-       _SysDebug("SetWindow - Set", ID, window);
        m_windows[ID] = window;
-       _SysDebug("SetWindow - END");
 }
 
 void CClient::HandleMessage(CDeserialiser& message)

UCC git Repository :: git.ucc.asn.au