15,978
社区成员
发帖
与我相关
我的任务
分享
LRESULT CChildView::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_IME_STARTCOMPOSITION:
{
HIMC hImc = ImmGetContext(m_hWnd);
COMPOSITIONFORM cf;
cf.dwStyle = CFS_POINT;
cf.ptCurrentPos.x = 25;
cf.ptCurrentPos.y = 25;
ImmSetCompositionWindow(hImc, &cf);
ImmReleaseContext(m_hWnd, hImc);
}
break;
}
return CWnd::WindowProc(message, wParam, lParam);
}