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
CreatePopupMenu
..msdn    Add comment     W32 Constants      Translate this page
The CreatePopupMenu function creates a drop-down menu, submenu, or shortcut menu.

The menu is initially empty. You can insert or append menu items by using the InsertMenuItem function. You can also use the InsertMenu function to insert menu items and the AppendMenu function to append menu items.
Code examples:
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Attaching menu to a top-level form
Shortcut Menu Class
Adding user-defined items to the Control Menu of VFP form (requires VFP9)
Declaration:
HMENU CreatePopupMenu(VOID);
FoxPro declaration:
DECLARE INTEGER CreatePopupMenu IN user32
Parameters:
This function has no parameters.
Return value:
If the function succeeds, the return value is a handle to the newly created menu. If the function fails, the return value is NULL.
My comment:
Call the DestroyMenu function to free the resource.
Word Index links for the CreatePopupMenu :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-12-09 12:02:04
Modified: 2001-12-09 12:04:48
Visited in last 7 days: 72
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.227.127.109)
10 sec.Function: 'CryptReleaseContext'
22 sec.Function: 'CryptGenRandom'
33 sec.Function: 'CeGetFileSize'
42 sec.Function: 'ImageList_Create'
53 sec.Function: 'FillRect'
1.08 min.Function: 'GetDriveType'
1.25 min.Function: 'CeRegCreateKeyEx'
1.45 min.Function: 'CreateRoundRectRgn'
1.63 min.Function: 'PathIsNetworkPath'
1.83 min.Function: 'ShellExecuteEx'
Google
Advertise here!