Vcl.Graphics.TBitmap.HandleAllocated
Delphi
function HandleAllocated: Boolean;
C++
bool __fastcall HandleAllocated();
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | Vcl.Graphics.pas Vcl.Graphics.hpp |
Vcl.Graphics | TBitmap |
説明
TBitmap オブジェクトが基底の GDI オブジェクトへのハンドルを持っているかどうかを示します。
HandleAllocated メソッドを使用すると,Handle プロパティが HBITMAP 値に設定されているかどうかを判別できます。HandleAllocated は,基底の GDI オブジェクトが作成済みかどうかを示します。Handle プロパティを読み出すかわりに,HandleAllocated を使用します。基底の GDI オブジェクトがまだ作成されていない場合にアプリケーションが Handle プロパティを読み出すと,自動的にビットマップが作成され,そのハンドルが返されます。