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

CShellIcons Class Reference

#include <ShellIcons.h>

List of all members.

Public Member Functions

 CShellIcons ()
virtual ~CShellIcons ()
void Clear ()
int Get (LPCTSTR pszFile, int nSize)
int Add (HICON hIcon, int nSize)
HICON ExtractIcon (int nIndex, int nSize)
BOOL Lookup (LPCTSTR pszType, HICON *phSmallIcon, HICON *phLargeIcon, CString *psName, CString *psMIME, HICON *phHugeIcon=NULL)
CString GetTypeString (LPCTSTR pszFile)
void Draw (CDC *pDC, int nIcon, int nSize, int nX, int nY, COLORREF crBack=CLR_NONE, BOOL bSelected=FALSE)
CImageList * GetObject (int nSize) const
HIMAGELIST GetHandle (int nSize) const

Protected Member Functions

 UINT (WINAPI *m_pfnPrivate)(LPCTSTR

Protected Attributes

CImageList m_i16
CImageList m_i32
CImageList m_i48
CMapStringToPtr m_m16
CMapStringToPtr m_m32
CMapStringToPtr m_m48
HINSTANCE m_hUser
 int
HICON UINT UINT


Constructor & Destructor Documentation

CShellIcons::CShellIcons  ) 
 

Definition at line 37 of file ShellIcons.cpp.

References m_hUser, and NULL.

CShellIcons::~CShellIcons  )  [virtual]
 

Definition at line 52 of file ShellIcons.cpp.

References m_hUser.


Member Function Documentation

int CShellIcons::Add HICON  hIcon,
int  nSize
 

Definition at line 171 of file ShellIcons.cpp.

References Clear(), m_i16, m_i32, m_i48, and NULL.

Referenced by CSchema::LoadIcon().

void CShellIcons::Clear  ) 
 

Definition at line 60 of file ShellIcons.cpp.

References CreateMirroredIcon(), IDB_SHELL_BASE, IDB_SHELL_BASE_RTL, IDI_COLLECTION_MASK, IDI_EXECUTABLE, IDI_FILE, CShareazaApp::m_bRTL, m_i16, m_i32, m_i48, m_m16, m_m32, m_m48, SHI_COLLECTION, SHI_COMMERCIAL, SHI_EXECUTABLE, SHI_LOCKED, SHI_MAX, SHI_O_COLLECTION, SHI_O_COMMERCIAL, SHI_O_LOCKED, SHI_O_PARTIAL, SHI_O_RATING_AVERAGE, SHI_O_RATING_FAKE, SHI_O_RATING_GOOD, SHI_PARTIAL, SHI_RATING_AVERAGE, SHI_RATING_FAKE, SHI_RATING_GOOD, and theApp.

Referenced by Add(), Get(), and CShareazaApp::InitInstance().

void CShellIcons::Draw CDC *  pDC,
int  nIcon,
int  nSize,
int  nX,
int  nY,
COLORREF  crBack = CLR_NONE,
BOOL  bSelected = FALSE
 

Definition at line 388 of file ShellIcons.cpp.

References GetHandle().

Referenced by CLibraryHeaderPanel::DoPaint(), CBrowseHeaderCtrl::DoPaint(), CSchemaCombo::DrawItem(), CSearchDetailPanel::DrawThumbnail(), CFileCommentsPage::OnDrawItem(), CSearchWnd::OnPaint(), CFilePropertiesPage::OnPaint(), CFolderTipCtrl::OnPaint(), CSearchDetailPanel::OnPaint(), CMatchTipCtrl::OnPaint(), CLibraryMetaPanel::OnPaint(), CLibraryHistoryPanel::OnPaint(), CHomeLibraryBox::OnPaint(), CHomeDownloadsBox::OnPaint(), CSearchDetailPanel::Review::Paint(), and CLibraryAlbumTrack::Paint().

HICON CShellIcons::ExtractIcon int  nIndex,
int  nSize
 

Definition at line 191 of file ShellIcons.cpp.

References CreateMirroredIcon(), CShareazaApp::m_bRTL, m_i16, m_i32, m_i48, NULL, and theApp.

Referenced by CSearchPanel::OnSchemaChange().

int CShellIcons::Get LPCTSTR  pszFile,
int  nSize
 

Definition at line 127 of file ShellIcons.cpp.

References Clear(), Lookup(), m_i16, m_i32, m_i48, m_m16, m_m32, m_m48, and NULL.

Referenced by CMediaListCtrl::Add(), CMatchFile::Added(), CLibraryDetailView::CacheItem(), CLibraryThumbItem::CLibraryThumbItem(), CMatchTipCtrl::LoadTypeInfo(), CFilesProfilePage::OnInitDialog(), CTorrentTrackerDlg::OnInitDialog(), CFilePropertiesPage::OnInitDialog(), CLibraryTipCtrl::OnPrepare(), CBitziDownloadDlg::OnRequesting(), CDownloadsCtrl::PaintDownload(), CUploadsCtrl::PaintFile(), CDownloadTipCtrl::PrepareFileInfo(), CSearchDetailPanel::Update(), CLibraryMetaPanel::Update(), CLibraryHistoryPanel::Update(), CLibraryAlbumTrack::Update(), CHomeLibraryBox::Update(), and CHomeDownloadsBox::Update().

HIMAGELIST CShellIcons::GetHandle int  nSize  )  const [inline]
 

Definition at line 64 of file ShellIcons.h.

References m_i16, m_i32, m_i48, and NULL.

Referenced by Draw(), CMatchCtrl::DrawItem(), CMatchCtrl::DrawStatus(), CAlbumTipCtrl::DrawThumb(), CLibraryTipCtrl::DrawThumb(), CLibraryMetaPanel::DrawThumbnail(), CFolderPropertiesDlg::OnPaint(), CDownloadTipCtrl::OnPaint(), CLibraryTreeItem::Paint(), CLibraryTileItem::Paint(), CLibraryThumbItem::Paint(), CDownloadTabBar::TabItem::Paint(), CBrowseTreeItem::Paint(), CDownloadsCtrl::PaintDownload(), CUploadsCtrl::PaintFile(), CLibraryHeaderBar::PaintHeader(), and CUploadsCtrl::PaintQueue().

CImageList* CShellIcons::GetObject int  nSize  )  const [inline]
 

Definition at line 49 of file ShellIcons.h.

References m_i16, m_i32, m_i48, and NULL.

Referenced by CLibraryFolderCtrl::OnCreate(), CMediaListCtrl::OnCreate(), CLibraryDetailView::OnCreate(), CWizardSharePage::OnInitDialog(), CFilesProfilePage::OnInitDialog(), CTorrentTrackerDlg::OnInitDialog(), CShareManagerDlg::OnInitDialog(), CDownloadGroupDlg::OnInitDialog(), and CBitziDownloadDlg::OnInitDialog().

CString CShellIcons::GetTypeString LPCTSTR  pszFile  ) 
 

Definition at line 216 of file ShellIcons.cpp.

References Lookup(), and NULL.

Referenced by CFileGeneralPage::OnInitDialog(), CLibraryTipCtrl::OnPrepare(), and CLibraryMetaPanel::Update().

BOOL CShellIcons::Lookup LPCTSTR  pszType,
HICON *  phSmallIcon,
HICON *  phLargeIcon,
CString *  psName,
CString *  psMIME,
HICON *  phHugeIcon = NULL
 

Definition at line 242 of file ShellIcons.cpp.

References CreateMirroredIcon(), CShareazaApp::m_bRTL, NULL, theApp, and UINT.

Referenced by Get(), GetTypeString(), CMatchTipCtrl::LoadTypeInfo(), CDownloadMonitorDlg::OnInitDialog(), CIEProtocol::OnRequestRAZACOL(), CUploadTransferHTTP::OpenFileSendHeaders(), CDownloadTipCtrl::PrepareFileInfo(), and CFilePropertiesDlg::Update().

CShellIcons::UINT WINAPI *  m_pfnPrivate  )  [protected]
 


Member Data Documentation

CShellIcons::int [protected]
 

Definition at line 90 of file ShellIcons.h.

HINSTANCE CShellIcons::m_hUser [protected]
 

Definition at line 89 of file ShellIcons.h.

Referenced by CShellIcons(), and ~CShellIcons().

CImageList CShellIcons::m_i16 [protected]
 

Definition at line 81 of file ShellIcons.h.

Referenced by Add(), Clear(), ExtractIcon(), Get(), GetHandle(), and GetObject().

CImageList CShellIcons::m_i32 [protected]
 

Definition at line 82 of file ShellIcons.h.

Referenced by Add(), Clear(), ExtractIcon(), Get(), GetHandle(), and GetObject().

CImageList CShellIcons::m_i48 [protected]
 

Definition at line 83 of file ShellIcons.h.

Referenced by Add(), Clear(), ExtractIcon(), Get(), GetHandle(), and GetObject().

CMapStringToPtr CShellIcons::m_m16 [protected]
 

Definition at line 85 of file ShellIcons.h.

Referenced by Clear(), and Get().

CMapStringToPtr CShellIcons::m_m32 [protected]
 

Definition at line 86 of file ShellIcons.h.

Referenced by Clear(), and Get().

CMapStringToPtr CShellIcons::m_m48 [protected]
 

Definition at line 87 of file ShellIcons.h.

Referenced by Clear(), and Get().

HICON UINT CShellIcons::UINT [protected]
 

Definition at line 90 of file ShellIcons.h.

Referenced by Lookup().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:12 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2