This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dewyatt
committed
May 28, 2010
1 parent
309b1b6
commit 7327c7a
Showing
4 changed files
with
53 additions
and
0 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
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,44 @@ | ||
#ifndef TSF_HPP | ||
#define TSF_HPP | ||
|
||
#include <msctf.h> | ||
|
||
class TSF | ||
{ | ||
public: | ||
|
||
protected: | ||
class UI_Sink : public ITfUIElementSink, public ITfInputProcessorProfileActivationSink | ||
{ | ||
public: | ||
UI_Sink(); | ||
~UI_Sink(); | ||
|
||
// IUnknown | ||
STDMETHODIMP QueryInterface(REFIID riid, void **ppvObj); | ||
STDMETHODIMP_(ULONG) AddRef(void); | ||
STDMETHODIMP_(ULONG) Release(void); | ||
|
||
// ITfUIElementSink | ||
STDMETHODIMP BeginUIElement(DWORD dwUIElementId, BOOL *pbShow); | ||
STDMETHODIMP UpdateUIElement(DWORD dwUIElementId); | ||
STDMETHODIMP EndUIElement(DWORD dwUIElementId); | ||
|
||
// ITfInputProcessorProfileActivationSink | ||
STDMETHODIMP OnActivated(DWORD dwProfileType, LANGID langid, | ||
REFCLSID clsid, REFGUID catid, | ||
REFGUID guidProfile, HKL hkl, | ||
DWORD dwFlags); | ||
|
||
// ITfCompartmentEventSink | ||
STDMETHODIMP OnChange(REFGUID rguid); | ||
|
||
private: | ||
LONG my_Reference_Count; | ||
}; | ||
|
||
private: | ||
|
||
}; | ||
|
||
#endif |
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 @@ | ||
#include "TSF.hpp" |