home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code1 / ole_vbx1 / testvvw.h < prev    next >
C/C++ Source or Header  |  1994-02-16  |  3KB  |  87 lines

  1. // testvvw.h : interface of the CTestvbxView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CTestvbxView : public CFormView
  6. {
  7. protected: // create from serialization only
  8.     CTestvbxView();
  9.     DECLARE_DYNCREATE(CTestvbxView)
  10.  
  11. public:
  12.     //{{AFX_DATA(CTestvbxView)
  13.     enum { IDD = IDD_TESTVBX_FORM };
  14.     CVBControl*    pOutline1;
  15.     UINT    nNumNodes;
  16.     UINT    nMaxIndent;
  17.     UINT    nIndentLevel;
  18.     UINT    nCurrentNode;
  19.     BOOL    bAllowAppend;
  20.     BOOL    bAllowDelete;
  21.     BOOL    bAllowEdit;
  22.     BOOL    bAllowInsert;
  23.     BOOL    bAllowRedraw;
  24.     BOOL    bNumbering;
  25.     //}}AFX_DATA
  26.  
  27. // Attributes
  28. public:
  29.     CTestvbxDoc* GetDocument();
  30.  
  31. // Operations
  32. public:
  33.  
  34. // Implementation
  35. public:
  36.     virtual ~CTestvbxView();
  37. #ifdef _DEBUG
  38.     virtual void AssertValid() const;
  39.     virtual void Dump(CDumpContext& dc) const;
  40. #endif
  41.  
  42. protected:
  43.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  44.     virtual BOOL UpdateData(BOOL bSaveAndValidate);
  45.  
  46. // Generated message map functions
  47. protected:
  48.     //{{AFX_MSG(CTestvbxView)
  49.     afx_msg void OnAddnodeOlVbx1(UINT, int, CWnd*, LPVOID);
  50.     afx_msg void OnChangenodeOlVbx1(UINT, int, CWnd*, LPVOID);
  51.     afx_msg void OnInsertnodeOlVbx1(UINT, int, CWnd*, LPVOID);
  52.     afx_msg void OnChangeselectionOlVbx1(UINT, int, CWnd*, LPVOID);
  53.     afx_msg void OnDeletenodeOlVbx1(UINT, int, CWnd*, LPVOID);
  54.     afx_msg void OnIndentnodeOlVbx1(UINT, int, CWnd*, LPVOID);
  55.     afx_msg void OnKillfocusOlVbx1(UINT, int, CWnd*, LPVOID);
  56.     afx_msg void OnLeftbuttonclickOlVbx1(UINT, int, CWnd*, LPVOID);
  57.     afx_msg void OnMiddlebuttonclickOlVbx1(UINT, int, CWnd*, LPVOID);
  58.     afx_msg void OnRightbuttonclickOlVbx1(UINT, int, CWnd*, LPVOID);
  59.     afx_msg void OnSetfocusOlVbx1(UINT, int, CWnd*, LPVOID);
  60.     afx_msg void OnVerticalscrollOlVbx1(UINT, int, CWnd*, LPVOID);
  61.     afx_msg void OnOKBUTTON();
  62.     afx_msg void OnDelitem();
  63.     afx_msg void OnDelete();
  64.     afx_msg void OnAddnode();
  65.     afx_msg void OnAllowappend();
  66.     afx_msg void OnAllowdelete();
  67.     afx_msg void OnAllowedit();
  68.     afx_msg void OnAllowinsert();
  69.     afx_msg void OnAllowredraw();
  70.     afx_msg void OnKillfocusCurrentnode();
  71.     afx_msg void OnDelnode();
  72.     afx_msg void OnFlush();
  73.     afx_msg void OnKillfocusIndentlevel();
  74.     afx_msg void OnKillfocusMaxindent();
  75.     afx_msg void OnNumbering();
  76.     afx_msg UINT OnGetDlgCode();
  77.     //}}AFX_MSG
  78.     DECLARE_MESSAGE_MAP()
  79. };
  80.  
  81. #ifndef _DEBUG  // debug version in testvvw.cpp
  82. inline CTestvbxDoc* CTestvbxView::GetDocument()
  83.    { return (CTestvbxDoc*)m_pDocument; }
  84. #endif
  85.  
  86. /////////////////////////////////////////////////////////////////////////////
  87.