- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
CrdFileDriverView.cpp
资源名称:cardfile.zip [点击查看]
上传用户:lsj_816
上传日期:2007-01-01
资源大小:37k
文件大小:2k
源码类别:
Windows编程
开发平台:
Visual C++
- // CrdFileDriverView.cpp : implementation of the CCrdFileDriverView class
- //
- #include "stdafx.h"
- #include "CrdFileDriver.h"
- #include "CrdFileDriverDoc.h"
- #include "CrdFileDriverView.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CCrdFileDriverView
- IMPLEMENT_DYNCREATE(CCrdFileDriverView, CEditView)
- BEGIN_MESSAGE_MAP(CCrdFileDriverView, CEditView)
- //{{AFX_MSG_MAP(CCrdFileDriverView)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CCrdFileDriverView construction/destruction
- CCrdFileDriverView::CCrdFileDriverView()
- {
- // TODO: add construction code here
- }
- CCrdFileDriverView::~CCrdFileDriverView()
- {
- }
- BOOL CCrdFileDriverView::PreCreateWindow(CREATESTRUCT& cs)
- {
- // TODO: Modify the Window class or styles here by modifying
- // the CREATESTRUCT cs
- BOOL bPreCreated = CEditView::PreCreateWindow(cs);
- cs.style &= ~(ES_AUTOHSCROLL|WS_HSCROLL); // Enable word-wrapping
- return bPreCreated;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CCrdFileDriverView drawing
- void CCrdFileDriverView::OnDraw(CDC* pDC)
- {
- CCrdFileDriverDoc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
- // TODO: add draw code for native data here
- }
- /////////////////////////////////////////////////////////////////////////////
- // CCrdFileDriverView diagnostics
- #ifdef _DEBUG
- void CCrdFileDriverView::AssertValid() const
- {
- CEditView::AssertValid();
- }
- void CCrdFileDriverView::Dump(CDumpContext& dc) const
- {
- CEditView::Dump(dc);
- }
- CCrdFileDriverDoc* CCrdFileDriverView::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CCrdFileDriverDoc)));
- return (CCrdFileDriverDoc*)m_pDocument;
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CCrdFileDriverView message handlers
- void CCrdFileDriverView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint)
- {
- SetWindowText(GetDocument()->m_strText);
- }