#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; }