Vcl.Graphics.TIcon.HandleAllocated

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function HandleAllocated: Boolean;

C++

bool __fastcall HandleAllocated();

プロパティ

種類 可視性 ソース ユニット
function public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TIcon

説明

TIcon オブジェクトが基底の GDI オブジェクトへのハンドルを持っているかどうかを示します。

HandleAllocated メソッドを使用すると,Handle プロパティが HICON 値に設定されているかどうかを判別できます。HandleAllocated は,基底の GDI オブジェクトが作成済みかどうかを示します。Handle プロパティを読み出すかわりに,HandleAllocated を使用します。アプリケーションが Handle プロパティを呼び出すと,Handle プロパティは,基底の GDI オブジェクトが存在していない場合に自動的にアイコンを作成してからそのハンドルを返します。

関連項目