Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.0 KiB

  1. // KRView.h : interface of the CKeyRingView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. class CKeyRingView : public CTreeView
  5. {
  6. protected: // create from serialization only
  7. afx_msg void OnContextMenu(CWnd*, CPoint point);
  8. CKeyRingView();
  9. DECLARE_DYNCREATE(CKeyRingView)
  10. // Attributes
  11. public:
  12. CKeyRingDoc* GetDocument();
  13. CTreeItem* PGetSelectedItem();
  14. BOOL FCommitMachinesNow();
  15. void DestroyItems();
  16. void DisconnectMachine( CMachine* pMachine );
  17. // Operations
  18. public:
  19. // Overrides
  20. // ClassWizard generated virtual function overrides
  21. //{{AFX_VIRTUAL(CKeyRingView)
  22. public:
  23. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  24. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  25. virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
  26. virtual BOOL PreTranslateMessage(MSG* pMsg);
  27. protected:
  28. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  29. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  30. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  31. //}}AFX_VIRTUAL
  32. // Implementation
  33. public:
  34. virtual ~CKeyRingView();
  35. #ifdef _DEBUG
  36. virtual void AssertValid() const;
  37. virtual void Dump(CDumpContext& dc) const;
  38. #endif
  39. protected:
  40. // Generated message map functions
  41. protected:
  42. //{{AFX_MSG(CKeyRingView)
  43. afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  44. afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
  45. afx_msg void OnUpdateServerDisconnect(CCmdUI* pCmdUI);
  46. afx_msg void OnServerDisconnect();
  47. afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
  48. afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
  49. //}}AFX_MSG
  50. DECLARE_MESSAGE_MAP()
  51. CImageList m_imageList;
  52. };
  53. #ifndef _DEBUG // debug version in KRView.cpp
  54. inline CKeyRingDoc* CKeyRingView::GetDocument()
  55. { return (CKeyRingDoc*)m_pDocument; }
  56. #endif
  57. /////////////////////////////////////////////////////////////////////////////