LYFZSendMsgView.cpp 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. // LYFZSendMsgView.cpp : implementation of the CLYFZSendMsgView class
  2. //
  3. #include "stdafx.h"
  4. #include "LYFZSendMsg.h"
  5. #include "LYFZSendMsgDoc.h"
  6. #include "LYFZSendMsgView.h"
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CLYFZSendMsgView
  14. IMPLEMENT_DYNCREATE(CLYFZSendMsgView, CView)
  15. BEGIN_MESSAGE_MAP(CLYFZSendMsgView, CView)
  16. //{{AFX_MSG_MAP(CLYFZSendMsgView)
  17. ON_WM_TIMER()
  18. //}}AFX_MSG_MAP
  19. END_MESSAGE_MAP()
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CLYFZSendMsgView construction/destruction
  22. CLYFZSendMsgView::CLYFZSendMsgView()
  23. {
  24. // TODO: add construction code here
  25. }
  26. CLYFZSendMsgView::~CLYFZSendMsgView()
  27. {
  28. }
  29. BOOL CLYFZSendMsgView::PreCreateWindow(CREATESTRUCT& cs)
  30. {
  31. // TODO: Modify the Window class or styles here by modifying
  32. // the CREATESTRUCT cs
  33. return CView::PreCreateWindow(cs);
  34. }
  35. /////////////////////////////////////////////////////////////////////////////
  36. // CLYFZSendMsgView drawing
  37. void CLYFZSendMsgView::OnDraw(CDC* pDC)
  38. {
  39. CLYFZSendMsgDoc* pDoc = GetDocument();
  40. ASSERT_VALID(pDoc);
  41. // TODO: add draw code for native data here
  42. }
  43. /////////////////////////////////////////////////////////////////////////////
  44. // CLYFZSendMsgView diagnostics
  45. #ifdef _DEBUG
  46. void CLYFZSendMsgView::AssertValid() const
  47. {
  48. CView::AssertValid();
  49. }
  50. void CLYFZSendMsgView::Dump(CDumpContext& dc) const
  51. {
  52. CView::Dump(dc);
  53. }
  54. CLYFZSendMsgDoc* CLYFZSendMsgView::GetDocument() // non-debug version is inline
  55. {
  56. ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CLYFZSendMsgDoc)));
  57. return (CLYFZSendMsgDoc*)m_pDocument;
  58. }
  59. #endif //_DEBUG
  60. /////////////////////////////////////////////////////////////////////////////
  61. // CLYFZSendMsgView message handlers
  62. void CLYFZSendMsgView::OnInitialUpdate()
  63. {
  64. CView::OnInitialUpdate();
  65. // TODO: Add your specialized code here and/or call the base class
  66. }
  67. void CLYFZSendMsgView::OnTimer(UINT nIDEvent)
  68. {
  69. // TODO: Add your message handler code here and/or call default
  70. }