home *** CD-ROM | disk | FTP | other *** search
- // chkbovw.cpp : implementation of the CChkboxView class
- //
-
- #include "stdafx.h"
- #include "chkbox.h"
-
- #include "chkbodoc.h"
- #include "chkbovw.h"
-
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CChkboxView
-
- IMPLEMENT_DYNCREATE(CChkboxView, CView)
-
- BEGIN_MESSAGE_MAP(CChkboxView, CView)
- //{{AFX_MSG_MAP(CChkboxView)
- ON_COMMAND(ID_FILE_TRYIT, OnFileTryit)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CChkboxView construction/destruction
-
- CChkboxView::CChkboxView()
- {
- // TODO: add construction code here
- }
-
- CChkboxView::~CChkboxView()
- {
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CChkboxView drawing
-
- void CChkboxView::OnDraw(CDC* pDC)
- {
- CChkboxDoc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
-
- // TODO: add draw code for native data here
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CChkboxView diagnostics
-
- #ifdef _DEBUG
- void CChkboxView::AssertValid() const
- {
- CView::AssertValid();
- }
-
- void CChkboxView::Dump(CDumpContext& dc) const
- {
- CView::Dump(dc);
- }
-
- CChkboxDoc* CChkboxView::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CChkboxDoc)));
- return (CChkboxDoc*)m_pDocument;
- }
- #endif //_DEBUG
-
- /////////////////////////////////////////////////////////////////////////////
- // CChkboxView message handlers
-
- void CChkboxView::OnFileTryit()
- {
- // TODO: Add your command handler code here
-
- //////////////////////
- // MY CODE STARTS HERE
- //////////////////////
-
- dlg.DoModal();
-
- ////////////////////
- // MY CODE ENDS HERE
- ////////////////////
-
- }
-