?? page1.h
字號(hào):
#if !defined(AFX_PAGE1_H__7A5266C6_443D_47BB_A596_246D382E6701__INCLUDED_)
#define AFX_PAGE1_H__7A5266C6_443D_47BB_A596_246D382E6701__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Page1.h : header file
//
#define nTables 6//表的數(shù)目
#define nLines 100//行的數(shù)目
#define nCols 12 //列的數(shù)目,已最大的為準(zhǔn)
/////////////////////////////////////////////////////////////////////////////
// CPage1 dialog
#include ".\\CoolProgress\\MacProgressCtrl.h"//包含滾動(dòng)條的頭文件
#include "SearchMethod.h"//高級(jí)搜索頭文件
#include "InfoSet.h"
class CPage1 : public CDialog
{
DECLARE_DYNCREATE(CPage1)
// Construction
public:
//方法
void FillEmployerInfo(int nCurLines);
void SearchEmployerInfoSet(CString strSearchText);
void FillFoodInfo(int nCurLines);
void SearchFoodInfoSet(CString strSearchText);
void FillServerInfo(int nCurLines);
void SearchServerInfoSet(CString strSearchText);
void FillBillInfo(int nCurLines);
void SearchBillInfoSet(CString strSearchText);
void FillRoomInfo(int nCurLines);
void SearchRoomInfoSet(CString strSearchText);
void FillGuestInfo(int nCurLines);
void SearchGuestInfoSet(CString strSearchText);
static void InitDate();//為靜態(tài)成員初始化
CPage1(CWnd* pParent = NULL); // standard constructor
// static CMacProgressCtrl* GetCoolProgressCtrl()
// {
// return (CMacProgressCtrl*)m_CoolProgress.GetSafeHwnd();
// }
//屬性
bool bSearch;
// Dialog Data
//{{AFX_DATA(CPage1)
enum { IDD = IDD_PAGE1 };
CEdit m_SearchText;
CMacProgressCtrl m_CoolProgress;
BOOL m_bBill;
BOOL m_bEmployer;
BOOL m_bFood;
BOOL m_bGuest;
BOOL m_bRoom;
BOOL m_bServer;
int m_SearchType;//搜索類(lèi)型0-完全匹配 1-相似匹配
//}}AFX_DATA
CSearchMethod m_SearchMethod;//高級(jí)搜索方法實(shí)例
CString strSearchText;
static CString pszText[nTables][nLines][nCols];//存放查找得到的結(jié)果
static int nTablesItems[nTables];
////定義數(shù)據(jù)庫(kù)表對(duì)象
CGuestInfoSet m_GuestInfoSet;//客人信息表對(duì)象
CRoomInfoSet m_RoomInfoSet;
CBillInfoSet m_BillInfoSet;
CServerInfoSet m_ServerInfoSet;
CFoodInfoSet m_FoodInfoSet;
CEmployerInfoSet m_EmployerInfoSet;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPage1)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CPage1)
virtual BOOL OnInitDialog();
afx_msg void OnCheckBill();
afx_msg void OnCheckEmployer();
afx_msg void OnCheckFood();
afx_msg void OnCheckGuest();
afx_msg void OnCheckRoom();
afx_msg void OnCheckServer();
afx_msg void OnChangeSearchtext();
afx_msg void OnRadio();
afx_msg void OnSearch();
afx_msg void OnDestroy();
afx_msg void OnSetCoolProcessPos();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PAGE1_H__7A5266C6_443D_47BB_A596_246D382E6701__INCLUDED_)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -