capture_window is deprecated in favor of set_capture/release_capture

This commit is contained in:
Jinhao
2016-04-17 06:06:33 +08:00
parent ca1fce932a
commit afa253f924
17 changed files with 114 additions and 72 deletions

View File

@@ -3343,7 +3343,8 @@ namespace nana
nana::point pos = arg.pos;
essence_->widget_to_header(pos);
drawer_header_->grab(pos, true);
API::capture_window(essence_->lister.wd_ptr()->handle(), true);
essence_->lister.wd_ptr()->set_capture(true);
update = 2;
}
}
@@ -3535,7 +3536,7 @@ namespace nana
drawer_header_->grab(pos, false);
refresh(graph);
API::lazy_refresh();
API::capture_window(essence_->lister.wd_ptr()->handle(), false);
essence_->lister.wd_ptr()->release_capture();
}
}