home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2001 July / VPR0107B.BIN / DRIVER / CANOPUS / MVR32 / mvr32.exe / data1.cab / Development_Kit / Vc / Samples / Encode / EncodeView.cpp < prev    next >
C/C++ Source or Header  |  2001-02-09  |  2KB  |  83 lines

  1. // EncodeView.cpp : CEncodeView クラスの動作の定義を行います。
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "Encode.h"
  6.  
  7. #include "EncodeDoc.h"
  8. #include "EncodeView.h"
  9.  
  10. #ifdef _DEBUG
  11. #define new DEBUG_NEW
  12. #undef THIS_FILE
  13. static char THIS_FILE[] = __FILE__;
  14. #endif
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CEncodeView
  18.  
  19. IMPLEMENT_DYNCREATE(CEncodeView, CView)
  20.  
  21. BEGIN_MESSAGE_MAP(CEncodeView, CView)
  22.     //{{AFX_MSG_MAP(CEncodeView)
  23.         // メモ - ClassWizard はこの位置にマッピング用のマクロを追加または削除します。
  24.         //    この位置に生成されるコードを編集しないでください。
  25.     //}}AFX_MSG_MAP
  26. END_MESSAGE_MAP()
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CEncodeView クラスの構築/消滅
  30.  
  31. CEncodeView::CEncodeView()
  32. {
  33.     // TODO: この場所に構築用のコードを追加してください。
  34.  
  35. }
  36.  
  37. CEncodeView::~CEncodeView()
  38. {
  39. }
  40.  
  41. BOOL CEncodeView::PreCreateWindow(CREATESTRUCT& cs)
  42. {
  43.     // TODO: この位置で CREATESTRUCT cs を修正して Window クラスまたはスタイルを
  44.     //  修正してください。
  45.  
  46.     return CView::PreCreateWindow(cs);
  47. }
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50. // CEncodeView クラスの描画
  51.  
  52. void CEncodeView::OnDraw(CDC* pDC)
  53. {
  54.     CEncodeDoc* pDoc = GetDocument();
  55.     ASSERT_VALID(pDoc);
  56.  
  57.     // TODO: この場所にネイティブ データ用の描画コードを追加します。
  58. }
  59.  
  60. /////////////////////////////////////////////////////////////////////////////
  61. // CEncodeView クラスの診断
  62.  
  63. #ifdef _DEBUG
  64. void CEncodeView::AssertValid() const
  65. {
  66.     CView::AssertValid();
  67. }
  68.  
  69. void CEncodeView::Dump(CDumpContext& dc) const
  70. {
  71.     CView::Dump(dc);
  72. }
  73.  
  74. CEncodeDoc* CEncodeView::GetDocument() // 非デバッグ バージョンはインラインです。
  75. {
  76.     ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CEncodeDoc)));
  77.     return (CEncodeDoc*)m_pDocument;
  78. }
  79. #endif //_DEBUG
  80.  
  81. /////////////////////////////////////////////////////////////////////////////
  82. // CEncodeView クラスのメッセージ ハンドラ
  83.