?? 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 + -