forked from fxliang/weasel
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2、托盘右键菜单位置调整 3、修复Firefox设置搜索框点叉号应用崩溃
- Loading branch information
Showing
24 changed files
with
306 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
module; | ||
#include "stdafx.h" | ||
#include "test.h" | ||
#ifdef TEST | ||
#define WEASEL_ENABLE_LOGGING | ||
#include "logging.h" | ||
#endif // TEST | ||
module WeaselTSF; | ||
|
||
STDMETHODIMP WeaselTSF::OnStartCleanupContext() | ||
{ | ||
#ifdef TEST | ||
LOG(INFO) << std::format("From WeaselTSF::OnStartCleanupContext."); | ||
#endif // TEST | ||
return S_OK; | ||
} | ||
|
||
STDMETHODIMP WeaselTSF::OnEndCleanupContext() | ||
{ | ||
#ifdef TEST | ||
LOG(INFO) << std::format("From WeaselTSF::OnEndCleanupContext."); | ||
#endif // TEST | ||
return S_OK; | ||
} | ||
|
||
BOOL WeaselTSF::_InitCleanupContextDurationSink() | ||
{ | ||
HRESULT hr{E_FAIL}; | ||
com_ptr<ITfSourceSingle> pSourceSingle; | ||
|
||
if (SUCCEEDED(_pThreadMgr->QueryInterface(&pSourceSingle))) | ||
{ | ||
hr = pSourceSingle->AdviseSingleSink(_tfClientId, IID_ITfCleanupContextDurationSink, (ITfCleanupContextDurationSink*)this); | ||
} | ||
return SUCCEEDED(hr); | ||
} | ||
|
||
void WeaselTSF::_UninitCleanupContextDurationSink() | ||
{ | ||
com_ptr<ITfSourceSingle> pSourceSingle; | ||
|
||
if (SUCCEEDED(_pThreadMgr->QueryInterface(&pSourceSingle))) | ||
{ | ||
pSourceSingle->UnadviseSingleSink(_tfClientId, IID_ITfCleanupContextDurationSink); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.