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

Graph program

Development Platform:

Visual C++

  1. #pragma once
  2. #include "..//Controls//RollupCtrl.h"
  3. // CCommandPanelDlg dialog
  4. class CCommandPanelDlg : public CDialog, public ICommandPanel
  5. {
  6. DECLARE_DYNAMIC(CCommandPanelDlg)
  7. public:
  8. CCommandPanelDlg(CWnd* pParent = NULL);   // standard constructor
  9. virtual ~CCommandPanelDlg();
  10. // Dialog Data
  11. enum { IDD = IDD_COMMAND_PANEL_DLG };
  12. private:
  13. CRollupCtrl     m_wndRollupCtrl;
  14. void       RecalcPlaces();
  15. public:
  16. virtual  CWnd*                   GetDialogsContainerWindow();
  17. virtual  bool AddDialog(IBaseInterfaceOfGetDialogs*,const char*, bool);
  18. virtual  IBaseInterfaceOfGetDialogs*   AddDialog(IBaseInterfaceOfGetDialogs::DLG_TYPE, 
  19. const char*, bool);
  20. virtual  bool   RemoveDialog(IBaseInterfaceOfGetDialogs*);
  21. virtual  bool   RemoveDialog(unsigned int);
  22. virtual  bool   RenameRadio(unsigned int, const char*);
  23. virtual  void   EnableRadio(unsigned int,bool);
  24. virtual  void   SetActiveRadio(unsigned int);
  25. virtual  bool   RemoveAllDialogs();
  26. virtual  void   DrawGroupFrame(CDC* pDC, const CRect& rct, 
  27. const int leftLab, const int rightLab);
  28. protected:
  29. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  30. DECLARE_MESSAGE_MAP()
  31. public:
  32. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  33. afx_msg void OnSize(UINT nType, int cx, int cy);
  34. virtual BOOL DestroyWindow();
  35. protected:
  36. virtual void OnOK();
  37. virtual void OnCancel();
  38. public:
  39. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  40. };