// ControlBox.h: interface for the CControlBox class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_CONTROLBOX_H__4286F414_96E2_412D_93C5_13E1ACCE85B4__INCLUDED_) #define AFX_CONTROLBOX_H__4286F414_96E2_412D_93C5_13E1ACCE85B4__INCLUDED_ #if _MSC_VER > 1000 #pragma once #include "Paper.h" #include "ToggleButton.h" #endif // _MSC_VER > 1000 #include "Panel.h" class CControlBox : public CPanel { private: Bitmap *bmpBackGround; CPaper *paper; CToggleButton *toggleButton[NUMBER_OF_TOGLLE_BUTTON+NUMBER_OF_BONDS+NUMBER_OF_CONTROLS]; int PrevPushed; bool enabled; public: void getReadyForACompound(); void MouseButtonUp(int x,int y,bool bLeft); bool MouseButtonDown(int x,int y,bool bLeft,WPARAM wParam); void MouseMove(int x,int y); CControlBox(int ix,int iy,int iLayerWidth,int iLayerHeight,int iwidth,int iheight,UINT uiBG); virtual ~CControlBox(); void DrawScreen(HDC hDC); void setEnable(bool enable){CControlBox::enabled=enable;} bool getEnable(){return enabled;} }; #endif // !defined(AFX_CONTROLBOX_H__4286F414_96E2_412D_93C5_13E1ACCE85B4__INCLUDED_)