Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Adding some initial TSF code
Browse files Browse the repository at this point in the history
  • Loading branch information
dewyatt committed May 28, 2010
1 parent 309b1b6 commit 7327c7a
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
2 changes: 2 additions & 0 deletions EXCLUDE/GLTSF/GLTSF.vcxproj
Expand Up @@ -81,13 +81,15 @@
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="include\App.hpp" />
<ClInclude Include="include\TSF.hpp" />
<ClInclude Include="include\Video_Mode.hpp" />
<ClInclude Include="include\Window.hpp" />
<ClInclude Include="include\Window_Listener.hpp" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\App.cpp" />
<ClCompile Include="src\Main.cpp" />
<ClCompile Include="src\TSF.cpp" />
<ClCompile Include="src\Video_Mode.cpp" />
<ClCompile Include="src\Window.cpp" />
</ItemGroup>
Expand Down
6 changes: 6 additions & 0 deletions EXCLUDE/GLTSF/GLTSF.vcxproj.filters
Expand Up @@ -27,6 +27,9 @@
<ClInclude Include="include\Window_Listener.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\TSF.hpp">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\App.cpp">
Expand All @@ -41,5 +44,8 @@
<ClCompile Include="src\Window.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="src\TSF.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
44 changes: 44 additions & 0 deletions EXCLUDE/GLTSF/include/TSF.hpp
@@ -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
1 change: 1 addition & 0 deletions EXCLUDE/GLTSF/src/TSF.cpp
@@ -0,0 +1 @@
#include "TSF.hpp"

0 comments on commit 7327c7a

Please sign in to comment.