pushpinbutton.h

来自「此程序利用串口读取民航AFTN电报网中的AFTN信息」· C头文件 代码 · 共 59 行

H
59
字号
#if !defined(AFX_PUSHPINBUTTON_H__FB3E2314_3C68_11D6_93A4_005004BE5A85__INCLUDED_)
#define AFX_PUSHPINBUTTON_H__FB3E2314_3C68_11D6_93A4_005004BE5A85__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PushPinButton.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CPushPinButton window

class CPushPinButton : public CButton
{
public:
//standard constructor
  CPushPinButton();

//accessors & mutators for the pinned state
  void SetPinned(BOOL bPinned);
  BOOL IsPinned() { return m_bPinned; };

//should be called in response to system color changes
  void ReloadBitmaps(); 

//Use an edged version of the bitmap
  void SetUseEdgeBitmap(BOOL bUseEdge);
  BOOL GetUseEdgeBitmap() const { return m_bUseEdge; };

protected:
  //{{AFX_MSG(CPushPinButton)
  afx_msg void OnClicked();
  //}}AFX_MSG

  //{{AFX_VIRTUAL(CPushPinButton)
	public:
  virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	protected:
	virtual void PreSubclassWindow();
	//}}AFX_VIRTUAL

  void SizeToContent();
  void LoadBitmaps();

  DECLARE_MESSAGE_MAP()
  BOOL    m_bPinned;
  BOOL    m_bUseEdge;
  CBitmap m_PinnedBitmap;
  CBitmap m_UnPinnedBitmap;
  CRect   m_MaxRect;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PUSHPINBUTTON_H__FB3E2314_3C68_11D6_93A4_005004BE5A85__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?