Share via


UnhookExcelWindow

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.

Removes the ExcelCursorProc that was previously installed by HookExcelWindow. This would have been done so that ExcelCursorProc was called before the Microsoft Office Excel main WndProc.

extern void FAR PASCAL UnhookExcelWindow(HANDLE hWndExcel);

Parameters

hWndExcel (HANDLE)

The Excel main Windows handle.

Property Value/Return Value

The function does not return a value.

Remarks

This function restores the Excel default WndProc using SetWindowLong() to restore the address that was saved by HookExcelWindow().

Example

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

See Also

Concepts

Functions in the Generic DLL