xlGetHwnd

This function returns the window handle of the top-level Microsoft Excel window.

Contains the window handle (xltypeInt) in the val.w field.

Syntax

Excel4(xlGetHwnd, LPXLOPER pxRes, 0);

This function has no arguments.

Remarks

This function is useful for writing Windows API code.

Example

See the code for the fShowDialog function in GENERIC.C in the FRAMEWRK directory.

Related Function

xlGetInst