This topic has not yet been rated - Rate this topic

fShowDialog

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.

The function return integer zero to indicate successful completion

The steps to display the native Windows dialog box are as follows:

  1. Obtain the Microsoft Excel main Windows handle using GetHwnd.

  2. Hook the Excel main window using HookExcelWindow.

  3. Display the dialog box using DialogBox.

  4. Unhook the Excel main window using UnhookExcelWindow.

See \SAMPLES\GENERIC\GENERIC.C for the source code for this function.

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.