(svn r25681) -Change: [Win32] Position the IME composition window at the caret position.

This commit is contained in:
michi_cc
2013-08-05 20:37:14 +00:00
parent b4a36ae257
commit fa7a779cf7
7 changed files with 88 additions and 0 deletions

View File

@@ -317,6 +317,14 @@ struct IConsoleWindow : Window
}
}
virtual Point GetCaretPosition() const
{
int delta = min(this->width - this->line_offset - _iconsole_cmdline.pixels - ICON_RIGHT_BORDERWIDTH, 0);
Point pt = {this->line_offset + delta + _iconsole_cmdline.caretxoffs, this->height - this->line_height};
return pt;
}
virtual void OnMouseWheel(int wheel)
{
this->Scroll(-wheel);