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