DestroyWindowHandle method

void DestroyWindowHandle()

Implementation

void DestroyWindowHandle()
{
  _controlState << ControlStates.DestroyingHandle;
  try
  {
    if(Windows.DestroyWindow(_handle!) == FALSE)
      throw UnsupportedError('RaiseLastOSError');
  }
  finally
  {
    _controlState >> ControlStates.DestroyingHandle;
  }
}