网站首页  词典首页

请输入您要查询的函数:

 

术语 dispatchmessage
释义 DispatchMessage
语法:
LRESULT DispatchMessage( const MSG *lpmsg
);
DispatchMessage函数
该DispatchMessage函数将调度到一个窗口过程的消息。它通常用于派遣由GetMessage函数检索邮件。
参数
lpmsg
[in]指向一个味精结构,它包含的信息。
返回值
返回值指定的窗口过程的返回值。虽然它的含义的信息取决于被派往,返回值通常被忽略。
备注
在MSG结构必须包含有效的消息值。如果lpmsg参数指向一个WM_TIMER消息和WM_TIMER消息的lParam参数不为NULL,lParam指向一个称为窗口,而不是程序的功能。
请注意,申请的检索和调度信息输入到对话框负责。大多数应用程序使用此主消息循环。然而,为了允许用户移动到并选择使用键盘控制,应用程序必须调用IsDialogMessage。有关更多信息,请参见对话框键盘接口。
在Windows 95/98/Me:DispatchMessageW是支持的Unicode(MSLU)微软层。要使用此,您必须将某些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98/Me系统。
例如
有关示例,请参阅创建消息循环。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为ANSI和Unicode版本。
参见
消息和消息队列概述,GetMessage,IsDialogMessage,味精,PeekMessage,TranslateMessage,中WM_TIMER
==英文原文==DispatchMessage Function
The DispatchMessage function dispatches a message to a window procedure. It is typically used to dispatch a message retrieved by the GetMessage function.
Syntax
LRESULT DispatchMessage( const MSG *lpmsg
);
Parameters
lpmsg
[in] Pointer to an MSG structure that contains the message.
Return Value
The return value specifies the value returned by the window procedure. Although its meaning depends on the message being dispatched, the return value generally is ignored.
Remarks
The MSG structure must contain valid message values. If the lpmsg parameter points to a WM_TIMER message and the lParam parameter of the WM_TIMER message is not NULL, lParam points to a function that is called instead of the window procedure.
Note that the application is responsible for retrieving and dispatching input messages to the dialog box. Most applications use the main message loop for this. However, to permit the user to move to and to select controls by using the keyboard, the application must call IsDialogMessage . For more information, see Dialog Box Keyboard Interface .
Windows 95/98/Me: DispatchMessageW 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 Creating a Message Loop .
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
Messages and Message Queues Overview , GetMessage , IsDialogMessage , MSG , PeekMessage , TranslateMessage , WM_TIMER
==原始网址==http://msdn.microsoft.com/en-us/library/ms644934(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:19:15