// SideBar.h: interface for the CSideBar class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_SIDEBAR_H__6F3C0425_C2DB_428F_B47A_FB91A1F664CD__INCLUDED_) #define AFX_SIDEBAR_H__6F3C0425_C2DB_428F_B47A_FB91A1F664CD__INCLUDED_ #if _MSC_VER > 1000 #pragma once #include #include "GameEngine.h" #include "Bitmap.h" #include "Resource.h" #include "TreeMenu.h" #endif // _MSC_VER > 1000 #include "Panel.h" class CSideBar : public CPanel { private: char szTreeMenu[4096]; CTreeMenu * pTreeMenu; Bitmap* bmpBackGround; CContent* _pContent; public: void ChangeContent(char *szFileName); CSideBar(int ix,int iy,int iwidth,int iheight,int iLayerWidth,int iLayerHeight,UINT uiBG); virtual ~CSideBar(); void DrawScreen(HDC hDC); void MouseButtonDown(int x,int y,BOOL bLeft); void MouseButtonUp(int x,int y,BOOL bLeft); void MouseMove(int x,int y); bool WithinItem(int x,int y); CContent* GetContent(){return _pContent;} void DrawInsidePanel(HDC hDC){;} void ShowPanel(bool bShow); }; #endif // !defined(AFX_SIDEBAR_H__6F3C0425_C2DB_428F_B47A_FB91A1F664CD__INCLUDED_)