Adding some initial TSF code
This commit is contained in:
parent
249f46e706
commit
301e0597a3
4 changed files with 53 additions and 0 deletions
44
EXCLUDE/GLTSF/include/TSF.hpp
Normal file
44
EXCLUDE/GLTSF/include/TSF.hpp
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue