📄 selstatic.h
字号:
#if !defined(AFX_SELSTATIC_H__CD48B14C_8D21_43C4_BA42_BCA9E1E773EF__INCLUDED_)
#define AFX_SELSTATIC_H__CD48B14C_8D21_43C4_BA42_BCA9E1E773EF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SelStatic.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CSelStatic window
#include "subwnds.h"
#include "full_dlg.h"
#include "../utils/video_mask.h"
//##ModelId=3F90BAAA00F1
class CSelStatic : public full_dlg<video_wnd>
{
//##ModelId=3F90BAAA0209
typedef full_dlg<video_wnd> selstatic_base;
//##ModelId=3F90BAAA011A
LOGFONT lf;
protected:
//##ModelId=3F90BAAA0126
static CSelStatic* cur_sel; // 当前选择的视频窗口
//##ModelId=3F90BAAA013A
static CSelStatic* def; // 默认选择, 当前选择cur_sel不可用时, 此为当前选择
enum {title_x = 10, title_y = 10};
enum {norm_fr=0x00ffffff, sel_fr=0x000000ff};
enum {bkcl=RGB(1,2,80), cltext=0x2068ff};
//##ModelId=3F90BAAA0141
COLORREF frcl; ///< 窗口边框颜色
//##ModelId=3F90BAAA0155
void clear_sel();
//##ModelId=3F90BAAA015F
bool is_sel() const;
//##ModelId=3F90BAAA0169
virtual void on_unsel(){};
//##ModelId=3F90BAAA016B
virtual void on_sel(){};
// 取得本窗口标题
//##ModelId=3F90BAAA0174
CString get_title() const;
// 设置本窗口标题
//##ModelId=3F90BAAA017E
void set_title(LPCTSTR t);
// 清除整个窗口
//##ModelId=3F90BAAA0191
void clear_wnd();
// Construction
public:
//##ModelId=3F90BAAA019B
CSelStatic();
//##ModelId=3F90BAAA019C
void draw_sel();
//##ModelId=3F90BAAA019D
void draw_unsel();
//##ModelId=3F90BAAA01A5
void toggle_sel();
// Attributes
public:
// 从全屏状态返回
//##ModelId=3F90BAAA01A6
virtual void restore();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSelStatic)
//}}AFX_VIRTUAL
// Implementation
public:
//##ModelId=3F90BAAA01B0
virtual ~CSelStatic();
// Generated message map functions
protected:
//{{AFX_MSG(CSelStatic)
//##ModelId=3F90BAAA01B9
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
//##ModelId=3F90BAAA01CD
afx_msg void OnPaint();
//##ModelId=3F90BAAA01CF
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//##ModelId=3F90BAAA01E1
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
//##ModelId=3F90BAAA01F5
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SELSTATIC_H__CD48B14C_8D21_43C4_BA42_BCA9E1E773EF__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -