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:
Reading the structure of VFP main menu
GetMenuString
..msdn    Add comment     W32 Constants      Translate this page
The GetMenuString function copies the text string of the specified menu item into the specified buffer.
Code examples:
Reading the structure of VFP main menu
Declaration:
int GetMenuString(          
    HMENU hMenu,
    UINT uIDItem,
    LPTSTR lpString,
    int nMaxCount,
    UINT uFlag
);
FoxPro declaration:
DECLARE INTEGER GetMenuString IN user32;
    INTEGER   hMenu,;
    INTEGER   uIDItem,;
    STRING  @ lpString,;
    INTEGER @ nMaxCount,;
    INTEGER   uFlag

Parameters:
hMenu
[in] Handle to the menu.

uIDItem
[in] Specifies the menu item to be changed, as determined by the uFlag parameter.

lpString
[out] Pointer to the buffer that receives the null-terminated string.

nMaxCount
[in] Specifies the maximum length, in characters, of the string to be copied.

uFlag
[in] Specifies how the uIDItem parameter is interpreted: MF_BYCOMMAND or MF_BYPOSITION
Return value:
If the function succeeds, the return value specifies the number of characters copied to the buffer, not including the terminating null character.
Word Index links for the GetMenuString :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-10-31 11:44:30
Modified: 2002-10-31 11:46:41
Visited in last 7 days: 28
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.234.247.118)
19 sec.Function: 'CryptGenRandom'
38 sec.
Function group: 'Unicode and Character Set'
57 sec.Function: 'GdipReleaseDC'
1.28 min.Function: 'GetDC'
1.6 min.Function: 'FindCloseUrlCache'
1.93 min.Function: 'GetIpStatistics'
2.23 min.Function: 'GdipCreateSolidFill'
2.55 min.Function: 'GetKeyboardLayout'
2.87 min.Function: 'CeCreateProcess'
3.18 min.Function: 'ActivateKeyboardLayout'
Google
Advertise here!