mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-10-26 12:27:30 +00:00 
			
		
		
		
	Windows: setup a default handler for ImeSetInputScreenPosFn so IME (Japanese/Chinese) inputs are positioned correctly.
User need to set io.ImeWindowHandle
This commit is contained in:
		| @@ -240,6 +240,7 @@ void InitImGui() | ||||
|     io.KeyMap[ImGuiKey_Z] = 'Z'; | ||||
|  | ||||
|     io.RenderDrawListsFn = ImImpl_RenderDrawLists; | ||||
|     io.ImeWindowHandle = hWnd; | ||||
|      | ||||
|     // Create the vertex buffer | ||||
|     if (g_pd3dDevice->CreateVertexBuffer(10000 * sizeof(CUSTOMVERTEX), D3DUSAGE_DYNAMIC | D3DUSAGE_WRITEONLY, D3DFVF_CUSTOMVERTEX, D3DPOOL_DEFAULT, &g_pVB, NULL) < 0) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ocornut
					ocornut