ExcelCursorProc

Applies to: Excel 2010 | Office 2010 | VBA | Visual Studio

When a modal dialog box is displayed over the Microsoft 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