|
// MfcTestView.h : interface of the CMfcTestView class
//
#pragma once
#include <atlbase.h>
#import "MyCell.dll" no_namespace raw_interfaces_only named_guids
class CMfcTestView : public CView
{
CComPtr<IGrid> m_pGrid;
protected: // create from serialization only
CMfcTestView();
DECLARE_DYNCREATE(CMfcTestView)
// Attributes
public:
CMfcTestDoc* GetDocument() const;
// Operations
public:
// Overrides
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
int OnCreate(LPCREATESTRUCT lpcs);
void OnSize(UINT, int, int);
void _OnGetCellText(NMHDR*, LRESULT*);
// Implementation
public:
virtual ~CMfcTestView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
void OnGetCellText(HWND hWndFrom,int row,int col,LPTSTR lpszText);
void init_grid();
// Generated message map functions
protected:
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in MfcTestView.cpp
inline CMfcTestDoc* CMfcTestView::GetDocument() const
{ return reinterpret_cast<CMfcTestDoc*>(m_pDocument); }
#endif
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
My name is Yanxueming,i live in Chengdu China.Graduated from UESTC in 1999.