You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.3 KiB
C++

//////////////////////////////////////////////////////////////////////////////
//文件: CMessageInfo.h
//主要功能:
//
//程序编写: 2006-12-07
//
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MESSAGEINFO_H__B9791BC6_FEBE_4C28_A4A4_6C7672F81C0A__INCLUDED_)
#define AFX_MESSAGEINFO_H__B9791BC6_FEBE_4C28_A4A4_6C7672F81C0A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "afxcoll.h"
namespace NFileOperation
{
class AFX_EXT_CLASS CMessageInfo
{
public:
CMessageInfo();
virtual ~CMessageInfo();
int ReadAll(CString strLocalName); //读取MESSAGE文件
BOOL IsRead();
//对选择的层位GOTO中的内容作处理
int FindGoto(LPCTSTR lpszLayerName);
int ReplaceGoTo(CString strVariableName, CString strVarlableValue);
CString GetGotoString(int nIndex);
int ReplaceVariable(CString &str, CString strVariableName, CString strVarlableValue);
//鼠标移动时实时获得数据源及查询语句并显示
int FindMouseMove(LPCTSTR lpszLayerName);
int GetDatabaseInfo(CString& strDSN, CString& strSQL);
public:
int Find(LPCTSTR lpszLayerName, BOOL bMouseMove);
CStringList m_gotoArray;
CStringList m_allArray;
};
};
using namespace NFileOperation;
#endif // !defined(AFX_MESSAGEINFO_H__B9791BC6_FEBE_4C28_A4A4_6C7672F81C0A__INCLUDED_)