Coons2Command.h
Upload User: kairuinn
Upload Date: 2009-02-07
Package Size: 2922k
Code Size: 1k
Category:

Graph program

Development Platform:

Visual C++

  1. #ifndef __Coons2Command__
  2. #define __Coons2Command__
  3. class Coons2Command : public ICommander, public IContextMenuInterface
  4. {
  5. IApplicationInterface* m_app;
  6. private:
  7. IGetObjectsPanel*      m_get_object_panels[2];
  8. sgC2DObject*             m_objs[4];
  9. sgCObject*             m_cur_obj;
  10. int                    m_step;
  11. CString m_message;
  12. bool                   SetFourthAndFivethByFirstAndSecond();
  13. public:
  14. Coons2Command(IApplicationInterface* appI);
  15. virtual ~Coons2Command();
  16. virtual void            Start() ;
  17. virtual bool            PreTranslateMessage(MSG* pMsg);
  18. virtual void            Draw();
  19. IContextMenuInterface*    GetContextMenuInterface() {return this;};
  20. virtual void            SendCommanderMessage(COMMANDER_MESSAGE, void*);
  21. private:
  22. virtual unsigned int    GetItemsCount();
  23. virtual void            GetItem(unsigned int, CString&);
  24. virtual void            GetItemState(unsigned int, bool&, bool&);
  25. virtual HBITMAP  GetItemBitmap(unsigned int);
  26. virtual void            Run(unsigned int);
  27. void            MouseMove(unsigned int,int,int);
  28. void            LeftClick(unsigned int,int,int);
  29. void            OnEnter();
  30. };
  31. #endif