Share via


ExcelCursorProc

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

When a modal dialog box is displayed over the Microsoft Office Excel window, the cursor is a busy cursor over the Excel window. This WndProc traps WM_SETCURSOR type Windows messages and changes the cursor back to a normal arrow.

LRESULT CALLBACK ExcelCursorProc(HWND hwnd, UINT wMsg, WPARAM wParam, LPARAM lParam);

Parameters

hWndDlg (HWND)

Contains the HWND Windows handle of the dialog box.

message (UINT)

The message to respond to.

wParam (WPARAM)

lParam (LPARAM)

Arguments passed by Windows.

Property Value/Return Value

LRESULT: 0 if the message was handled, otherwise the result returned by the default WndProc.

Example

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

See Also

Concepts

Functions in the Generic DLL