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:
Adding user-defined items to the Control Menu of VFP form (requires VFP9)
Attaching menu to a top-level form
Shortcut Menu Class
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
InsertMenuItem
..msdn    Add comment     W32 Constants      Translate this page
The InsertMenuItem function inserts a new menu item at the specified position in a menu.
Code examples:
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Adding user-defined items to the Control Menu of VFP form (requires VFP9)
Attaching menu to a top-level form
Shortcut Menu Class
Declaration:
BOOL InsertMenuItem(
  HMENU hMenu,           // handle to menu
  UINT uItem,            // identifier or position
  BOOL fByPosition,      // meaning of uItem
  LPCMENUITEMINFO lpmii  // menu item information
);
FoxPro declaration:
DECLARE INTEGER InsertMenuItem IN user32;
    INTEGER   hMenu,;
    INTEGER   uItem,;
    INTEGER   fByPosition,;
    STRING  @ lpmii

Parameters:
hMenu
[in] Handle to the menu in which the new menu item is inserted.

uItem
[in] Identifier or position of the menu item before which to insert the new item. The meaning of this parameter depends on the value of fByPosition.

fByPosition
[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.

lpmii
[in] Pointer to a MENUITEMINFO structure that contains information about the new menu item.
Return value:
If the function succeeds, the return value is nonzero. If the function fails, the return value is zero.
Word Index links for the InsertMenuItem :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-12-09 12:17:01
Modified: 2001-12-09 12:18:51
Visited in last 7 days: 32
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.196.72.162)
6 sec.Function: 'capGetDriverDescription'
13 sec.Function: 'CryptGenKey'
20 sec.Function: 'PostQuitMessage'
27 sec.Function: 'WSACreateEvent'
33 sec.Function: 'CreateVirtualDisk'
39 sec.Function: 'GetModuleFileName'
46 sec.Function: 'SetPriorityClass'
53 sec.Function: 'ExtractIcon'
59 sec.
Function group: 'Kernel Transaction Manager'
1.08 min.Function: 'getprotobynumber'
Google
Advertise here!