📄 ex29av~1.h
字号:
// ex29avw.h : interface of the CEx29aView class
//
/////////////////////////////////////////////////////////////////////////////
#include "RowView.h"
#if !defined(AFX_EX29AVIEW_H__87130E7F_8817_11D0_86C5_F5A2C72DE570__INCLUDED_)
#define AFX_EX29AVIEW_H__87130E7F_8817_11D0_86C5_F5A2C72DE570__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
class CEx29aView : public CRowView
{
private:
int m_nSelectedRow;
CDaoRecordset* m_pSet;
protected: // create from serialization only
CEx29aView();
DECLARE_DYNCREATE(CEx29aView)
// Attributes
public:
CEx29aDoc* GetDocument();
//{{AFX_VIRTUAL(CEx29aView)
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 ~CEx29aView();
#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(CEx29aView)
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 ex29avw.cpp
inline CEx29aDoc* CEx29aView::GetDocument()
{ return (CEx29aDoc*) m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EX29AVIEW_H__87130E7F_8817_11D0_86C5_F5A2C72DE570__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -