INNER CODE UNIT · C++

hwnd

Xrysnow/LuaSTG-x · frameworks/Classes/WindowHelper.cpp:294

	HWND hwnd = Director::getInstance()->getOpenGLView()->getWin32Window();
	HIMC hIMC = ImmGetContext(hwnd);
	if (hIMC)
	{
		ImmSetOpenStatus(hIMC, enabled);
		ImmReleaseContext(hwnd, hIMC);
	}
#endif
}

bool WindowHelperDesktop::isImeEnabled()
{
#if CC_TARGET_PLATFORM == CC_PLATFORM_WIN32
	HWND hwnd = Director::getInstance()->getOpenGLView()->getWin32Window();
	HIMC hIMC = ImmGetContext(hwnd);
	if (hIMC)
	{
		bool b = ImmGetOpenStatus(hIMC);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…