www.pudn.com > RMS2000_C.rar > FindView.h
#if !defined(AFX_FINDVIEW_H__71A7C263_7C4E_11D4_9C32_87A13AC8B72E__INCLUDED_)
#define AFX_FINDVIEW_H__71A7C263_7C4E_11D4_9C32_87A13AC8B72E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FindView.h : header file
//
#include "sqldirect.h"
/////////////////////////////////////////////////////////////////////////////
// CFindView view
class CFindDoc;
class CFindView : public CListView
{
protected:
CFindView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CFindView)
// Attributes
public:
CFindDoc* GetDocument();
CImageList* m_pImageList;
CSQLDirect* m_pRmsSQL;
// Operations
public:
enum ImageIDS{
IDD_0=0,
IID_1,IID_2,IID_3,IID_4,IID_5,IID_6,IID_7,IID_8,
IID_9,IID_10,IID_11,IID_12,IID_13,IID_14,IID_15,IID_16
};
void EraseList();
void ShowDatabase();
void ShowTableData(LPCTSTR strStaName);
void ShowFieldData(LPCTSTR strFieldName,LPCTSTR strStaName);
int ComputeRtuNo(LPCTSTR strStaName);
/*
BOOL NewFormFileName(int RtuNum,char *szDate,char *szFileName);
BOOL NewReadBinary(char *szFileName, char *szDate,int hour,BIDATA* pbData);
int ComputeParamNo(int rtu,LPCTSTR strParName);
*/
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFindView)
public:
virtual void OnInitialUpdate();
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CFindView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CFindView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnFilePrint();
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnWindowNew();
afx_msg void OnFileSave();
afx_msg void OnFileSaveAs();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in NetDataView.cpp
inline CFindDoc* CFindView::GetDocument()
{ return (CFindDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FINDVIEW_H__71A7C263_7C4E_11D4_9C32_87A13AC8B72E__INCLUDED_)