home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / dtime / data.1 / PushPin.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-08  |  873 b   |  44 lines

  1. /*
  2. Module : PUSHPIN.H
  3. Purpose: Interface of a push pin button 
  4.          (as seen on X-Windows & property dialogs in VC 4)
  5. Created: PJN / DATE/1 / 04-04-1996
  6. History: None
  7.  
  8. Copyright (c) 1996 by PJ Naughter.  
  9. All rights reserved.
  10.  
  11. */
  12.  
  13. #ifndef __PUSHPIN_H__            
  14.  
  15.  
  16. ////////////////////////////////// Includes ///////////////////////////////////
  17.  
  18. #include "win32sup.h"
  19.  
  20.  
  21.  
  22. class AFX_EXT_CLASS CPushPinButton : public CBitmapButton
  23. {
  24. public:
  25.   EXPORT16 CPushPinButton();
  26.   virtual EXPORT16 ~CPushPinButton();
  27.  
  28.   BOOL EXPORT16 IsPinned() { return m_bPinned; };
  29.  
  30.  
  31.   //{{AFX_MSG(CPushPinButton)
  32.   afx_msg void OnClicked();
  33.   //}}AFX_MSG
  34.  
  35. protected:
  36.   //{{AFX_VIRTUAL(CPushPinButton)
  37.   virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
  38.   //}}AFX_VIRTUAL
  39.  
  40.   DECLARE_MESSAGE_MAP()
  41.   BOOL m_bPinned;
  42. };
  43.  
  44. #endif //__PUSHPIN_H__