gnomeframe.h
来自「Gnome风格的窗口框架」· C头文件 代码 · 共 80 行
H
80 行
#if !defined(AFX_GNOMEFRAME_H__5651AED2_19C1_469E_B327_FF7D5B10DFFC__INCLUDED_)
#define AFX_GNOMEFRAME_H__5651AED2_19C1_469E_B327_FF7D5B10DFFC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GnomeFrame.h : header file
//
#define GNOME_HTMINIMIZE 1
#define GNOME_HTMAXIMIZE 2
#define GNOME_HTCLOSE 3
/////////////////////////////////////////////////////////////////////////////
// CGnomeFrame frame
class CGnomeFrame : public CXTPFrameWnd
{
DECLARE_DYNCREATE(CGnomeFrame)
protected:
CGnomeFrame(); // protected constructor used by dynamic creation
// Attributes
public:
CRect m_rcBorders;
CBitmap m_bmpBottomLeft;
CBitmap m_bmpBottomRight;
CBitmap m_bmpMenuNormal;
CBitmap m_bmpCaption;
CBitmap m_bmpCloseNormal;
CBitmap m_bmpMaximizeNormal;
CBitmap m_bmpMinimizeNormal;
CBitmap m_bmpClosePushed;
CBitmap m_bmpMaximizePushed;
CBitmap m_bmpMinimizePushed;
CFont m_fntTitle;
int m_nButtonDown;
// Operations
public:
int GetSysButtonsHitTest(CPoint point);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGnomeFrame)
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CGnomeFrame();
// Generated message map functions
//{{AFX_MSG(CGnomeFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnNcPaint();
afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
afx_msg UINT OnNcHitTest(CPoint point);
afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnWindowPosChanging(WINDOWPOS* lpwndpos);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnCaptureChanged(CWnd *pWnd);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GNOMEFRAME_H__5651AED2_19C1_469E_B327_FF7D5B10DFFC__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?