13.05.2018, 10:15
|
Новичок
|
|
Регистрация: 28.07.2009
Сообщения: 85
Репутация: 50
|
|
Для окна можно так
Код:
function IsValidWndHandle(HandleValue: THandle): BOOL;
var
FDC: HDC;
begin
Result := False;
FDC := GetDC(HandleValue);
if FDC = 0 then
Exit;
ReleaseDC(HandleValue, FDC);
Result := True;
end;
|