00001 // 00002 // DlgGraphItem.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_DLGGRAPHITEM_H__C643EFD4_C72F_431A_B0B5_97F6D8FBC3A1__INCLUDED_) 00023 #define AFX_DLGGRAPHITEM_H__C643EFD4_C72F_431A_B0B5_97F6D8FBC3A1__INCLUDED_ 00024 00025 #pragma once 00026 00027 #include "DlgSkinDialog.h" 00028 00029 class CGraphItem; 00030 00031 00032 class CGraphItemDlg : public CSkinDialog 00033 { 00034 // Construction 00035 public: 00036 CGraphItemDlg(CWnd* pParent = NULL, CGraphItem* pItem = NULL); 00037 00038 // Dialog Data 00039 public: 00040 //{{AFX_DATA(CGraphItemDlg) 00041 enum { IDD = IDD_GRAPH_ITEM }; 00042 CButton m_wndOK; 00043 CEdit m_wndUnits; 00044 CComboBox m_wndSource; 00045 CButton m_wndRemove; 00046 CComboBox m_wndParam; 00047 CStatic m_wndColourBox; 00048 //}}AFX_DATA 00049 00050 CGraphItem* m_pItem; 00051 COLORREF m_crColour; 00052 CImageList m_gdiImageList; 00053 00054 // Overrides 00055 public: 00056 //{{AFX_VIRTUAL(CGraphItemDlg) 00057 protected: 00058 virtual void DoDataExchange(CDataExchange* pDX); 00059 //}}AFX_VIRTUAL 00060 00061 // Implementation 00062 protected: 00063 //{{AFX_MSG(CGraphItemDlg) 00064 virtual BOOL OnInitDialog(); 00065 virtual void OnOK(); 00066 afx_msg void OnSelChangeGraphSource(); 00067 afx_msg void OnGraphColour(); 00068 afx_msg void OnPaint(); 00069 afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct); 00070 afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct); 00071 //}}AFX_MSG 00072 DECLARE_MESSAGE_MAP() 00073 00074 }; 00075 00076 //{{AFX_INSERT_LOCATION}} 00077 00078 #endif // !defined(AFX_DLGGRAPHITEM_H__C643EFD4_C72F_431A_B0B5_97F6D8FBC3A1__INCLUDED_)