📄 ex28dview.h
字号:
// ex28dvw.h : interface of the CEx28dView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_EX28DVIEW_H__BA9E33F2_958A_11D0_AAA2_444553540000__INCLUDED_)
#define AFX_EX28DVIEW_H__BA9E33F2_958A_11D0_AAA2_444553540000__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "rowview.h"
class CEx28dView : public CRowView
{
private:
int m_nSelectedRow;
CRecordset* m_pSet;
protected: // create from serialization only
CEx28dView();
DECLARE_DYNCREATE(CEx28dView)
// Attributes
public:
CEx28dDoc* GetDocument();
//{{AFX_VIRTUAL(CEx28dView)
public:
virtual void OnInitialUpdate();
protected:
virtual void OnUpdate(CView*, LPARAM lHint, CObject* pHint);
//}}AFX_VIRTUAL
// Overrides of CRowView
void OnDrawRow(CDC* pDC, int nRowNo, int y, BOOL bSelected);
void GetRowWidthHeight(CDC* pDC, int& nRowWidth,
int& nRowHeight, int& nCharWidth);
int GetActiveRow();
int GetRowCount();
void ChangeSelectionNextRow(BOOL bNext);
void ChangeSelectionToRow(int nRow);
// Implementation
public:
virtual ~CEx28dView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
private:
void DrawDataRow(CDC* pDC, int y);
// Generated message map functions
protected:
//{{AFX_MSG(CEx28dView)
afx_msg void OnSetFocus(CWnd* pOldWnd);
afx_msg int OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message);
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in ex28dView.cpp
inline CEx28dDoc* CEx28dView::GetDocument()
{ return (CEx28dDoc*) m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EX28DVIEW_H__BA9E33F2_958A_11D0_AAA2_444553540000__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -