网站首页  词典首页

请输入您要查询的函数:

 

术语 defmdichildproc
释义 DefMDIChildProc
语法:
LRESULT DefMDIChildProc( HWND hWnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam
);
DefMDIChildProc功能
该DefMDIChildProc功能提供任何窗口消息,一个多文档界面(MDI)子窗口的窗口过程不处理的默认处理。窗口消息无法处理该窗口过程必须传递给DefMDIChildProc功能,不给DefWindowProc函数。
参数
hWnd
[in]句柄MDI子窗口。
uMsg
[in]指定的信息进行处理。
wParam
[in]指定附加消息的特定信息。
lparam的
[in]指定附加消息的特定信息。
返回值
返回值指定消息处理的结果和消息而定。
备注
该DefMDIChildProc函数假定的MDI子的hWnd参数确定窗口的父窗口是同类别MDICLIENT类创建。
当一个应用程序的窗口过程不处理邮件时,它通常将消息传递给DefWindowProc函数来处理消息。 MDI应用程序使用DefFrameProc,而非DefWindowProc DefMDIChildProc职能,为默认邮件处理。所有邮件应用程序通常会传递到DefWindowProc(如非工作信息和WM_SETTEXT消息)应传递给DefMDIChildProc代替。此外,还处理DefMDIChildProc以下消息。
MessageResponse
WM_CHILDACTIVATE执行活化处理时,MDI子窗口的大小,移动,或显示。此消息必须予以通过。
WM_GETMINMAXINFO计算一个最大化的MDI子窗口的大小的基础上,对MDI客户窗口的当前大小。
WM_MENUCHAR传递到MDI框架窗口消息。
WM_MOVE重新计算滚动条MDI的客户,如果它们仍然存在。
WM_SETFOCUS激活子窗口,如果不是活动的MDI子窗口。
WM_SIZE执行操作所需的改变,特别是最大限度地提高或恢复的MDI子窗口一个窗口的大小。未能通过这个信息DefMDIChildProc函数产生极不理想的结果。
WM_SYSCOMMAND的处理窗口菜单命令:SC_NEXTWINDOW,SC_PREVWINDOW,SC_MOVE,SC_SIZE和SC_MAXIMIZE。
在Windows 95/98/Me:DefMDIChildProcW是支持的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版本。
参见
多文档接口概述,DefFrameProc,DefWindowProc,WM_CHILDACTIVATE,WM_GETMINMAXINFO,WM_MENUCHAR,WM_MOVE,WM_SETFOCUS,WM_SETTEXT,WM_SIZE,WM_SYSCOMMAND的
==英文原文==DefMDIChildProc Function
The DefMDIChildProc function provides default processing for any window message that the window procedure of a multiple-document interface (MDI) child window does not process. A window message not processed by the window procedure must be passed to the DefMDIChildProc function, not to the DefWindowProc function.
Syntax
LRESULT DefMDIChildProc( HWND hWnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam
);
Parameters
hWnd
[in] Handle to the MDI child 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.
Remarks
The DefMDIChildProc function assumes that the parent window of the MDI child window identified by the hWnd parameter was created with the MDICLIENT class.
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 DefMDIChildProc instead. In addition, DefMDIChildProc also handles the following messages.
MessageResponse
WM_CHILDACTIVATE Performs activation processing when MDI child windows are sized, moved, or displayed. This message must be passed.
WM_GETMINMAXINFO Calculates the size of a maximized MDI child window, based on the current size of the MDI client window.
WM_MENUCHAR Passes the message to the MDI frame window.
WM_MOVE Recalculates MDI client scroll bars if they are present.
WM_SETFOCUS Activates the child window if it is not the active MDI child window.
WM_SIZE Performs operations necessary for changing the size of a window, especially for maximizing or restoring an MDI child window. Failing to pass this message to the DefMDIChildProc function produces highly undesirable results.
WM_SYSCOMMAND Handles window menu commands: SC_NEXTWINDOW, SC_PREVWINDOW, SC_MOVE, SC_SIZE, and SC_MAXIMIZE.
Windows 95/98/Me: DefMDIChildProcW 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 , DefFrameProc , DefWindowProc , WM_CHILDACTIVATE , WM_GETMINMAXINFO , WM_MENUCHAR , WM_MOVE , WM_SETFOCUS , WM_SETTEXT , WM_SIZE , WM_SYSCOMMAND
==原始网址==http://msdn.microsoft.com/en-us/library/ms644925(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:25:56