📄 qqview.h
字号:
// QQView.h : interface of the CQQView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_QQVIEW_H__F9983CE8_554D_4622_8942_ECD35A6EB5E6__INCLUDED_)
#define AFX_QQVIEW_H__F9983CE8_554D_4622_8942_ECD35A6EB5E6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include"GuestInfoLookup.h"
#include "QQDoc.h"
#include "InfoLookDialog.h"
#include <Afxtempl.h>//模板头文件
#include "Page3.h"
struct RANGLEITEMSINFO //定义图像矩形区域结构体
{
int nIndex;//矩形在图像中的索引
long x1;
long y1;
long x2;
long y2;
CString strContentText;//矩形内的文本
};
class CQQView : public CView
{
public: // create from serialization only
CQQView();
DECLARE_DYNCREATE(CQQView)
// Attributes
public:
// void DrawRangle(long x1, long y1, long x2, long y2,CDC* pDC);
static CQQView* GetView();//静态成员函数得到CView指针,供其他对象使用
CQQDoc* GetDocument();
CString strShowText;
CGuestInfoLookup guestinfolookup;//客人信息查询对象
bool bFinish;
bool bFirst;
CInfoLookDialog m_InfoLookDialog;
CPage3 page3;
// static bool bRestrore;//是否恢复视图区域
static HBITMAP m_CurScreenBitmap;//当前屏幕位图句柄
static int nImgTypeInView;//当前视图区域显示的图形类型-1为背景图
//0为文字图像
//1~11为数据分析模块中的图像类别
//12为酒店概貌的树型图像,13为框架图像
CList<RANGLEITEMSINFO*,RANGLEITEMSINFO*> m_List;//结构体列表
static CPoint pnt;//静态点,用来为显示信息对话框作为中点
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CQQView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
void InitStructData();
void SetBitmapText(CPoint pnt,CDC* pDC,CString strText);
void SetBitmapText(long x,long y,CDC* pDC,CString strText)
{
SetBitmapText(CPoint(x,y),pDC,strText);
}
void LoadWelocmeBmp(CDC* pDC);//load the welocme bmp
void LoadbgroundBitmap(CDC* pDC);
static BOOL bFirstRun;
virtual ~CQQView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CQQView)
afx_msg void OnRoomRegister();//注册登记
afx_msg void OnRoomChoose(); //选择房间
afx_msg void OnFoodOrder(); //食物点单
afx_msg void OnServerOrder(); //服务点单
afx_msg void OnMoneyCheckout();//结帐走人
afx_msg void OnMoneyStock(); //财务库存
afx_msg void OnMoneyReportform();//财务报表
afx_msg void OnInfolookGuest(); //客人信息查询
afx_msg void OnInfolookBill(); //帐单信息查询
afx_msg void OnInfolookEmployer();//职员信息查询
afx_msg void OnInfolookFood(); //食物信息查询
afx_msg void OnInfolookRoom(); //房间信息查询
afx_msg void OnInfolookServer(); //服务项目查询
afx_msg void OnInfolookConsume(); //具体消费查询
afx_msg void OnTimer(UINT nIDEvent);//时间器
afx_msg BOOL OnEraseBkgnd(CDC* pDC);//擦除背景
afx_msg void OnMoneyPay();//支付帐单
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRoomDestine();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in QQView.cpp
inline CQQDoc* CQQView::GetDocument()
{ return (CQQDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_QQVIEW_H__F9983CE8_554D_4622_8942_ECD35A6EB5E6__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -