fShowDialog
Applies to: 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);
Parameters
The function takes no parameters.
Property value/Return value
The function return integer zero to indicate successful completion
Remarks
The steps to display the native Windows dialog box are as follows:
Obtain the Microsoft Excel main Windows handle using GetHwnd.
Hook the Excel main window using HookExcelWindow.
Display the dialog box using DialogBox.
Unhook the Excel main window using UnhookExcelWindow.
Example
See \SAMPLES\GENERIC\GENERIC.C
for the source code for this function.