createdbdlg.h
来自「windows ce开发技巧与实例光盘代码」· C头文件 代码 · 共 78 行
H
78 行
// CreateDBDlg.h : header file
//
#if !defined(AFX_CREATEDBDLG_H__A77CD648_C46C_11D6_A8DC_00E04C6BF03A__INCLUDED_)
#define AFX_CREATEDBDLG_H__A77CD648_C46C_11D6_A8DC_00E04C6BF03A__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "ProgressWnd.h"
#include "Markup.h"
/////////////////////////////////////////////////////////////////////////////
// CCreateDBDlg dialog
#define DELETE_POINTER(ptr) if( ptr != NULL ) { delete ptr; ptr = NULL; }
class CCreateDBDlg : public CDialog
{
// Construction
public:
CCreateDBDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CCreateDBDlg)
enum { IDD = IDD_CREATEDB_DIALOG };
CComboBox m_comboTableCtrl;
CListBox m_listCtrl;
CString m_szFileName;
CString m_szTable;
int m_iOperation;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCreateDBDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CCreateDBDlg)
virtual BOOL OnInitDialog();
afx_msg void OnBtnCreate();
afx_msg void OnCloseupComboOperation();
afx_msg void OnBtnBegin();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
BOOL Write2DB(CString &szID,CString &szParentID,CString &szName,CString &szContent,CString szTable);
BOOL IsExistDB(LPCTSTR lpszFileName);
void DropTables(LPCTSTR lpszFileName);
BOOL CreateCDB(LPCTSTR lpszFileName);
void CreateTables(LPCTSTR lpszFileName);
void InsertData();
void InsertMarketTips2DB(LPCTSTR lpszFileName);
void InsertInsureDict2DB(LPCTSTR lpszFilePath);
void DealWithInsureDict(int &iCount,CProgressWnd &wnd,CString &szFileName);
void ReadXML2Str(LPCTSTR lpszFileName,CString &csText,CMarkup &xml);
void LoadTableList2Comb(LPCTSTR lpszFileName);
void DeleteAllData(LPCTSTR lpszFileName);
void DeleteData();
void DropTable();
void InsertDataFromXML(LPCTSTR lpszFilePath,LPCTSTR szTable);
void CreateTable(LPCTSTR lpszFileName);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CREATEDBDLG_H__A77CD648_C46C_11D6_A8DC_00E04C6BF03A__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?