home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / plginvw.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.3 KB  |  95 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. // plginvw.cpp : implementation file
  20. //
  21.  
  22. #include "stdafx.h"
  23. #include "plginvw.h"
  24.  
  25. #ifdef _DEBUG
  26. #undef THIS_FILE
  27. static char BASED_CODE THIS_FILE[] = __FILE__;
  28. #endif
  29.  
  30. /////////////////////////////////////////////////////////////////////////////
  31. // CPluginView
  32.  
  33. #ifndef _AFXDLL
  34. #undef new
  35. #endif
  36. IMPLEMENT_DYNCREATE(CPluginView, CView)
  37. #ifndef _AFXDLL
  38. #define new DEBUG_NEW
  39. #endif
  40.  
  41. CPluginView::CPluginView()
  42. {
  43. }
  44.  
  45. CPluginView::~CPluginView()
  46. {
  47. }
  48.  
  49.  
  50. BEGIN_MESSAGE_MAP(CPluginView, CView)
  51.     //{{AFX_MSG_MAP(CPluginView)
  52.         // NOTE - the ClassWizard will add and remove mapping macros here.
  53.     ON_WM_CREATE()
  54.     //}}AFX_MSG_MAP
  55. END_MESSAGE_MAP()
  56.  
  57.  
  58. /////////////////////////////////////////////////////////////////////////////
  59. // CPluginView drawing
  60.  
  61. void CPluginView::OnDraw(CDC* pDC)
  62. {
  63.     CDocument* pDoc = GetDocument();
  64.     // TODO: add draw code here
  65. }
  66.  
  67. /////////////////////////////////////////////////////////////////////////////
  68. // CPluginView overloading
  69.  
  70. int CPluginView::OnCreate(LPCREATESTRUCT lpcs)
  71. {
  72.     if (CWnd::OnCreate(lpcs) == -1)
  73.         return -1;
  74.  
  75.     return 0;   // ok
  76. }
  77.  
  78. /////////////////////////////////////////////////////////////////////////////
  79. // CPluginView diagnostics
  80.  
  81. #ifdef _DEBUG
  82. void CPluginView::AssertValid() const
  83. {
  84.     CView::AssertValid();
  85. }
  86.  
  87. void CPluginView::Dump(CDumpContext& dc) const
  88. {
  89.     CView::Dump(dc);
  90. }
  91. #endif //_DEBUG
  92.  
  93. /////////////////////////////////////////////////////////////////////////////
  94. // CPluginView message handlers
  95.