Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.25 KB

GetMenu.md

File metadata and controls

46 lines (33 loc) · 1.25 KB

Home

Function name : GetMenu

Group: Menu - Library: user32


The GetMenu function retrieves a handle to the menu assigned to the specified window.


Code examples:

Retrieving window and menu help context identifiers
Simple Window Viewer
Programmatically removing submenus from VFP main menu
Reading the structure of VFP main menu
Accessing Adobe Reader 7.0 main menu from VFP application
How to control Adobe Reader 9.0 (SDI mode) from VFP application

Declaration:

HMENU GetMenu(
	HWND hWnd
);  

FoxPro declaration:

DECLARE INTEGER GetMenu IN user32;
	INTEGER hWnd  

Parameters:

hWnd [in] Handle to the window whose menu handle is to be retrieved.


Return value:

The return value is a handle to the menu. If the specified window has no menu, the return value is NULL. If the window is a child window, the return value is undefined.