WorkspaceView.h
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:2k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. #if !defined(AFX_WORKSPACEVIEW_H__8B9758DA_BD65_4E68_BC3C_8C98B2419838__INCLUDED_)
  2. #define AFX_WORKSPACEVIEW_H__8B9758DA_BD65_4E68_BC3C_8C98B2419838__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // WorkspaceView.h : header file
  7. //
  8. class CRibbonSampleView;
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CWorkspaceView view
  11. class CWorkspaceView : public CView
  12. {
  13. protected:
  14. CWorkspaceView();           // protected constructor used by dynamic creation
  15. DECLARE_DYNCREATE(CWorkspaceView)
  16. // Attributes
  17. public:
  18. // Operations
  19. public:
  20. void SetLayoutRTL(BOOL bRTLLayout);
  21. void Reposition(CSize sz);
  22. // Overrides
  23. // ClassWizard generated virtual function overrides
  24. //{{AFX_VIRTUAL(CWorkspaceView)
  25. protected:
  26. virtual void OnDraw(CDC* pDC);      // overridden to draw this view
  27. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  28. //}}AFX_VIRTUAL
  29. // Implementation
  30. protected:
  31. virtual ~CWorkspaceView();
  32. #ifdef _DEBUG
  33. virtual void AssertValid() const;
  34. virtual void Dump(CDumpContext& dc) const;
  35. #endif
  36. public:
  37. CXTPScrollBar m_wndScrollBar[2];
  38. CRect GetViewRect(CRect rc);
  39. protected:
  40. CRibbonSampleView* m_pView;
  41. // Generated message map functions
  42. protected:
  43. //{{AFX_MSG(CWorkspaceView)
  44. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  45. afx_msg void OnSize(UINT nType, int cx, int cy);
  46. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  47. afx_msg void OnPaint();
  48. afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  49. afx_msg int OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message);
  50. //}}AFX_MSG
  51. DECLARE_MESSAGE_MAP()
  52. };
  53. /////////////////////////////////////////////////////////////////////////////
  54. //{{AFX_INSERT_LOCATION}}
  55. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  56. #endif // !defined(AFX_WORKSPACEVIEW_H__8B9758DA_BD65_4E68_BC3C_8C98B2419838__INCLUDED_)