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:
Shortcut Menu Class
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
TrackPopupMenuEx
..msdn    Add comment     W32 Constants      Translate this page
The TrackPopupMenuEx function displays a shortcut menu at the specified location and tracks the selection of items on the shortcut menu. The shortcut menu can appear anywhere on the screen.
Code examples:
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Shortcut Menu Class
Declaration:
BOOL TrackPopupMenuEx(
    HMENU hmenu,
    UINT fuFlags,
    int x,
    int y,
    HWND hwnd,
    LPTPMPARAMS lptpm
);
FoxPro declaration:
DECLARE INTEGER TrackPopupMenuEx IN user32;
    LONG hmenu,;
    LONG fuFlags,;
    INTEGER x,;
    INTEGER y,;
    LONG hwnd,;
    INTEGER lptpm

Parameters:
hmenu
[in] Handle to the shortcut menu to be displayed. This handle can be obtained by calling the CreatePopupMenu function to create a new shortcut menu or by calling the GetSubMenu function to retrieve a handle to a submenu associated with an existing menu item.

fuFlags
[in] Specifies function options: a combination of constants

x
[in] Horizontal location of the shortcut menu, in screen coordinates.

y
[in] Vertical location of the shortcut menu, in screen coordinates.

hwnd
[in] Handle to the window that owns the shortcut menu.

lptpm
[in] This parameter can be NULL.
Return value:
If you specify TPM_RETURNCMD in the fuFlags parameter, the return value is the menu-item identifier of the item that the user selected. If the user cancels the menu without making a selection, or if an error occurs, then the return value is zero.

If you do not specify TPM_RETURNCMD in the fuFlags parameter, the return value is nonzero if the function succeeds and zero if it fails. To get extended error information, call GetLastError.
Word Index links for the TrackPopupMenuEx :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-10-23 11:07:57
Modified: 2002-10-23 11:12:05
Visited in last 7 days: 18
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.156.92.243)
15 sec.
Function group: 'Message and Message Queue'
30 sec.Function: 'GetCurrentProcessId'
Function group: 'Process and Thread'
42 sec.Links
54 sec.Function: 'GetMenuContextHelpId'
Function group: 'Shell Functions'
1.07 min.All Functions
1.27 min.Solutions
1.47 min.Function: 'LockResource'
1.7 min.Function: 'StretchBlt'
Function group: 'Bitmap'
1.95 min.Articles
2.23 min.Function: 'SQLSetConfigMode'
Function group: 'ODBC API'
Google
Advertise here!