git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/AxWin4 - Screen dimensions acquisition, speedup, window render
[tpg/acess2.git]
/
Usermode
/
Applications
/
axwin4_src
/
Server
/
CClient.cpp
diff --git
a/Usermode/Applications/axwin4_src/Server/CClient.cpp
b/Usermode/Applications/axwin4_src/Server/CClient.cpp
index
f61ca31
..
6c9fe68
100644
(file)
--- a/
Usermode/Applications/axwin4_src/Server/CClient.cpp
+++ b/
Usermode/Applications/axwin4_src/Server/CClient.cpp
@@
-24,14
+24,17
@@
CClient::~CClient()
CWindow* CClient::GetWindow(int ID)
{
CWindow* CClient::GetWindow(int ID)
{
- if( ID == 0 )
- return 0;
-
- return m_windows[ID];
+ try {
+ return m_windows.at(ID);
+ }
+ catch(const std::exception& e) {
+ return NULL;
+ }
}
void CClient::SetWindow(int ID, CWindow* window)
{
}
void CClient::SetWindow(int ID, CWindow* window)
{
+ _SysDebug("SetWindow(ID=%i,window=%p)", ID, window);
if( m_windows[ID] ) {
delete m_windows[ID];
}
if( m_windows[ID] ) {
delete m_windows[ID];
}
UCC
git Repository :: git.ucc.asn.au