Recent Posts
Recent Comments
1 2 3 4 5 6 7 8 | void set_string_ansi( char *str) { if (hIMC=ImmGetContext(hWnd)) { ImmSetCompositionStringA(hIMC, SCS_SETSTR, str, strlen (str)+1, NULL, 0); ImmReleaseContext(hWnd, hIMC); } } |
IME 한글 조합 박스에 있는 한글을 바꾸는 코드입니다.
ImmSetCompositionStringA 는 아스키코드 문자열을, ImmSetCompositionStringW 는 유니코드 문자열을 의미합니다.
두 개의 함수 중 골라서 쓰시면 됩니다.
Comments