📄 sshowcenter.h
字号:
#if !defined(AFX_SSHOWCENTER_H__8F508D30_EF96_43CE_B669_1E334EB05ACA__INCLUDED_)
#define AFX_SSHOWCENTER_H__8F508D30_EF96_43CE_B669_1E334EB05ACA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SshowCenter.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CSshowCenter window
class CSshowCenter : public CWnd
{
// Construction
public:
CSshowCenter();
void SetRowsCols(int rows, int cols,int nSplitCount1);
void InitParam();
void SelectRect(int i, CDC *dc);
void DrowPicture6(CDC *m_BackgroundDC, CRect rect,int rectHeight, int rectWidth);
void DrowPicture13(CDC *m_BackgroundDC, CRect rect,int rectHeight, int rectWidth);
void DrowPicture8(CDC *m_BackgroundDC, CRect rect,int rectHeight, int rectWidth);
void DrowPicture10(CDC *m_BackgroundDC, CRect rect,int rectHeight, int rectWidth);
void DrowPicture7(CDC *m_BackgroundDC,CRect rect,int rectHeight, int rectWidth);
void VideoCoorDinate(int num,int rectWidth,int rectHeight);
void VideoDrow(CDC *pDC, int i);
int GetSelIndex(int x, int y);
int GetSelect(CPoint point);
int CacRects(int numRects);
CRect GetSelRect(int index);
HBITMAP m_bitmap1;
// Attributes
public:
bool m_bDisplayTimer;
bool m_bIsSetImage;
bool m_bDisplay;
bool m_bDisplay1;
bool m_bDisplay2;
bool m_bDisplay3;
bool m_choosplay;
bool m_bClicbutton;
bool m_bFirst; //控制该绘制哪一副图
bool m_bSecond;
bool m_bThird;
bool m_bFouth;
bool m_bFifth;
bool m_bLclick;
bool m_ballvedio;
// Operations
public:
int m_nOpenChannelCount;
int aheadCols ;
int aheadrows ;
static int m_InumberCount;
CDC m_SelDC;
CDC m_BackgroundDC;
CDC m_MenDC;
CDC m_MemDC1;
CRect m_ctlRect;//接受了CReate函数里面需要创建的控件的矩形
// CRect rect1;
CRect m_rcWnd;//用来设置与Center控件相符的周边框架,在CReate函数里初始化
CRect rectlist[62];
CRect anomalyrect[62];
int m_iRows; //用来标记规则的矩形分屏的行数;
int m_iCols; //用来标记规则的矩形分屏的列数;
int m_inum;
int nSplitCount;//用来标记当前的一共有多少个屏幕
int m_iSelIndex;
int m_iChangeCount;
CString strTimer;
CRect rectList1[7];//用来存储被分割的屏幕的坐标
CRect rectList2[10];
CRect rectList3[8];
CRect rectList4[6];
CRect rectList5[13];
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSshowCenter)
public:
virtual BOOL Create(DWORD dwStyle, CRect rect, CWnd* pParent, UINT id);
//}}AFX_VIRTUAL
// Implementation
public:
void ChangeControl();
void CShowComPlete(CDC *dc, int num,CRect hrect);
void DistrictCoorDinate(int num,int rectWidth,int rectHeight);
void StartVideo(CDC *dc);
virtual ~CSshowCenter();
// Generated message map functions
protected:
//{{AFX_MSG(CSshowCenter)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnPaint();
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SSHOWCENTER_H__8F508D30_EF96_43CE_B669_1E334EB05ACA__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -