Probably the values are:
Also see the lParam of WM_IME_COMPOSITION.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The documentation is missing information of some parameters in some function. The function ImmGetCompositionString
is not well documented: https://learn.microsoft.com/en-us/windows/win32/api/imm/nf-imm-immgetcompositionstringw
Even the first parameter, I had to read the documentation one by one to found that HIMC
can be retrieved using ImmGetContext(hwnd)
;
What I am trying is to get a Composition String with IMM (Input Method Manager):
I have tried this:
HIMC handleImc = ImmGetContext(hwnd);
wchar_t tempStr[1024];
ZeroMemory(tempStr, sizeof(tempStr));
// I don't know what is the second parameter used for, so I type zero:
int result = ImmGetCompositionStringW(handleImc, 0, tempStr, 1024);
// result is -2, according to the documentation, it means IMM_ERROR_GENERAL
It doesn't work and returns error, as expected, because I don't know what is the second parameter used for.
Help me,
Regards, thebluetropics.
Probably the values are:
Also see the lParam of WM_IME_COMPOSITION.