mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[SHELLFIND] Remove unnecessary data member for focus
This commit is contained in:
parent
a905699ac6
commit
ff7e9870ce
2 changed files with 2 additions and 5 deletions
|
@ -33,8 +33,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(shellfind);
|
|||
|
||||
CSearchBar::CSearchBar() :
|
||||
pSite(NULL),
|
||||
fVisible(FALSE),
|
||||
bFocused(FALSE)
|
||||
fVisible(FALSE)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -111,7 +110,6 @@ HRESULT CSearchBar::ExecuteCommand(CComPtr<IContextMenu>& menu, UINT nCmd)
|
|||
// *** ATL event handlers ***
|
||||
LRESULT CSearchBar::OnSetFocus(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
|
||||
{
|
||||
bFocused = TRUE;
|
||||
IUnknown_OnFocusChangeIS(pSite, reinterpret_cast<IUnknown*>(this), TRUE);
|
||||
bHandled = FALSE;
|
||||
return TRUE;
|
||||
|
@ -470,7 +468,7 @@ HRESULT STDMETHODCALLTYPE CSearchBar::UIActivateIO(BOOL fActivate, LPMSG lpMsg)
|
|||
|
||||
HRESULT STDMETHODCALLTYPE CSearchBar::HasFocusIO()
|
||||
{
|
||||
return bFocused ? S_OK : S_FALSE;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT STDMETHODCALLTYPE CSearchBar::TranslateAcceleratorIO(LPMSG lpMsg)
|
||||
|
|
|
@ -41,7 +41,6 @@ private:
|
|||
CComPtr<IUnknown> pSite;
|
||||
CComPtr<IAddressEditBox> fAddressEditBox;
|
||||
BOOL fVisible;
|
||||
BOOL bFocused;
|
||||
|
||||
HRESULT GetSearchResultsFolder(IShellBrowser **ppShellBrowser, HWND *pHwnd, IShellFolder **ppShellFolder);
|
||||
BOOL GetAddressEditBoxPath(WCHAR (&szPath)[MAX_PATH]);
|
||||
|
|
Loading…
Reference in a new issue