网站首页  词典首页

请输入您要查询的函数:

 

术语 defframeproc
释义 DefFrameProc
语法:
LRESULT DefFrameProc( HWND hWnd,
HWND hWndMDIClient,
UINT uMsg,
WPARAM wParam,
LPARAM lParam
);
DefFrameProc功能
该DefFrameProc功能提供的任何窗口消息,一个多文档界面(MDI)框架窗口的窗口过程不处理的默认处理。所有的窗口都没有明确的窗口过程处理的邮件必须被传递给DefFrameProc功能,而不是DefWindowProc函数。
参数
hWnd
[in]句柄MDI框架窗口。
hWndMDIClient
[in]句柄到MDI客户窗口。
uMsg
[in]指定的信息进行处理。
wParam
[in]指定附加消息的特定信息。
lparam的
[in]指定附加消息的特定信息。
返回值
返回值指定消息处理的结果和消息而定。如果hWndMDIClient参数为NULL,则返回值是作为DefWindowProc函数相同。
备注
当一个应用程序的窗口过程不处理邮件时,它通常将消息传递给DefWindowProc函数来处理消息。 MDI应用程序使用DefFrameProc,而非DefWindowProc DefMDIChildProc职能,为默认邮件处理。所有邮件应用程序通常会传递到DefWindowProc(如非工作信息和WM_SETTEXT消息)应传递给DefFrameProc代替。该DefFrameProc函数也处理以下消息。
MessageResponse
WM_COMMAND消息激活MDI子窗口,用户选择。此消息发送当用户选择了从MDI框架窗口的窗口菜单的MDI子窗口。窗口标识符标识伴随这一消息的MDI子窗口被激活。
WM_MENUCHAR打开了积极的MDI子窗口的窗口菜单时,用户按下ALT键+ - (减号)键组合。
WM_SETFOCUS键盘焦点传递到MDI客户窗口,进而将其传递给活动MDI子窗口。
WM_SIZE大小调整为MDI的客户端窗口,以适应新的框架窗口的客户区。如果框架窗口程序大小在MDI客户窗口不同的大小,不应该将讯息传达给DefWindowProc函数。
在Windows 95/98/Me:DefFrameProcW是支持的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版本。
参见
多文档接口概述,DefMDIChildProc,DefWindowProc,WM_SETTEXT
==英文原文==DefFrameProc Function
The DefFrameProc function provides default processing for any window messages that the window procedure of a multiple-document interface (MDI) frame window does not process. All window messages that are not explicitly processed by the window procedure must be passed to the DefFrameProc function, not the DefWindowProc function.
Syntax
LRESULT DefFrameProc( HWND hWnd,
HWND hWndMDIClient,
UINT uMsg,
WPARAM wParam,
LPARAM lParam
);
Parameters
hWnd
[in] Handle to the MDI frame window.
hWndMDIClient
[in] Handle to the MDI client window.
uMsg
[in] Specifies the message to be processed.
wParam
[in] Specifies additional message-specific information.
lParam
[in] Specifies additional message-specific information.
Return Value
The return value specifies the result of the message processing and depends on the message. If the hWndMDIClient parameter is NULL, the return value is the same as for the DefWindowProc function.
Remarks
When an application's window procedure does not handle a message, it typically passes the message to the DefWindowProc function to process the message. MDI applications use the DefFrameProc and DefMDIChildProc functions instead of DefWindowProc to provide default message processing. All messages that an application would usually pass to DefWindowProc (such as nonclient messages and the WM_SETTEXT message) should be passed to DefFrameProc instead. The DefFrameProc function also handles the following messages.
MessageResponse
WM_COMMAND Activates the MDI child window that the user chooses. This message is sent when the user chooses an MDI child window from the window menu of the MDI frame window. The window identifier accompanying this message identifies the MDI child window to be activated.
WM_MENUCHAR Opens the window menu of the active MDI child window when the user presses the ALT+ – (minus) key combination.
WM_SETFOCUS Passes the keyboard focus to the MDI client window, which in turn passes it to the active MDI child window.
WM_SIZE Resizes the MDI client window to fit in the new frame window's client area. If the frame window procedure sizes the MDI client window to a different size, it should not pass the message to the DefWindowProc function.
Windows 95/98/Me: DefFrameProcW 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 .
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
Multiple Document Interface Overview , DefMDIChildProc , DefWindowProc , WM_SETTEXT
==原始网址==http://msdn.microsoft.com/en-us/library/ms644924(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:41