Files
Client/Server/AdminTool/AdminToolClient/WindowMgr.cpp
LGram16 dd97ddec92 Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code:
- Client: Game client source (moved to Client/Client/)
- Server: Game server source
- GameTools: Development tools
- CryptoSource: Encryption utilities
- database: Database scripts
- Script: Game scripts
- rylCoder_16.02.2008_src: Legacy coder tools
- GMFont, Game: Additional resources

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 20:17:20 +09:00

34 lines
500 B
C++

#include "stdafx.h"
#include "WindowMgr.h"
CWindowMgr::~CWindowMgr()
{
m_WndList.clear();
}
void CWindowMgr::InsertWnd(unsigned long nID, CWnd* pCWnd)
{
m_WndList.insert(isValueType(nID, pCWnd));
}
void CWindowMgr::EraseWnd(unsigned long nID)
{
isPos Pos = m_WndList.find(nID);
if(Pos != m_WndList.end())
{
m_WndList.erase(Pos);
}
}
CWnd* CWindowMgr::GetWnd(unsigned long nID)
{
isPos Pos = m_WndList.find(nID);
if(Pos != m_WndList.end())
{
return Pos->second;
}
return NULL;
}