网站首页  计算机词典

请输入您要查询的字词:

 

字词 setmenudefaultitem
释义 SetMenuDefaultItem
语法:
BOOL SetMenuDefaultItem( HMENU hMenu,
UINT uItem,
UINT fByPos
);
SetMenuDefaultItem功能
该SetMenuDefaultItem函数设置为指定的菜单默认的菜单项。
参数
hMenu
[in]句柄菜单设置为默认的项目。
uItem
[in]标识符或新的默认菜单项或-1立场没有预设项目。这个参数的含义取决于fByPos价值。
fByPos
[in]值指明uItem意义。如果此参数为FALSE,uItem是一个菜单项的标识符。否则,它是一个菜单项的位置。有关更多信息,菜单编程注意事项。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,使用GetLastError函数。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 4.0
UnicodeImplemented为Unicode版本。
参见
菜单,GetMenuDefaultItem
==英文原文==SetMenuDefaultItem Function
The SetMenuDefaultItem function sets the default menu item for the specified menu.
Syntax
BOOL SetMenuDefaultItem( HMENU hMenu,
UINT uItem,
UINT fByPos
);
Parameters
hMenu
[in] Handle to the menu to set the default item for.
uItem
[in] Identifier or position of the new default menu item or -1 for no default item. The meaning of this parameter depends on the value of fByPos.
fByPos
[in] Value specifying the meaning of uItem. If this parameter is FALSE, uItem is a menu item identifier. Otherwise, it is a menu item position. See Menu Programming Considerations for more information.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, use the GetLastError function.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 4.0
UnicodeImplemented as Unicode version.
See Also
Menus , GetMenuDefaultItem
==原始网址==http://msdn.microsoft.com/en-us/library/ms647996(VS.85).aspx\n
随便看

 

计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/24 0:38:33