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

CSchemaCombo Class Reference

#include <CtrlSchemaCombo.h>

List of all members.

Public Member Functions

 CSchemaCombo ()
virtual ~CSchemaCombo ()
void SetEmptyString (UINT nID)
void Load (LPCTSTR pszSelectURI=NULL, int nType=0, int nAvailability=0, BOOL bReset=TRUE)
void Select (LPCTSTR pszURI)
void Select (CSchema *pSchema)
CSchemaGetSelected () const
CString GetSelectedURI () const
virtual BOOL Create (DWORD dwStyle, const RECT &rect, CWnd *pParentWnd, UINT nID)
virtual void MeasureItem (LPMEASUREITEMSTRUCT lpMeasureItemStruct)
virtual void DrawItem (LPDRAWITEMSTRUCT lpDrawItemStruct)

Public Attributes

CString m_sNoSchemaText
int m_nType
int m_nAvailability

Protected Member Functions

int FindParam (DWORD nParam)
BOOL OnClickItem (int nItem, BOOL bDown)
afx_msg LRESULT OnCtlColorListBox (WPARAM wParam, LPARAM lParam)
afx_msg void OnDropDown ()

Static Protected Member Functions

static LRESULT PASCAL ListWndProc (HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam)

Protected Attributes

HWND m_hListBox
WNDPROC m_pWndProc
CString m_sPreDrop


Constructor & Destructor Documentation

CSchemaCombo::CSchemaCombo  ) 
 

Definition at line 48 of file CtrlSchemaCombo.cpp.

References NULL.

CSchemaCombo::~CSchemaCombo  )  [virtual]
 

Definition at line 54 of file CtrlSchemaCombo.cpp.


Member Function Documentation

BOOL CSchemaCombo::Create DWORD  dwStyle,
const RECT &  rect,
CWnd *  pParentWnd,
UINT  nID
[virtual]
 

Definition at line 61 of file CtrlSchemaCombo.cpp.

Referenced by CSearchPadWnd::OnCreate(), CSearchInputBox::OnCreate(), CLibraryFrame::OnCreate(), and CHomeSearchCtrl::OnCreate().

void CSchemaCombo::DrawItem LPDRAWITEMSTRUCT  lpDrawItemStruct  )  [virtual]
 

Definition at line 212 of file CtrlSchemaCombo.cpp.

References CoolInterface, CShellIcons::Draw(), CShareazaApp::m_bRTL, CCoolInterface::m_crBackSel, CCoolInterface::m_crBorder, CShareazaApp::m_gdiFont, CShareazaApp::m_gdiFontBold, CSchema::m_nIcon16, m_sNoSchemaText, CSchema::m_sTitle, CSchema::m_sURI, NULL, ShellIcons, SHI_CHEVRON, SHI_SEARCH, and theApp.

int CSchemaCombo::FindParam DWORD  nParam  )  [protected]
 

Definition at line 174 of file CtrlSchemaCombo.cpp.

Referenced by Load().

CSchema * CSchemaCombo::GetSelected  )  const
 

Definition at line 157 of file CtrlSchemaCombo.cpp.

References NULL.

Referenced by CSearchPadWnd::ClearSearch(), CFolderPropertiesDlg::DoApply(), CSearchPadWnd::GetSearch(), CSearchPanel::GetSearch(), CFolderPropertiesDlg::OnChangeData(), CFolderPropertiesDlg::OnChangeTitle(), CFileMetadataPage::OnCloseUpSchemas(), CNewSearchDlg::OnCloseUpSchemas(), CFolderPropertiesDlg::OnCloseUpSchemas(), CFilePropertiesDlg::OnCloseUpSchemas(), CLibraryFrame::OnFilterTypes(), CFileMetadataPage::OnOK(), CNewSearchDlg::OnOK(), CSchemaColumnsDlg::OnOK(), CFilePropertiesDlg::OnOK(), CFolderPropertiesDlg::OnPaint(), CSearchPanel::OnSchemaChange(), CHomeSearchCtrl::OnSearchCreate(), CSearchPadWnd::OnSelChangeSchemas(), CFileMetadataPage::OnSelChangeSchemas(), CNewSearchDlg::OnSelChangeSchemas(), CSchemaColumnsDlg::OnSelChangeSchemas(), CFolderPropertiesDlg::OnSelChangeSchemas(), and CFilePropertiesDlg::OnSelChangeSchemas().

CString CSchemaCombo::GetSelectedURI  )  const
 

Definition at line 164 of file CtrlSchemaCombo.cpp.

Referenced by OnDropDown().

LRESULT PASCAL CSchemaCombo::ListWndProc HWND  hWnd,
UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam
[static, protected]
 

Definition at line 338 of file CtrlSchemaCombo.cpp.

References m_nAvailability, m_pWndProc, OnClickItem(), and CSchema::saMax.

Referenced by OnCtlColorListBox().

void CSchemaCombo::Load LPCTSTR  pszSelectURI = NULL,
int  nType = 0,
int  nAvailability = 0,
BOOL  bReset = TRUE
 

Definition at line 72 of file CtrlSchemaCombo.cpp.

References FindParam(), CSchemaCache::GetIterator(), CSchemaCache::GetNext(), CSchema::m_nAvailability, m_nAvailability, CSchema::m_nType, m_nType, m_sNoSchemaText, CSchema::m_sTitle, CSchema::m_sURI, CSchema::saMax, and SchemaCache.

Referenced by OnClickItem(), CSearchPadWnd::OnCreate(), CSearchInputBox::OnCreate(), CHomeSearchCtrl::OnCreate(), CFileMetadataPage::OnInitDialog(), CNewSearchDlg::OnInitDialog(), CSchemaColumnsDlg::OnInitDialog(), CFolderPropertiesDlg::OnInitDialog(), CLibraryFrame::OnSkinChange(), and CFilePropertiesDlg::Update().

void CSchemaCombo::MeasureItem LPMEASUREITEMSTRUCT  lpMeasureItemStruct  )  [virtual]
 

Definition at line 206 of file CtrlSchemaCombo.cpp.

BOOL CSchemaCombo::OnClickItem int  nItem,
BOOL  bDown
[protected]
 

Definition at line 400 of file CtrlSchemaCombo.cpp.

References Load(), m_nType, m_sPreDrop, and CSchema::saMax.

Referenced by ListWndProc().

LRESULT CSchemaCombo::OnCtlColorListBox WPARAM  wParam,
LPARAM  lParam
[protected]
 

Definition at line 187 of file CtrlSchemaCombo.cpp.

References ListWndProc(), m_hListBox, m_pWndProc, and NULL.

void CSchemaCombo::OnDropDown  )  [protected]
 

Definition at line 330 of file CtrlSchemaCombo.cpp.

References GetSelectedURI(), and m_sPreDrop.

void CSchemaCombo::Select CSchema pSchema  ) 
 

Definition at line 141 of file CtrlSchemaCombo.cpp.

void CSchemaCombo::Select LPCTSTR  pszURI  ) 
 

Definition at line 125 of file CtrlSchemaCombo.cpp.

References CSchema::CheckURI(), and NULL.

Referenced by CHomeSearchCtrl::OnCloseUpText(), CNewSearchDlg::OnInitDialog(), and CSearchPanel::ShowSearch().

void CSchemaCombo::SetEmptyString UINT  nID  ) 
 

Definition at line 67 of file CtrlSchemaCombo.cpp.

References LoadString(), and m_sNoSchemaText.

Referenced by CLibraryFrame::OnSkinChange().


Member Data Documentation

HWND CSchemaCombo::m_hListBox [protected]
 

Definition at line 40 of file CtrlSchemaCombo.h.

Referenced by OnCtlColorListBox().

int CSchemaCombo::m_nAvailability
 

Definition at line 38 of file CtrlSchemaCombo.h.

Referenced by ListWndProc(), and Load().

int CSchemaCombo::m_nType
 

Definition at line 37 of file CtrlSchemaCombo.h.

Referenced by Load(), and OnClickItem().

WNDPROC CSchemaCombo::m_pWndProc [protected]
 

Definition at line 41 of file CtrlSchemaCombo.h.

Referenced by ListWndProc(), and OnCtlColorListBox().

CString CSchemaCombo::m_sNoSchemaText
 

Definition at line 36 of file CtrlSchemaCombo.h.

Referenced by DrawItem(), Load(), CSearchPadWnd::OnCreate(), CSearchInputBox::OnCreate(), CHomeSearchCtrl::OnCreate(), CFileMetadataPage::OnInitDialog(), CNewSearchDlg::OnInitDialog(), CSchemaColumnsDlg::OnInitDialog(), CSearchPadWnd::OnSkinChange(), SetEmptyString(), CHomeSearchCtrl::Setup(), and CFilePropertiesDlg::Update().

CString CSchemaCombo::m_sPreDrop [protected]
 

Definition at line 42 of file CtrlSchemaCombo.h.

Referenced by OnClickItem(), and OnDropDown().


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