术语 | 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 |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。