Method: WinWindow#end_task!
- Defined in:
- lib/winwindow.rb
#end_task!(force = false) ⇒ Object
called to forcibly close the window.
the argument force, if true, will force the destruction of the window if an initial attempt fails to gently close the window using WM_CLOSE.
if false, only the close with WM_CLOSE is attempted
834 835 836 837 |
# File 'lib/winwindow.rb', line 834 def end_task!(force=false) ret=WinUser.EndTask(hwnd, 0, force ? WIN_TRUE : WIN_FALSE) ret != WIN_FALSE end |