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.
Attaching menu to a top-level form
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Shortcut Menu Class
Adding user-defined items to the Control Menu of VFP form (requires VFP9)
HMENU CreatePopupMenu(VOID); DECLARE INTEGER CreatePopupMenu IN user32 This function has no parameters.
If the function succeeds, the return value is a handle to the newly created menu. If the function fails, the return value is NULL.
Call the DestroyMenu function to free the resource.
Home