SL_AddSubItem


NAME
SL_AddSubItem -- adds a sub item to a menu item.

SYNOPSIS
success = SL_AddSubItem(apphandle, menuid, mid, iid, title, kbequiv, flags, id);
D0A0 D0 D1D2 A1 D3 D4 D5

SLFLAG SL_AddSubItem(APPHANDLE, UWORD, UWORD, UWORD, SLCHAR *, SLCHAR, UWORD, UWORD);

FUNCTION
Adds a subitem to the end of a menu items sub list.

INPUTS
apphandle - as returned by SL_AppInitA.
menuid - resource of the menu strip.
mid - resource id of the menu on the strip to add the item to.
iid - resource id of the item to add the sub item to.
title - the title of the subitem to add (as it will appear in the menu).
The string is copied and need not remain for the life of the
menu item.
kbequiv - the keyboard equivilant of this subitem.
flags - any of these:
MENUFLG_CHECKMARK
id - the resource id of this subitem.

RESULTS
success - TRUE if the subitem was added.
FALSE if the subitem could not be added.

SEE ALSO
SL_AddMenuItem, SL_AddSubItem, SL_BeginMenuUpdate, SL_CheckFontMenuItem, SL_CheckMenuItem, SL_CheckSubItem, SL_DisableMenu, SL_DisableMenuItem, SL_DisableSubItem, SL_EndMenuUpdate, SL_GetFontMenuName, SL_InsertMenuItem, SL_InsertSubItem, SL_MenuKeyCheck, SL_RemoveMenuItem, SL_RemoveSubItem, SL_RenameMenuItem, SL_RenameSubItem.

 

SL_AddSubItem  Command Section By Type  url:SL_AddSubItem
  created:2008-03-01 23:36:20   last updated:2008-03-01 23:36:20
  Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For SL_AddSubItem
There are no user contributed comments for this page.