📄 ~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"
class CSelStatic : public full_dlg<video_wnd>
{
typedef full_dlg<video_wnd> selstatic_base;
LOGFONT lf;
protected:
static CSelStatic* cur_sel; // 当前选择的视频窗口
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};
COLORREF frcl; ///< 窗口边框颜色
void clear_sel();
bool is_sel() const;
virtual void on_unsel(){};
virtual void on_sel(){};
// 取得本窗口标题
CString get_title() const;
// 设置本窗口标题
void set_title(LPCTSTR t);
// 清除整个窗口
void clear_wnd();
// Construction
public:
CSelStatic();
void draw_sel();
void draw_unsel();
void toggle_sel();
// Attributes
public:
// 从全屏状态返回
virtual void restore();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSelStatic)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CSelStatic();
// Generated message map functions
protected:
//{{AFX_MSG(CSelStatic)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnPaint();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
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 + -