Loading ...
Sorry, an error occurred while loading the content.

[vim-multibyte] easy calc COMPOSITIONFORM position

Expand Messages
  • Taro Muraoka
    There is more easy and more extensible way to calc position of IME composition window. How about this? ... Taro Muraoka Explain: More
    Message 1 of 1 , Jan 22, 2000
    • 0 Attachment
      There is more easy and more extensible way to calc position of IME
      composition window. How about this?
      ----
      Taro Muraoka <koron@...>


      Explain: More easy way to calc position of IME composition window.
      Files: src/gui_w32.c


      *** gui_w32.c.orig Sat Jan 22 18:11:42 2000
      --- gui_w32.c Sat Jan 22 18:14:18 2000
      ***************
      *** 3217,3233 ****
      {
      ImmSetCompositionFont(hImc, &norm_logfont);
      cf.dwStyle = CFS_POINT;
      ! cf.ptCurrentPos.x = TEXT_X(gui.col) + gui.border_offset;
      ! cf.ptCurrentPos.y = TEXT_Y(gui.row) + gui.border_offset;
      ! #ifdef WANT_MENU
      ! if (gui.menu_is_active)
      ! cf.ptCurrentPos.y += gui.menu_height;
      ! #endif
      ! #ifdef USE_TOOLBAR
      ! if (vim_strchr(p_go, GO_TOOLBAR) != NULL)
      ! cf.ptCurrentPos.y +=
      ! TOOLBAR_BUTTON_HEIGHT + TOOLBAR_BORDER_HEIGHT;
      ! #endif
      ImmSetCompositionWindow(hImc, &cf);
      }
      bImeNative = TRUE;
      --- 3217,3225 ----
      {
      ImmSetCompositionFont(hImc, &norm_logfont);
      cf.dwStyle = CFS_POINT;
      ! cf.ptCurrentPos.x = FILL_X(gui.col);
      ! cf.ptCurrentPos.y = FILL_Y(gui.row);
      ! MapWindowPoints( s_textArea, s_hwnd, &cf.ptCurrentPos, 1 );
      ImmSetCompositionWindow(hImc, &cf);
      }
      bImeNative = TRUE;
    Your message has been successfully submitted and would be delivered to recipients shortly.