Fix typos
[TortoiseGit.git] / src / TortoiseUDiff / FindBar.h
bloba83d9d9abd9dbd826808235d0691d75d4cd21d63
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2020, 2023 - TortoiseGit
4 // Copyright (C) 2007 - TortoiseSVN
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software Foundation,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #pragma once
21 #include "basedialog.h"
24 /**
25 * \ingroup TortoiseUDiff
26 * FindBar.
27 * A search bar similar to the one found in FireFox
29 class CFindBar : public CDialog
31 public:
32 CFindBar();
33 ~CFindBar();
35 void SetParent(HWND hParent) {m_hParent = hParent;}
36 void SetSearchString(LPCWSTR findStr);
37 void SelectSearchString();
39 protected:
40 LRESULT CALLBACK DlgFunc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) override;
41 LRESULT DoCommand(int id, int msg);
43 void DoFind(bool bFindPrev);
44 void SetTheme(bool bDark);
46 private:
47 HWND m_hParent = nullptr;
48 CAutoIcon m_hIcon;
49 int m_themeCallbackId = 0;