コード例 #1
0
ファイル: DXUTguiIME.cpp プロジェクト: MindCodeTech/DXUT
//--------------------------------------------------------------------------------------
_Use_decl_annotations_
DXUTAPI bool CDXUTIMEEditBox::MsgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
{
	if (!m_bEnabled || !m_bVisible)
		return false;

#if defined(DEBUG) || defined(_DEBUG)
	// DXUT.cpp used to call CDXUTIMEEditBox::StaticMsgProc() so that, but now
	// this is the application's responsiblity.  To do this, call
	// CDXUTDialogResourceManager::MsgProc() before calling this function.
	assert( m_bIMEStaticMsgProcCalled && L"To fix, call CDXUTDialogResourceManager::MsgProc() first" );
#endif
	switch (uMsg)
	{
	case WM_DESTROY:
		ImeUi_Uninitialize();
		break;
	}

	bool trappedData;
	bool* trapped = &trappedData;

	*trapped = false;
	if (!ImeUi_IsEnabled())
		return CDXUTEditBox::MsgProc(uMsg, wParam, lParam);

	ImeUi_ProcessMessage(DXUTGetHWND(), uMsg, wParam, lParam, trapped);
	if (*trapped == false)
		CDXUTEditBox::MsgProc(uMsg, wParam, lParam);

	return *trapped;
}
コード例 #2
0
ファイル: DXUTguiIME.cpp プロジェクト: Asmodean-/SMAA-D3D
//--------------------------------------------------------------------------------------
void CDXUTIMEEditBox::Uninitialize()
{
    ImeUi_EnableIme( false );
    ImeUi_Uninitialize( );
}