// MenuGroup1.h: interface for the CMenuGroup class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_MENUGROUP1_H__9DF6E148_32A3_4660_A810_1CDA0849CC20__INCLUDED_) #define AFX_MENUGROUP1_H__9DF6E148_32A3_4660_A810_1CDA0849CC20__INCLUDED_ #if _MSC_VER > 1000 #pragma once #include #include "GameEngine.h" #include "Bitmap.h" #include "Resource.h" #endif // _MSC_VER > 1000 class CMenuGroup { private: void DrawCompound(HDC hDC,int iIndex,int x,int y); int iCols,iRows,ix,iy,iWidth; int iSelectedAnswer; //Bitmap *bmpImg[16]; HDC _hOffDC; Bitmap *bmpBack; int iStatebmpBack; bool bIsExpanded; bool IsMouseOver; struct MenuItem{ Bitmap *bmpContent; int iState; int iCol; int iRow; bool bAnsw; }; struct MenuItem stMenuItem[32]; public: void SetSelectedIndex(int index); int GetCorrectIndex(); int GetSelectedIndex(); bool IsAttempted(); bool IsCorrectAnswerGiven(); void DrawScreen(HDC hDC,int iPosX=0,int iPosY=0,int iLayerX=0,int iLayerY=0,bool bIsChecking=false); bool MouseMove(int x,int y,bool bIsChecking); bool MouseButtonUp(int x,int y, bool bLeft); bool MouseButtonDown(int x,int y, bool bLeft); void SetMenuGroup(HDC _hOffDC,int iCols,int iRows,int ix,int iy,int iWidth,char *szWidth); CMenuGroup(); virtual ~CMenuGroup(); }; #endif // !defined(AFX_MENUGROUP1_H__9DF6E148_32A3_4660_A810_1CDA0849CC20__INCLUDED_)