Merge branch 'hotfix-1.5.6' into feature-listbox

This commit is contained in:
Jinhao
2018-01-29 17:20:55 +08:00
9 changed files with 71 additions and 40 deletions

View File

@@ -823,6 +823,15 @@ namespace API
}
}
nana::optional<rectangle> window_rectangle(window wd)
{
auto iwd = reinterpret_cast<basic_window*>(wd);
internal_scope_guard lock;
if (restrict::wd_manager().available(iwd))
return rectangle(iwd->pos_owner, iwd->dimension);
return{};
}
bool get_window_rectangle(window wd, rectangle& r)
{
auto iwd = reinterpret_cast<basic_window*>(wd);