Wiki Home

Vfp Menu


Namespace: Wiki
Visual Foxpro Help indicates that the MENU command is included only for backward compatibility, the menu designer is to be used.

For an example see Chapter 11, Designing Menus and Toolbars in the VFP Programmer's Guide.
Not much of usefulness in this, but VFP main menu items can be invoked by calling the Send MessageOffsite link to http://www.news2news.com/vfp/?function=312
API function.
#DEFINE WM_COMMAND 0x0111

#DEFINE ID_HELP_ABOUT           0x00090007
#DEFINE ID_TOOLS_MACROS         0x000B0003
#DEFINE ID_TOOLS_CLASS_BROWSER  0x000B0004
#DEFINE ID_TOOLS_COMP_GALLERY   0x000B0005
#DEFINE ID_TOOLS_OBJECT_BROWSER 0x000B0006
#DEFINE ID_TOOLS_INTELS_MGR     0x000B0007
#DEFINE ID_TOOLS_TASK_PANE      0x000B0008
#DEFINE ID_TOOLS_TOOLBOX        0x000B0009
#DEFINE ID_TOOLS_OPTIONS        0x000B0014

DECLARE INTEGER SendMessage IN user32;
	INTEGER hWindow, INTEGER Msg,;
	INTEGER wParam, INTEGER lParam

* if the Help part of the VFP 9.0 main menu is enabled
* this call opens the About dialog
= SendMessage(_vfp.hWnd, WM_COMMAND, ID_HELP_ABOUT, 0)

-- Anatoliy Mogylevets
More to come....
Category Menus
( Topic last updated: 2009.01.23 07:14:16 PM )