Coons2Command.h
上传用户:kairuinn
上传日期:2009-02-07
资源大小:2922k
文件大小:1k
- #ifndef __Coons2Command__
- #define __Coons2Command__
- class Coons2Command : public ICommander, public IContextMenuInterface
- {
- IApplicationInterface* m_app;
- private:
- IGetObjectsPanel* m_get_object_panels[2];
-
- sgC2DObject* m_objs[4];
- sgCObject* m_cur_obj;
-
- int m_step;
- CString m_message;
- bool SetFourthAndFivethByFirstAndSecond();
- public:
- Coons2Command(IApplicationInterface* appI);
- virtual ~Coons2Command();
- virtual void Start() ;
- virtual bool PreTranslateMessage(MSG* pMsg);
- virtual void Draw();
- IContextMenuInterface* GetContextMenuInterface() {return this;};
- virtual void SendCommanderMessage(COMMANDER_MESSAGE, void*);
- private:
- virtual unsigned int GetItemsCount();
- virtual void GetItem(unsigned int, CString&);
- virtual void GetItemState(unsigned int, bool&, bool&);
- virtual HBITMAP GetItemBitmap(unsigned int);
- virtual void Run(unsigned int);
- void MouseMove(unsigned int,int,int);
- void LeftClick(unsigned int,int,int);
- void OnEnter();
- };
- #endif