elimiate nana::string for listbox

This commit is contained in:
Jinhao
2015-12-10 00:24:31 +08:00
parent 049a36e1f7
commit 112deadd16
12 changed files with 384 additions and 202 deletions

View File

@@ -543,7 +543,7 @@ namespace nana
{
if(node)
{
API::dev::window_caption(window_handle(), to_native_string(tree().path()));
API::dev::window_caption(window_handle(), to_nstring(tree().path()));
if(evt_holder_.selected)
evt_holder_.selected(node->value.second.value);
}
@@ -807,7 +807,7 @@ namespace nana
{
throw_not_utf8(str);
scheme_->tree().insert(str, value);
API::dev::window_caption(scheme_->window_handle(), to_native_string(scheme_->tree().path()));
API::dev::window_caption(scheme_->window_handle(), to_nstring(scheme_->tree().path()));
scheme_->draw();
}