// browseView.cpp : implementation of the CbrowseView class // #include "stdafx.h" #include "browse.h" #include "browseDoc.h" #include "browseView.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // CbrowseView IMPLEMENT_DYNCREATE(CbrowseView, CEditView) BEGIN_MESSAGE_MAP(CbrowseView, CEditView) END_MESSAGE_MAP() // CbrowseView construction/destruction CbrowseView::CbrowseView() { // TODO: add construction code here } CbrowseView::~CbrowseView() { } BOOL CbrowseView::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; } // CbrowseView diagnostics #ifdef _DEBUG void CbrowseView::AssertValid() const { CEditView::AssertValid(); } void CbrowseView::Dump(CDumpContext& dc) const { CEditView::Dump(dc); } CbrowseDoc* CbrowseView::GetDocument() const // non-debug version is inline { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CbrowseDoc))); return (CbrowseDoc*)m_pDocument; } #endif //_DEBUG // CbrowseView message handlers