00001 // 00002 // PageSettingsSkins.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_PAGESETTINGSSKINS_H__EDD85F64_191E_4ADA_A0F5_639CD7F04F84__INCLUDED_) 00023 #define AFX_PAGESETTINGSSKINS_H__EDD85F64_191E_4ADA_A0F5_639CD7F04F84__INCLUDED_ 00024 00025 #pragma once 00026 00027 #include "WndSettingsPage.h" 00028 00029 00030 class CSkinsSettingsPage : public CSettingsPage 00031 { 00032 // Construction 00033 public: 00034 CSkinsSettingsPage(); 00035 virtual ~CSkinsSettingsPage(); 00036 00037 DECLARE_DYNCREATE(CSkinsSettingsPage) 00038 00039 // Dialog Data 00040 public: 00041 //{{AFX_DATA(CSkinsSettingsPage) 00042 enum { IDD = IDD_SETTINGS_SKINS }; 00043 CButton m_wndDelete; 00044 CEdit m_wndDesc; 00045 CStatic m_wndName; 00046 CStatic m_wndAuthor; 00047 CListCtrl m_wndList; 00048 //}}AFX_DATA 00049 00050 // Attributes 00051 public: 00052 CImageList m_gdiImageList; 00053 int m_nSelected; 00054 00055 // Operations 00056 public: 00057 void EnumerateSkins(LPCTSTR pszPath = NULL); 00058 BOOL AddSkin(LPCTSTR pszPath, LPCTSTR pszName); 00059 00060 // Overrides 00061 public: 00062 //{{AFX_VIRTUAL(CSkinsSettingsPage) 00063 public: 00064 virtual void OnOK(); 00065 protected: 00066 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00067 //}}AFX_VIRTUAL 00068 00069 // Implementation 00070 protected: 00071 //{{AFX_MSG(CSkinsSettingsPage) 00072 virtual BOOL OnInitDialog(); 00073 afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 00074 afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message); 00075 afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); 00076 afx_msg void OnItemChangedSkins(NMHDR* pNMHDR, LRESULT* pResult); 00077 afx_msg void OnSkinsBrowse(); 00078 afx_msg void OnSkinsWeb(); 00079 afx_msg void OnSkinsDelete(); 00080 //}}AFX_MSG 00081 DECLARE_MESSAGE_MAP() 00082 00083 }; 00084 00085 //{{AFX_INSERT_LOCATION}} 00086 00087 #endif // !defined(AFX_PAGESETTINGSSKINS_H__EDD85F64_191E_4ADA_A0F5_639CD7F04F84__INCLUDED_)