]> icculus.org git repositories - taylor/freespace2.git/blob - src/helped/helpedview.cpp
tweak stats saving to maybe work better
[taylor/freespace2.git] / src / helped / helpedview.cpp
1 /*
2  * Copyright (C) Volition, Inc. 1999.  All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell 
5  * or otherwise commercially exploit the source or things you created based on
6  * the source.
7  */
8
9 // HelpEdView.cpp : implementation of the CHelpEdView class
10 //
11
12 #include "stdafx.h"
13 #include "helped.h"
14
15 #include "helpeddoc.h"
16 #include "helpedview.h"
17
18 #ifdef _DEBUG
19 #define new DEBUG_NEW
20 #undef THIS_FILE
21 static char THIS_FILE[] = __FILE__;
22 #endif
23
24 /////////////////////////////////////////////////////////////////////////////
25 // CHelpEdView
26
27 IMPLEMENT_DYNCREATE(CHelpEdView, CView)
28
29 BEGIN_MESSAGE_MAP(CHelpEdView, CView)
30         //{{AFX_MSG_MAP(CHelpEdView)
31                 // NOTE - the ClassWizard will add and remove mapping macros here.
32                 //    DO NOT EDIT what you see in these blocks of generated code!
33         //}}AFX_MSG_MAP
34 END_MESSAGE_MAP()
35
36 /////////////////////////////////////////////////////////////////////////////
37 // CHelpEdView construction/destruction
38
39 CHelpEdView::CHelpEdView()
40 {
41         // TODO: add construction code here
42
43 }
44
45 CHelpEdView::~CHelpEdView()
46 {
47 }
48
49 BOOL CHelpEdView::PreCreateWindow(CREATESTRUCT& cs)
50 {
51         // TODO: Modify the Window class or styles here by modifying
52         //  the CREATESTRUCT cs
53
54         return CView::PreCreateWindow(cs);
55 }
56
57 /////////////////////////////////////////////////////////////////////////////
58 // CHelpEdView drawing
59
60 void CHelpEdView::OnDraw(CDC* pDC)
61 {
62         pDC;
63         CHelpEdDoc* pDoc = GetDocument();
64         ASSERT_VALID(pDoc);
65         // TODO: add draw code for native data here
66 }
67
68 /////////////////////////////////////////////////////////////////////////////
69 // CHelpEdView diagnostics
70
71 #ifdef _DEBUG
72 void CHelpEdView::AssertValid() const
73 {
74         CView::AssertValid();
75 }
76
77 void CHelpEdView::Dump(CDumpContext& dc) const
78 {
79         CView::Dump(dc);
80 }
81
82 CHelpEdDoc* CHelpEdView::GetDocument() // non-debug version is inline
83 {
84         ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CHelpEdDoc)));
85         return (CHelpEdDoc*)m_pDocument;
86 }
87 #endif //_DEBUG
88
89 /////////////////////////////////////////////////////////////////////////////
90 // CHelpEdView message handlers
91
92 void CHelpEdView::OnLButtonDown(UINT nFlags, CPoint point)
93 {
94         // Capture the mouse, so no other application can
95         // grab it if the mouse leaves the window area
96         SetCapture();
97         // Save the point
98         m_ptPrevPos = point;
99
100         // pass mouse event up the chain
101         CView::OnLButtonDown(nFlags, point);
102 }
103
104
105 //DEL void CHelpEdView::blah()
106 //DEL {
107 //DEL 
108 //DEL }
109