-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCtrlHomeSearch.h
57 lines (47 loc) · 1.57 KB
/
CtrlHomeSearch.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// CtrlHomeSearch.h
//
// This file is part of PeerProject (peerproject.org) © 2008-2010
// Portions copyright Shareaza Development Team, 2002-2008.
//
// PeerProject is free software. You may redistribute and/or modify it
// under the terms of the GNU Affero General Public License
// as published by the Free Software Foundation (fsf.org);
// version 3 or later at your option. (AGPLv3)
//
// PeerProject is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Affero General Public License 3.0 for details:
// (http://www.gnu.org/licenses/agpl.html)
//
#pragma once
#include "CtrlSchemaCombo.h"
#include "CtrlIconButton.h"
class CHomeSearchCtrl : public CWnd
{
DECLARE_DYNCREATE(CHomeSearchCtrl)
public:
CHomeSearchCtrl();
void OnSkinChange(COLORREF crWindow, COLORREF crText = 0);
void Activate();
virtual BOOL Create(CWnd* pParentWnd, UINT nID);
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
CComboBox m_wndText;
CSchemaCombo m_wndSchema;
CIconButtonCtrl m_wndSearch;
CIconButtonCtrl m_wndAdvanced;
COLORREF m_crWindow;
COLORREF m_crText;
void FillHistory();
void Search(bool bAutostart);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnPaint();
afx_msg void OnCloseUpText();
afx_msg void OnSelChangeText();
afx_msg void OnSearchStart();
afx_msg void OnSearchAdvanced();
DECLARE_MESSAGE_MAP()
};