home *** CD-ROM | disk | FTP | other *** search
- // rtab_vw.cpp : implementation of the CRtab_samView class
- //
-
- #include "stdafx.h"
- #include "rtab_sam.h"
-
- #include "rtab_doc.h"
- #include "rtab_vw.h"
-
- #include "..\include\rip_tabs.h"
- #include "rtabdial.h"
-
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CRtab_samView
-
- IMPLEMENT_DYNCREATE(CRtab_samView, CView)
-
- BEGIN_MESSAGE_MAP(CRtab_samView, CView)
- //{{AFX_MSG_MAP(CRtab_samView)
- ON_COMMAND(IDD_DODIALOG, OnDoRipTABDialog)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CRtab_samView construction/destruction
-
- CRtab_samView::CRtab_samView()
- {
- CheckBoxStatus="None.";
- RadioButtonStatus="None.";
- EditControlStatus="None.";
- }
-
- CRtab_samView::~CRtab_samView()
- {
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CRtab_samView drawing
-
- void CRtab_samView::OnDraw(CDC* pDC)
- {
- CString OutString;
-
- CRtab_samDoc* pDoc = GetDocument();
-
-
- OutString="Check Box Status : ";
- pDC->TextOut(10, 10, OutString);
- pDC->TextOut(160, 10, CheckBoxStatus);
-
- OutString="Radio Button Status : ";
- pDC->TextOut(10, 40, OutString);
- pDC->TextOut(160, 40, RadioButtonStatus);
-
- OutString="Edit Control Status : ";
- pDC->TextOut(10, 70, OutString);
- pDC->TextOut(160, 70, EditControlStatus);
- }
-
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CRtab_samView diagnostics
-
- #ifdef _DEBUG
- void CRtab_samView::AssertValid() const
- {
- CView::AssertValid();
- }
-
- void CRtab_samView::Dump(CDumpContext& dc) const
- {
- CView::Dump(dc);
- }
-
- CRtab_samDoc* CRtab_samView::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CRtab_samDoc)));
- return (CRtab_samDoc*) m_pDocument;
- }
-
- #endif //_DEBUG
-
- /////////////////////////////////////////////////////////////////////////////
- // CRtab_samView message handlers
-
- void CRtab_samView::OnDoRipTABDialog()
- {
- CRTabDialog diag(this);
- diag.DoModal();
- InvalidateRect(NULL, TRUE);
- }
-