|
CheckMenuRadioItem Function The CheckMenuRadioItem function checks a specified menu item and makes it a radio item. At the same time, the function clears all other menu items in the associated group and clears the radio-item type flag for those items. Syntax BOOL CheckMenuRadioItem( HMENU hmenu, UINT idFirst, UINT idLast, UINT idCheck, UINT uFlags );
Adding items to Explorer Shell context (right-click) menu easily – How ? Add an item to Windows Explorer Shell context menu easily with Windows Explorer Shell Context Menu. This powerful component for custom items appending to Windows Explorer Shell context menu will add all your custom items to Windows Explorer Shell context menu. This .Net component and VB.NET support include detailed C# / VB.NET samples, tutorials , user-friendly manuals and support all you may need : - Add all your items to Windows Explorer Shell context menu to be shown on any Windows operating system (all OS are supported – XP, Vista, Windows x64 of all types , etc.)
- Add items to Windows Explorer Shell context menu to be shown in any way - with your custom caption and icon, as separator or sub-menu
- Add your items to Windows Explorer Shell context menu to be shown for all types of files or shown only for computer files of particular type (for example, only for .DOC , .MP3,.WMA,.AAC , .WMV media files)
- Add your program entries to Windows Explorer Shell context menu, sub-menus, sub-sub-menus, sub-menus of unlimited depth and add to Explorer context menu entries of all types
Explorer Context Menu - is a powerful .Net framework component that support all you need to insert all your items to the Windows Explorer Shell context menu - in a fast and a very easy way. Add all your application entries to Windows Explorer Shell context menu right now – fast , easy and exactly as you want :
CheckMenuRadioItem Function Description CheckMenuRadioItem is a custom item appending to Explorer right-click context menu function used in old Windows editions, because CheckMenuRadioItem function may be used to add an item to Windows Explorer right-click context menu only in Windows 95 / Windows 2000 (not on XP, Vista, x64 - 64-bit Windows), to add items to Windows context menu you should use, according to Microsoft guidelines, appropriate .Net component - Windows Explorer Shell Context Menu. This developer-friendly component for everyone who use Visual Studio or similar C#, VB.NET or other .Net / CLR to add items to Explorer context menu. Parameters
hmenu [in] Handle to the menu that contains the group of menu items. idFirst [in] Identifier or position of the first menu item in the group. idLast [in] Identifier or position of the last menu item in the group. idCheck [in] Identifier or position of the menu item to check. uFlags [in] Value specifying the meaning of idFirst, idLast, and idCheck. If this parameter is MF_BYCOMMAND, the other parameters specify menu item identifiers. If it is MF_BYPOSITION, the other parameters specify the menu item positions. 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.
Remarks
The CheckMenuRadioItem function sets the MFT_RADIOCHECK type flag and the MFS_CHECKED state for the item specified by idCheck and, at the same time, clears both flags for all other items in the group. The selected item is displayed using a bullet bitmap instead of a check-mark bitmap.
For more information about menu item type and state flags, see the MENUITEMINFO structure.
Example
For an example, see Example of Example of Using Custom Checkmark Bitmaps.
Function Information
Minimum DLL Version user32.dll Header Declared in Winuser.h, include Windows.h Import library User32.lib Minimum operating systems Windows 95, Windows NT 4.0 Unicode Implemented as Unicode version. |