Vcl.Dialogs.TPrintDialog.Execute

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

Delphi

function Execute(ParentWnd: HWND): Boolean; override;

C++

virtual bool __fastcall Execute(HWND ParentWnd)/* overload */;
inline bool __fastcall  Execute(){ return TCommonDialog::Execute(); }

プロパティ

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


説明

印刷 ダイアログを表示します。

Execute は、印刷 ダイアログを表示し、ユーザーが [印刷] をクリックすると true を、ユーザーが [キャンセル] をクリックした場合には false を返します。

上に記述されている Execute のコード シグニチャは、実際には、基底クラス Vcl.Dialogs.TCommonDialog.Execute 内での Execute オーバーロードの上書きです。 Delphi のための Execute のオーバーロードがもう 1 つあり、これはTCommonDialog からの継承メンバ内に存在します。これは入力パラメータのないオーバーロードです。

ParentWnd パラメータは、HWND MSDN 型のウィンドウ ハンドルです。 もし何も指定されなかった場合には、グローバル変数 Vcl.Forms.Application 内の Vcl.Forms.TApplication.ActiveFormHandle からアクセスできる現在のフォーム ハンドルが使用されます。

関連項目


コード サンプル