· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Windows_IME


1. 영어 입력

IME1.png
[PNG image (9.27 KB)]


2. 한글 입력 1

IME2.png
[PNG image (10.6 KB)]


3. 한글 입력 2

IME3.png
[PNG image (9.33 KB)]


4. 한글 입력 3

IME4.png
[PNG image (11.21 KB)]


5. 한글 입력 4

IME5.png
[PNG image (9.52 KB)]


6. 일본어 히라가라 입력 1

IME6.png
[PNG image (7.83 KB)]


7. 일본어 히라가라 입력 2

IME7.png
[PNG image (7.58 KB)]


8. 일본어 히라가라 입력 3

IME8.png
[PNG image (7.27 KB)]


9. TIP

9.1. 조합 중인 문자 제거

 const HIMC hIMC = ::ImmGetContext( m_hWnd );
 ImmNotifyIME(hIMC, NI_COMPOSITIONSTR, CPS_CANCEL, 0);
 ::ImmReleaseContext( m_hWnd, hIMC );
 


9.2. 조합 윈도우 위치 조정

 /// @brief     조합 윈도우의 위치를 설정한다.
 /// @param     x       조합 윈도우 시작 x위치값
 /// @param     y       조합 윈도우 시작 y위치값
 void SetCompositionWindow(const int & x, const int & y)
 {
        HIMC    hImc;

        COMPOSITIONFORM cf;
        memset(&cf, 0, sizeof(COMPOSITIONFORM));

        cf.dwStyle = CFS_POINT;
        cf.ptCurrentPos.x = x;          // x
        cf.ptCurrentPos.y = y;          // y
        
        hImc = ImmGetContext(g_hWndMain);

        // 조합 윈도우의 위치를 설정한다.
        ImmSetCompositionWindow(hImc, &cf);

        ImmReleaseContext(g_hWndMain, hImc);
 }
 


9.3. 후보 윈도우 위치 조정

 /// @brief     후보 윈도우의 위치를 설정한다.
 /// @param     x       후보 윈도우 시작 x위치값
 /// @param     y       후보 윈도우 시작 y위치값
 void SetCandidateWindow(const int & x, const int & y)
 {
        HIMC hImc = ImmGetContext(g_hWndMain);
        CANDIDATEFORM cf;

        memset(&cf, 0, sizeof(CANDIDATEFORM));
        cf.dwStyle = CFS_CANDIDATEPOS;
        cf.ptCurrentPos.x = x;
        cf.ptCurrentPos.y = x;
        ImmSetCandidateWindow(hImc, &cf);

        ImmReleaseContext(g_hWndMain, hImc);
 }

10. 샘플 소스

@IME_src.zip (4.69 KB)

12. 게시판



captcha
Username:

ID
Password
Join
You attempt things that you do not even plan because of your extreme stupidity.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2007-05-30 20:51:44
Processing time 0.0067 sec