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


6. ÀϺ»¾î È÷¶ó°¡¶ó ÀÔ·Â 1

7. ÀϺ»¾î È÷¶ó°¡¶ó ÀÔ·Â 2

8. ÀϺ»¾î È÷¶ó°¡¶ó ÀÔ·Â 3

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); }

12. °Ô½ÃÆÇ



captcha
Username:



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.0072 sec