fShowDialog

適用対象: Excel 2013 | Office 2013 | Visual Studio

Example user-defined command that loads and displays an example native Windows dialog box. When GENERIC.xll is loaded, it creates a user-defined menu, Generic, through which this command is accessed.

int WINAPI fShowDialog(void);

パラメーター

この関数にはパラメーターはありません。

プロパティ値/戻り値

この関数は、正常に完了したことを示す整数値 0 を返します。

注釈

ネイティブ Windows ダイアログ ボックスを表示する手順は次のとおりです。

  1. GetHwnd を使用して、Microsoft Excel メイン ウィンドウ ハンドルを取得します。

  2. HookExcelWindow を使用して Excel メイン ウィンドウをフックします。

  3. DialogBox を使用してダイアログ ボックスを表示します。

  4. UnhookExcelWindow を使用して Excel メイン ウィンドウのフックを解除します。

この関数のソース コードを参照してください \SAMPLES\GENERIC\GENERIC.C

関連項目

汎用 DLL の関数