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

@@ -351,7 +351,8 @@ namespace nana
{
if (!pressed)
{
API::capture_window(editor_->window_handle(), false);
API::release_capture(editor_->window_handle());
timer_.stop();
timer_.interval(600);
}
@@ -361,7 +362,7 @@ namespace nana
//Spins the value when mouse button is released
if (pressed)
{
API::capture_window(editor_->window_handle(), true);
API::set_capture(editor_->window_handle(), true);
range_->spin(buttons::increase == spin_stated_);
reset_text();
timer_.start();