fix issue that textbox&spinbox don't update immediately

This commit is contained in:
Jinhao
2017-06-08 00:44:27 +08:00
parent d384a6a8e7
commit bd38e96ed7
2 changed files with 8 additions and 2 deletions

View File

@@ -738,7 +738,9 @@ namespace drawerbase {
if (editor)
{
editor->text(to_wstring(str), false);
API::update_window(this->handle());
if (editor->try_refresh())
API::update_window(this->handle());
}
}