Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
CrdFileDriverView.cpp
Package: cardfile.zip [view]
Upload User: lsj_816
Upload Date: 2007-01-01
Package Size: 37k
Code Size: 2k
Category:
Windows Develop
Development Platform:
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);
- }