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:
Attaching menu to a top-level form
AppendMenu
..msdn    Add comment     W32 Constants      Translate this page
The AppendMenu function appends a new item to the end of the specified menu bar, drop-down menu, submenu, or shortcut menu.
Code examples:
Attaching menu to a top-level form
Declaration:
BOOL AppendMenu(
  HMENU hMenu,         // handle to menu
  UINT uFlags,         // menu-item options
  UINT_PTR uIDNewItem, // identifier, menu, or submenu
  LPCTSTR lpNewItem    // menu-item content
);
FoxPro declaration:
DECLARE INTEGER AppendMenu IN user32;
    INTEGER   hMenu,;
    INTEGER   uFlags,;
    INTEGER   uIDNewItem,;
    STRING  @ lpNewItem
Parameters:
hMenu
[in] Handle to the menu bar, drop-down menu, submenu, or shortcut menu to be changed.
uFlags
[in] Specifies flags to control the appearance and behavior of the new menu item.

uIDNewItem
[in] Specifies either the identifier of the new menu item or, if the uFlags parameter is set to MF_POPUP, a handle to the drop-down menu or submenu.

lpNewItem
[in] Specifies the content of the new menu item.
Return value:
If the function succeeds, the return value is nonzero. If the function fails, the return value is zero.
My comment:
MSDN: the AppendMenu function has been superseded by the InsertMenuItem function. You can still use AppendMenu, however, if you do not need any of the extended features of InsertMenuItem.
Word Index links for the AppendMenu :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-12-09 12:13:45
Modified: 2001-12-09 12:16:21
Visited in last 7 days: 19
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.224.13.210)
13 sec.
Function group: 'National Language Support'
25 sec.Function: 'GetMenuItemCount'
37 sec.Function: 'FindFirstUrlCacheGroup'
50 sec.Function: 'CreateProcess'
1.02 min.
Function group: 'Window Class'
1.18 min.
Function group: 'Painting and Drawing'
1.38 min.Function: 'GdipGetImageRawFormat'
1.58 min.Function: 'CreateDC'
1.83 min.Function: 'GetCurrentThreadId'
2.05 min.
Function group: 'Simple MAPI'
Google
Advertise here!