// appbase.h #ifndef _3DFRAMEWORK_APPBASE_H_ #define _3DFRAMEWORK_APPBASE_H_ enum ENUM_HBR { HBR_OK = 0, // Á¤»ó HBR_INACTIVE, // ºñȰ¼ºÈ­ HBR_EXIT = 0xFF00, // Á¾·á }; //------------------------------------------------------------------------------ /** @class CAppBase */ class CAppBase { public: // »ý¼ºÀÚ/¼Ò¸êÀÚ CAppBase(); virtual ~CAppBase(); // À©µµ¿ì »ý¼º virtual BOOL Create( HINSTANCE hInstance, LPCSTR lpszAppName, WNDPROC WndProc, LPCSTR lpszIconName, int nCmdShow ); // À©µµ¿ì Á¦°Å virtual void Destroy(); // ¸ÞÀÎ ·çÇÁ virtual int Run(); // ½ÉÀå ¹Úµ¿(¸Å ÇÁ·¹ÀÓ È£Ãâ) virtual int HeartBeat() = 0; // À©µµ¿ì ÇÁ·Î½ÃÀú virtual LRESULT WindowProc( HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam ); // À©µµ¿ì ÇÚµé ¾ò±â HWND GetHWnd(); // ÀνºÅϽº ÇÚµé ¾ò±â HINSTANCE GetHInstance(); protected: DWORD m_dwInitialWndStyle; RECT m_rtInitWnd; HINSTANCE m_hInstance; HWND m_hWnd; }; //------------------------------------------------------------------------------ /** */ inline HWND CAppBase::GetHWnd() { return m_hWnd; } //------------------------------------------------------------------------------ /** */ inline HINSTANCE CAppBase::GetHInstance() { return m_hInstance; } #endif // _3DFRAMEWORK_APPBASE_H_