HookExcelWindow
适用于:Excel 2013 | Office 2013 | Visual Studio
安装 ExcelCursorProc,以便在 Microsoft Excel main WndProc 之前调用它。
extern void FAR PASCAL HookExcelWindow(HANDLE hWndExcel);
参数
hWndExcel (HANDLE)
Excel main Windows 句柄。
属性值/返回值
函数不返回值。
备注
函数通过使用 GetWindowLong () 获取 Excel WndProc 的地址。 它将此值存储在可用于调用默认 WndProc 和还原它的全局中。 最后,它使用 SetWindowLong () 将此地址替换为 ExcelCursorProc 的地址。
示例
有关此函数的源代码,请参阅 \SAMPLES\GENERIC\GENERIC.C
。