Using Win32 functions in Visual FoxPro Image Gallery
Menu
..msdn
AppendMenu
CreateMenu
CreatePopupMenu
DeleteMenu
DestroyMenu
DrawMenuBar
GetMenu
GetMenuBarInfo
GetMenuItemCount
GetMenuItemID
GetMenuItemInfo
GetMenuString
GetSubMenu
GetSystemMenu
InsertMenuItem
IsMenu
SetMenu
TrackPopupMenuEx
Code examples:
Programmatically removing submenus from VFP main menu
DeleteMenu
..msdn    Add comment     W32 Constants      Translate this page
Deletes an item from the specified menu. If the menu item opens a menu or submenu, this function destroys the handle to the menu or submenu and frees the memory used by the menu or submenu.
Code examples:
Programmatically removing submenus from VFP main menu
Declaration:
BOOL WINAPI DeleteMenu(
    __in  HMENU hMenu,
    __in  UINT uPosition,
    __in  UINT uFlags
);

FoxPro declaration:
DECLARE INTEGER DeleteMenu IN user32;
    INTEGER hMenu,;
    INTEGER uPosition,;
    INTEGER uFlags


Parameters:
hMenu [in]
HMENU
A handle to the menu to be changed.

uPosition [in]
UINT
The menu item to be deleted, as determined by the uFlags parameter.

uFlags [in]
UINT
Indicates how the uPosition parameter is interpreted: MF_BYCOMMAND (0), MF_BYPOSITION (0x0400)
Return value:
If the function succeeds, the return value is nonzero.
My comment:
See also: RemoveMenu, DestroyMenu, GetMenu

If you are not into Windows API yet, get yourself a cup of coffee or a drink and start musing about possible functional differences of three Menu API functions with somewhat close names:

  • RemoveMenu
  • DeleteMenu
  • DestroyMenu

  • Word Index links for the DeleteMenu :
    Translate this page:
      Spanish    Portuguese    German    French    Italian  
    FreeTranslation.com offers instant, free translations of text or web pages.
    Created: 2011-02-26 14:22:35
    Modified: 2011-02-26 14:39:22
    Visited in last 7 days: 66
    User Contributed Notes:
    There are no notes on this subject.


    Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

    Privacy policy
    Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (54.156.76.240)
    5 sec.Function: 'FatalAppExit'
    10 sec.Function: 'BeginUpdateResource'
    16 sec.Function: 'DefWindowProc'
    21 sec.Function: 'GetAdaptersAddresses'
    29 sec.
    Function group: 'Process and Thread'
    37 sec.Function: 'CountClipboardFormats'
    44 sec.
    Function group: 'Remote Application Programming (RAPI)'
    50 sec.Function: 'GdipFillRectangle'
    55 sec.Function: 'GetCurrentDirectory'
    1.03 min.Function: 'FindVolumeMountPointClose'
    Google
    Advertise here!