home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast2.iso
/
wpj_mag
/
wpjv1n8.zip
/
FDIAG.ZIP
/
FDIAGVW.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-12
|
2KB
|
86 lines
// fdiagvw.cpp : implementation of the CFdiagView class
//
#include "stdafx.h"
#include "fdiag.h"
#include "fdiagdoc.h"
#include "fdiagvw.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CFdiagView
IMPLEMENT_DYNCREATE(CFdiagView, CView)
BEGIN_MESSAGE_MAP(CFdiagView, CView)
//{{AFX_MSG_MAP(CFdiagView)
ON_COMMAND(ID_FILE_OPENWITHNEWFILEDIALOGBOX, OnFileOpenwithnewfiledialogbox)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CFdiagView construction/destruction
CFdiagView::CFdiagView()
{
// TODO: add construction code here
}
CFdiagView::~CFdiagView()
{
}
/////////////////////////////////////////////////////////////////////////////
// CFdiagView drawing
void CFdiagView::OnDraw(CDC* pDC)
{
CFdiagDoc* pDoc = GetDocument();
// TODO: add draw code here
}
/////////////////////////////////////////////////////////////////////////////
// CFdiagView diagnostics
#ifdef _DEBUG
void CFdiagView::AssertValid() const
{
CView::AssertValid();
}
void CFdiagView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CFdiagDoc* CFdiagView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CFdiagDoc)));
return (CFdiagDoc*) m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CFdiagView message handlers
#include "filedial.h"
void CFdiagView::OnFileOpenwithnewfiledialogbox()
{
CFileDialogEx dlg(TRUE, "txt", NULL, OFN_FILEMUSTEXIST
| OFN_HIDEREADONLY,
"Text Files (*.txt) | *.txt All Files (*.*) |*.* ||");
if (dlg.DoModal()==IDOK) {
// get the filename;
};
}