⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pushpin.h

📁 串口调试助手的原程序代码,根据网上的串口调试助手编写的
💻 H
字号:
/*
Module : PUSHPIN.H
Purpose: Interface of a push pin button 
         (as seen on X-Windows & property dialogs in VC 4)
Created: PJN / DATE/1 / 04-04-1996
History: None

Copyright (c) 1997 by PJ Naughter.  
All rights reserved.

*/

#ifndef __PUSHPIN_H__
#define __PUSHPIN_H__


////////////////////////////////// Includes ///////////////////////////////////


class CPushPinButton : public CButton
{
public:
	void ProcessClick();
//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

  //{{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;
};

#endif //__PUSHPIN_H__

⌨️ 快捷键说明

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