The ImmSetCompositionString function sets the characters, attributes, and clauses of the composition and reading strings.
BOOL ImmSetCompositionString(
HIMC hIMC, | |
DWORD dwIndex, | |
LPCVOID lpComp, | |
DWORD dwCompLen, | |
LPCVOID lpRead, | |
DWORD dwReadLen | |
); |
Value |
Meaning |
SCS_SETSTR |
Sets the composition string, the reading string, or both. At least one of the lpComp and lpRead parameters must point to a valid string. If either string is too long, the IME truncates it. |
SCS_CHANGEATTR |
Sets attributes for the composition string, the reading string, or both. At least one of the lpComp and lpRead parameters must point to a valid attribute array. |
SCS_CHANGECLAUSE |
Sets the clause information for the composition string, the reading string, or both. At least one of the lpComp and lpRead parameters must point to a valid clause information array. |
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero.
When changing attributes, all characters in a clause must have the same attribute. Converted characters must be either ATTR_CONVERTED or ATTR_TARGET_CONVERTED; unconverted characters either ATTR_INPUT or ATTR_TARGET_NOTCONVERTED.
When changing clause information, only the target clause can be changed and only one boundary of the clause can be changed at a time. The target clause has the ATTR_TARGET_CONVERTED or ATTR_TARGET_NOTCONVERTED attribute.
When the IME completes the changes, it sends a WM_IME_COMPOSITION message to the application notifying it of the changes.
file: /Techref/os/win/api/win32/func/src/f48_11.htm, 4KB, , updated: 2000/4/7 11:19, local time: 2024/11/10 05:02,
3.135.216.170:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/Techref/os/win/api/win32/func/src/f48_11.htm"> ImmSetCompositionString</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.