Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CtrlIconButton.h

Go to the documentation of this file.
00001 //
00002 // CtrlIconButton.h
00003 //
00004 // Copyright (c) Shareaza Development Team, 2002-2005.
00005 // This file is part of SHAREAZA (www.shareaza.com)
00006 //
00007 // Shareaza is free software; you can redistribute it
00008 // and/or modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 2 of
00010 // the License, or (at your option) any later version.
00011 //
00012 // Shareaza is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 //
00017 // You should have received a copy of the GNU General Public License
00018 // along with Shareaza; if not, write to the Free Software
00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 //
00021 
00022 #if !defined(AFX_CTRLICONBUTTON_H__5E629D93_681A_4631_BD16_166C2E025871__INCLUDED_)
00023 #define AFX_CTRLICONBUTTON_H__5E629D93_681A_4631_BD16_166C2E025871__INCLUDED_
00024 
00025 #pragma once
00026 
00027 
00028 class CIconButtonCtrl : public CWnd
00029 {
00030 // Construction
00031 public:
00032         CIconButtonCtrl();
00033         virtual ~CIconButtonCtrl();
00034 
00035 // Attributes
00036 protected:
00037         CImageList      m_pImageList;
00038         BOOL            m_bCapture;
00039         BOOL            m_bDown;
00040         BOOL            m_bCursor;
00041 
00042 // Operations
00043 public:
00044         void    SetText(LPCTSTR pszText);
00045         void    SetIcon(UINT nIconID);
00046         void    SetIcon(HICON hIcon);
00047         void    SetHandCursor(BOOL bCursor);
00048 protected:
00049         BOOL    RemoveStyle();
00050 
00051 // Overrides
00052 public:
00053         //{{AFX_VIRTUAL(CIconButtonCtrl)
00054         virtual BOOL Create(const RECT& rect, CWnd* pParentWnd, UINT nControlID);
00055         //}}AFX_VIRTUAL
00056 
00057 // Implementation
00058 protected:
00059         //{{AFX_MSG(CIconButtonCtrl)
00060         afx_msg void OnMouseMove(UINT nFlags, CPoint point);
00061         afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00062         afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
00063         afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
00064         afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
00065         afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
00066         afx_msg void OnPaint();
00067         afx_msg BOOL OnEraseBkgnd(CDC* pDC);
00068         afx_msg void OnEnable(BOOL bEnable);
00069         //}}AFX_MSG
00070         DECLARE_MESSAGE_MAP()
00071 
00072 };
00073 
00074 //{{AFX_INSERT_LOCATION}}
00075 
00076 #endif // !defined(AFX_CTRLICONBUTTON_H__5E629D93_681A_4631_BD16_166C2E025871__INCLUDED_)
00077 

Generated on Thu Dec 15 10:39:35 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2