DialogProc 委托
定义
处理发送给模式对话框或无模式对话框的消息。Processes messages that are sent to a modal or modeless dialog box.
此 API 支持产品基础结构,不能在代码中直接使用。
public delegate bool DialogProc(IntPtr hwndDlg, int uMsg, IntPtr wParam, IntPtr lParam);
public delegate bool DialogProc(IntPtr hwndDlg, int uMsg, IntPtr wParam, IntPtr lParam);
type DialogProc = delegate of nativeint * int * nativeint * nativeint -> bool
Public Delegate Function DialogProc(hwndDlg As IntPtr, uMsg As Integer, wParam As IntPtr, lParam As IntPtr) As Boolean
参数
- hwndDlg
- IntPtr
对话框的句柄。A handle to the dialog box.
- uMsg
- Int32
消息。The message.
- wParam
- IntPtr
其他的消息特定信息。Additional message-specific information.
- lParam
- IntPtr
其他的消息特定信息。Additional message-specific information.
返回值
如果 DialogProc 已成功处理该消息,则为 true;否则为 false。true if the DialogProc successfully processed the message; otherwise, false.
注解
有关通过 DialogProc 函数和 Microsoft 管理控制台(MMC)进行编程的详细信息,请参阅MMC 程序员指南。For more information about programming with the DialogProc function and the Microsoft Management Console (MMC), see the MMC Programmer's Guide.