Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1.  
  2. // RG1View.h : interface of the CRG1View class
  3. //
  4.  
  5. #pragma once
  6.  
  7.  
  8. class CRG1View : public CView
  9. {
  10. protected: // create from serialization only
  11. CRG1View();
  12. DECLARE_DYNCREATE(CRG1View)
  13.  
  14. // Attributes
  15. public:
  16. CRG1Doc* GetDocument() const;
  17.  
  18. // Operations
  19. public:
  20.  
  21. // Overrides
  22. public:
  23. XFORM XformPro;
  24. CBitmap* pBmp;
  25. int pom;
  26.  
  27. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  28. void DrawWave(CDC *pDC, CRect rc);
  29. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  30.  
  31. void DrawClock(CDC* pDC, CRect rc, int sat, int min, int sec);
  32. void DrawRadial(CDC* pDC, CRect rc);
  33. void DrawLabels(CDC* pDC, CRect rc);
  34. HMETAFILE KazaljkaDC(CDC* pDC);
  35. void Kazaljke(CDC* pDC, CRect rect, int sat, int min, int sec);
  36.  
  37. void DrawLineHatch(CDC* pDC, CPoint prStart, CPoint ptEnd, double length, int n);
  38.  
  39. void DrawBitmap(CDC* pDC, int x, int y, float scale, int name);
  40. void DrawBitmapD(CDC* pDC, int x, int y, float scale, CBitmap& bitmap);
  41. void DrawTransparentBitmap(CDC* pDC, int x, int y, float scale, COLORREF color, int name);
  42. void DrawBkBitmap(CDC* pDC, int x, int y, float sizeX, float sizeY, int name);
  43. void ChangeBrightness(CDC* pDC, CBitmap& bitmap, float factor, CRect rect);
  44. void FlipBitmap(CBitmap* bitmap);
  45.  
  46. protected:
  47. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  48. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  49. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  50.  
  51. // Implementation
  52. public:
  53. virtual ~CRG1View();
  54. #ifdef _DEBUG
  55. virtual void AssertValid() const;
  56. virtual void Dump(CDumpContext& dc) const;
  57. #endif
  58.  
  59. protected:
  60.  
  61. // Generated message map functions
  62. protected:
  63. afx_msg void OnFilePrintPreview();
  64. afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  65. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  66. DECLARE_MESSAGE_MAP()
  67. public:
  68. afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  69. };
  70.  
  71. #ifndef _DEBUG // debug version in RG1View.cpp
  72. inline CRG1Doc* CRG1View::GetDocument() const
  73. { return reinterpret_cast<CRG1Doc*>(m_pDocument); }
  74. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement