📄 frametop.h
字号:
#if !defined(AFX_FRAMETOP_H__9610321D_2BF2_476E_8187_D3FB56F538B3__INCLUDED_)#define AFX_FRAMETOP_H__9610321D_2BF2_476E_8187_D3FB56F538B3__INCLUDED_#if _MSC_VER > 1000#pragma once#endif // _MSC_VER > 1000// FrameTop.h : header file///////////////////////////////////////////////////////////////////////////////// RxFrameTop window#include "FrameWnd.h"typedef struct{ UINT nID; UINT nBmpID; BOOL bShow; BOOL bEnable;} FT_BUTTON;#define FTB_CHANGED 0x0001typedef struct{ NMHDR hdr; int nCurTab; // current tab index} NMFT_BUTTON;#define FTBS_NORMAL 0#define FTBS_FOCUS 1#define FTBS_SELECT 2#define FTBS_DISABLE 3class RxFrameTop : public RxFrameWnd{// Constructionpublic: RxFrameTop();// Attributespublic: int m_nSeparator; // back ground tab separator size POINT m_ptOrigin; // tab button start point SIZE m_szButton; // tab a button size, must same a bitmap size CPtrArray m_ArrayButton; // the FT_BUTTON structure's point array int m_nCaptureID; int m_nCurTabID;// Operationspublic: void AddButton(UINT nID, UINT nBmpID, BOOL bShow, BOOL bEnable); void EnableButton(int nIndex, BOOL bEnable); int GetButtonCount() { return m_ArrayButton.GetSize(); } int HitTest(CPoint point, LPRECT rect = NULL) const; void GetButtonRect(UINT nID, LPRECT rect) const; void RemoveAllButton(); void DrawBitmap(CDC *pDC, LPPOINT point, UINT nBmpID, UINT nStatus); BOOL SetCurTab(int nTabID); int GetCurTab() { return m_nCurTabID; }// Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(RxFrameTop) //}}AFX_VIRTUAL virtual int OnToolHitTest(CPoint point, TOOLINFO* pTI) const;// Implementationpublic: virtual ~RxFrameTop(); virtual void OnSwitchToMainMenu(BOOL bActive, int nOldMainMenuID, int nCurMainMenuID); // Generated message map functionsprotected: //{{AFX_MSG(RxFrameTop) afx_msg void OnDestroy(); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg void OnLButtonUp(UINT nFlags, CPoint point); afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnPaint(); //}}AFX_MSG afx_msg void OnInitialUpdate(); afx_msg BOOL OnToolTipNotify(UINT id, NMHDR * pNMHDR, LRESULT * pResult); DECLARE_MESSAGE_MAP()};///////////////////////////////////////////////////////////////////////////////{{AFX_INSERT_LOCATION}}// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_FRAMETOP_H__9610321D_2BF2_476E_8187_D3FB56F538B3__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -