Files
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

32 lines
797 B
C++

#ifndef _WINDOW_MGR_H_
#define _WINDOW_MGR_H_
#include <map>
#include <Pattern/Singleton.h>
// (주의) 모달리스 대화상자에서 사용하지 말것~~ 대략 아이디가 엉킴... 차후 개선 ㅡ.ㅡa ㅋㅋㅋ
#define INSERT_WINDOW(nID, pCWnd) CWindowMgr::GetInstance().InsertWnd(nID, pCWnd)
#define ERASE_WINDOW(nID) CWindowMgr::GetInstance().EraseWnd(nID)
#define GET_WINDOW(nID) CWindowMgr::GetInstance().GetWnd(nID)
class CWindowMgr : public CStaticSingleton<CWindowMgr>
{
typedef std::map<unsigned long, CWnd*>isWndList;
typedef isWndList::value_type isValueType;
typedef isWndList::iterator isPos;
public:
CWindowMgr() {}
~CWindowMgr();
void InsertWnd(unsigned long nID, CWnd* pCWnd);
void EraseWnd(unsigned long nID);
CWnd* GetWnd(unsigned long nID);
private:
isWndList m_WndList;
};
#endif