view EXCLUDE/GLIMM/include/IMM.hpp @ 4753:11b0a6a3eb4d

Changed Start/StopTextInput back to not take any parameters. We call SDL_GetKeyboardFocus internally now.
author dewyatt
date Mon, 12 Jul 2010 14:17:43 -0400
parents 0aaa54fbd2bc
children
line wrap: on
line source

#ifndef IMM_HPP
#define IMM_HPP

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <msctf.h>

class IMM
{
public:
	IMM();
	~IMM();

	void Initialize(HWND Window);
	void Finalize();

	LRESULT Handle_Message(HWND Window, UINT Message, WPARAM wParam, LPARAM lParam, bool &Ate);

	void Enable();
	void Disable();
	bool Is_Enabled();
	void Toggle();

	void Focus_Gained();
	void Focus_Lost();

private:
	void Update_Input_Locale();
	void Cancel_Composition();
	void Input_Language_Changed();

	bool my_COM_Initialized;
	ITfThreadMgr *my_Thread_Manager;
	HWND my_Window;
	HIMC my_Context;
	HKL my_HKL;
	bool my_Vertical_Candidates;
	bool my_Enabled;
};

#endif