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

CtrlHomeSearch.h

Go to the documentation of this file.
00001 //
00002 // CtrlHomeSearch.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_CTRLHOMESEARCH_H__40DC2FFE_0FF6_4A72_A7C5_74DC32305269__INCLUDED_)
00023 #define AFX_CTRLHOMESEARCH_H__40DC2FFE_0FF6_4A72_A7C5_74DC32305269__INCLUDED_
00024 
00025 #pragma once
00026 
00027 #include "CtrlSchemaCombo.h"
00028 #include "CtrlIconButton.h"
00029 
00030 
00031 class CHomeSearchCtrl : public CWnd
00032 {
00033 // Construction
00034 public:
00035         CHomeSearchCtrl();
00036         virtual ~CHomeSearchCtrl();
00037 
00038 // Attributes
00039 public:
00040         CComboBox               m_wndText;
00041         CSchemaCombo    m_wndSchema;
00042         CIconButtonCtrl m_wndSearch;
00043         CIconButtonCtrl m_wndAdvanced;
00044         COLORREF                m_crWindow;
00045 private:
00046         CWnd*                   m_pTextInput; // Holds pointer to window that receives text input
00047 
00048 // Operations
00049 public:
00050         void    Setup(COLORREF crWindow);
00051         void    FillHistory();
00052 
00053 // Overrides
00054 public:
00055         //{{AFX_VIRTUAL(CHomeSearchCtrl)
00056         public:
00057         virtual BOOL Create(CWnd* pParentWnd, UINT nID);
00058         virtual BOOL PreTranslateMessage(MSG* pMsg);
00059         //}}AFX_VIRTUAL
00060 
00061 // Implementation
00062 protected:
00063         //{{AFX_MSG(CHomeSearchCtrl)
00064         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00065         afx_msg void OnSize(UINT nType, int cx, int cy);
00066         afx_msg void OnPaint();
00067         afx_msg void OnCloseUpText();
00068         afx_msg void OnSearchCreate();
00069         afx_msg void OnSearchAdvanced();
00070         afx_msg void OnSetFocus(CWnd* pOldWnd);
00071         //}}AFX_MSG
00072 
00073         DECLARE_MESSAGE_MAP()
00074 
00075 };
00076 
00077 //{{AFX_INSERT_LOCATION}}
00078 
00079 #define IDC_SEARCH_TEXT         121
00080 #define IDC_SEARCH_SCHEMAS      122
00081 #ifndef IDC_SEARCH_CREATE
00082 #define IDC_SEARCH_CREATE       123
00083 #endif
00084 #define IDC_SEARCH_ADVANCED     124
00085 
00086 #endif // !defined(AFX_CTRLHOMESEARCH_H__40DC2FFE_0FF6_4A72_A7C5_74DC32305269__INCLUDED_)

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