Click here to Skip to main content
15,917,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to tile multiple windows in a single view Pin
«_Superman_»12-Sep-10 18:50
professional«_Superman_»12-Sep-10 18:50 
GeneralRe: How to tile multiple windows in a single view - SOLVED Pin
Vaclav_13-Sep-10 2:39
Vaclav_13-Sep-10 2:39 
QuestionReference to a pointer question Pin
VentsyV10-Sep-10 11:43
VentsyV10-Sep-10 11:43 
AnswerRe: Reference to a pointer question Pin
MicroVirus10-Sep-10 12:53
MicroVirus10-Sep-10 12:53 
AnswerRe: Reference to a pointer question Pin
Niklas L10-Sep-10 21:04
Niklas L10-Sep-10 21:04 
AnswerRe: Reference to a pointer question Pin
Paul Michalik11-Sep-10 23:17
Paul Michalik11-Sep-10 23:17 
AnswerRe: Reference to a pointer question [modified] Pin
Aescleal12-Sep-10 11:01
Aescleal12-Sep-10 11:01 
QuestionWindow IME language Pin
fusion_nuke@hotmail.com10-Sep-10 7:48
fusion_nuke@hotmail.com10-Sep-10 7:48 
HI,all
I iave some problem for IME, I have some game source and input language is chinese but i want to change input language to thai, How can i do it. I know this game is use IME for input language and i don't understand IME, Please help me.

This some function for chinese language:
//-----------------------------------------------------------------------------
// IME_MessageProcessor
//
// 
//-----------------------------------------------------------------------------
void CI_CHINESE::IME_MessageProcessor(UINT message, WPARAM wParam, LPARAM lParam)
{
	int len;
	if(wParam == 0xe5) return;
	
	//이건 웈기 식으로 end안거칠때의 처리
	if(message == WM_CHAR && ImeRunning())
		return;
	
	HIMC m_hIMC=NULL;
	HWND ImehWnd=ImmGetDefaultIMEWnd(g_hWnd);
				
	switch (message)
	{
	case WM_IME_STARTCOMPOSITION:
		// When focus change, enter garbage value in input buffer.
		gbl_skip_escape = true;
		g_pDXInput->SetAcquire(false);
		ShowWindow( ImehWnd , SW_HIDE );
		ShowWindow( ImehWnd , SW_SHOWNORMAL );
		SetFocus(g_hWnd);
		g_pDXInput->SetAcquire(true);
		
		//			SetStartComposition();
		//			IME_StartComposition();
		//			SetGapEscape();
		break;
	case WM_IME_ENDCOMPOSITION:
		//			if(ImeRunning() || !m_bl_end_of_ime)
		//				SetGapEscape();
		//			SetEndComposition();
		IME_EndComposition();
		break;
	case WM_IME_COMPOSITION:			
		//			SetGapEscape();
		gbl_skip_escape = true;
		m_hIMC = ImmGetContext(g_hWnd);
		if(lParam & GCS_RESULTSTR)
		{
			if ((len = ImmGetCompositionString(m_hIMC, GCS_RESULTSTR, NULL, 0)) > 0)
			{
				//					SetStartComposition();
				ImmGetCompositionString(m_hIMC, GCS_RESULTSTR,m_composing_string, len);
				m_composing_string[len] = NULL;
				IME_NextComposition();
				memset(m_composing_string,0,128);
				gbl_skip_escape = false;
			}				
		} 
		ImmReleaseContext(g_hWnd,m_hIMC);
		break;			
	default:
		IME_Normal(message, wParam, lParam);
		break;
	}	
}

GeneralRe: Window IME language Pin
David Crow10-Sep-10 8:15
David Crow10-Sep-10 8:15 
GeneralRe: Window IME language Pin
Nemanja Trifunovic10-Sep-10 8:48
Nemanja Trifunovic10-Sep-10 8:48 
GeneralRe: Window IME language Pin
David Crow10-Sep-10 9:30
David Crow10-Sep-10 9:30 
GeneralRe: Window IME language Pin
fusion_nuke@hotmail.com10-Sep-10 18:00
fusion_nuke@hotmail.com10-Sep-10 18:00 
AnswerRe: Window IME language Pin
Nemanja Trifunovic10-Sep-10 8:57
Nemanja Trifunovic10-Sep-10 8:57 
QuestionCList with Pointers Pin
VentsyV10-Sep-10 7:05
VentsyV10-Sep-10 7:05 
QuestionRe: CList with Pointers Pin
CPallini10-Sep-10 7:51
mveCPallini10-Sep-10 7:51 
AnswerRe: CList with Pointers Pin
VentsyV10-Sep-10 8:01
VentsyV10-Sep-10 8:01 
QuestionRe: CList with Pointers Pin
David Crow10-Sep-10 8:10
David Crow10-Sep-10 8:10 
AnswerRe: CList with Pointers Pin
VentsyV10-Sep-10 8:33
VentsyV10-Sep-10 8:33 
AnswerRe: CList with Pointers Pin
VentsyV10-Sep-10 9:18
VentsyV10-Sep-10 9:18 
QuestionPrint a FormView Pin
Shivanand Gupta10-Sep-10 2:25
Shivanand Gupta10-Sep-10 2:25 
AnswerRe: Print a FormView Pin
Richard MacCutchan10-Sep-10 5:21
mveRichard MacCutchan10-Sep-10 5:21 
AnswerRe: Print a FormView Pin
bob1697210-Sep-10 8:30
bob1697210-Sep-10 8:30 
GeneralRe: Print a FormView Pin
Shivanand Gupta11-Sep-10 8:31
Shivanand Gupta11-Sep-10 8:31 
GeneralRe: Print a FormView Pin
bob1697214-Sep-10 3:23
bob1697214-Sep-10 3:23 
GeneralRe: Print a FormView Pin
Shivanand Gupta14-Sep-10 5:31
Shivanand Gupta14-Sep-10 5:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.