术语 | loadmenuindirect |
释义 | LoadMenuIndirect 语法: HMENU LoadMenuIndirect( CONST MENUTEMPLATE *lpMenuTemplate ); LoadMenuIndirect功能 该LoadMenuIndirect函数加载指定的菜单模板在内存中。 参数 lpMenuTemplate [in]指向一个菜单模板或扩展菜单模板。一个菜单模板组成,由一个或多个连续的MENUITEMTEMPLATE结构1 MENUITEMTEMPLATEHEADER结构。一个扩展菜单模板组成,由一个或多个连续的MENUEX_TEMPLATE_ITEM结构1 MENUEX_TEMPLATE_HEADER结构。 返回值 如果函数成功,返回值是一个句柄菜单。 如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。 备注 为ANSI和这一职能的Unicode版本,在MENUITEMTEMPLATE结构的字符串必须是Unicode字符串。 在Windows 95/98/Me:LoadMenuIndirectW是支持微软层对于Unicode。要使用此,您必须将某些文件到您的应用,概述了对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版本。 参见 菜单,LoadMenu,MENUEX_TEMPLATE_HEADER,MENUEX_TEMPLATE_ITEM,MENUITEMTEMPLATE,MENUITEMTEMPLATEHEADER ==英文原文==LoadMenuIndirect Function The LoadMenuIndirect function loads the specified menu template in memory. Syntax HMENU LoadMenuIndirect( CONST MENUTEMPLATE *lpMenuTemplate ); Parameters lpMenuTemplate [in] Pointer to a menu template or an extended menu template. A menu template consists of a MENUITEMTEMPLATEHEADER structure followed by one or more contiguous MENUITEMTEMPLATE structures. An extended menu template consists of a MENUEX_TEMPLATE_HEADER structure followed by one or more contiguous MENUEX_TEMPLATE_ITEM structures. Return Value If the function succeeds, the return value is a handle to the menu. If the function fails, the return value is NULL. To get extended error information, call GetLastError . Remarks For both the ANSI and the Unicode version of this function, the strings in the MENUITEMTEMPLATE structure must be Unicode strings. Windows 95/98/Me: LoadMenuIndirectW is supported by the Microsoft Layer for Unicode. 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 Menus , LoadMenu , MENUEX_TEMPLATE_HEADER , MENUEX_TEMPLATE_ITEM , MENUITEMTEMPLATE , MENUITEMTEMPLATEHEADER ==原始网址==http://msdn.microsoft.com/en-us/library/ms647991(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。