术语 | callmsgfilter |
释义 | CallMsgFilter 语法: BOOL CallMsgFilter( LPMSG lpMsg, int nCode ); CallMsgFilter功能 该CallMsgFilter函数指定的消息传递和挂钩代码钩与WH_SYSMSGFILTER和WH_MSGFILTER相关程序挂钩。阿WH_SYSMSGFILTER和WH_MSGFILTER挂钩过程是一个应用程序定义的回调函数,检查和可选,修改了一个对话框消息,消息框,菜单或滚动条。 参数 lpMsg [in]指向一个MSG结构,它包含的信息传递给钩子程序。 nCode [in]指定一个应用程序定义的钩子程序来确定如何处理该消息的代码。该代码绝不能有相同的值为系统定义的钩子代码(MSGF_和HC_)与WH_SYSMSGFILTER和WH_MSGFILTER相关的钩子。 返回值 如果应用程序应进一步处理该消息,返回值是零。 If the application should not process the message further, the return value is nonzero. 备注 该系统调用CallMsgFilter,使应用程序审查和控制信息的对话框中,消息框,菜单内部处理流程,并滚动条或者当用户激活按Alt一个不同的窗口+ TAB组合键。 安装使用SetWindowsHookEx函数此挂钩过程。 在Windows 95/98/Me:CallMsgFilterW是支持的Unicode(MSLU)微软层。要使用此,您必须将某些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98/Me系统。 例如 有关示例,请参见WH_MSGFILTER和WH_SYSMSGFILTER钩子。 功能信息 最低DLL版本 user32.dll 在Winuser.h中HeaderDeclared,头文件:winuser.h import libraryUser32.lib 最低操作系统Windows 95,Windows NT 3.1 UnicodeImplemented为ANSI和Unicode版本。 参见 钩概述,MessageProc,味精,钩子,SysMsgProc ==英文原文==CallMsgFilter Function The CallMsgFilter function passes the specified message and hook code to the hook procedures associated with the WH_SYSMSGFILTER and WH_MSGFILTER hooks. A WH_SYSMSGFILTER or WH_MSGFILTER hook procedure is an application-defined callback function that examines and, optionally, modifies messages for a dialog box, message box, menu, or scroll bar. Syntax BOOL CallMsgFilter( LPMSG lpMsg, int nCode ); Parameters lpMsg [in] Pointer to an MSG structure that contains the message to be passed to the hook procedures. nCode [in] Specifies an application-defined code used by the hook procedure to determine how to process the message. The code must not have the same value as system-defined hook codes (MSGF_ and HC_) associated with the WH_SYSMSGFILTER and WH_MSGFILTER hooks. Return Value If the application should process the message further, the return value is zero. If the application should not process the message further, the return value is nonzero. Remarks The system calls CallMsgFilter to enable applications to examine and control the flow of messages during internal processing of dialog boxes, message boxes, menus, and scroll bars, or when the user activates a different window by pressing the ALT+TAB key combination. Install this hook procedure by using the SetWindowsHookEx function. Windows 95/98/Me: CallMsgFilterW is supported by the Microsoft Layer for Unicode (MSLU). To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems . Example For an example, see WH_MSGFILTER and WH_SYSMSGFILTER Hooks . Function Information Minimum DLL Versionuser32.dll HeaderDeclared in Winuser.h, include Windows.h Import libraryUser32.lib Minimum operating systemsWindows 95, Windows NT 3.1 UnicodeImplemented as ANSI and Unicode versions. See Also Hooks Overview , MessageProc , MSG , SetWindowsHookEx , SysMsgProc ==原始网址==http://msdn.microsoft.com/en-us/library/ms644973(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。