Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reference to menu
Message
From
15/02/1999 08:47:50
 
 
To
15/02/1999 01:25:35
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00187505
Message ID:
00187647
Views:
16
>Hello,
> I would like to call the following API, how could I pass parameter to it??
>The following API statements are in VB:
>
>'Declarations
>**************************
>
>'Private Declare Function SetMenuItemBitmaps Lib "user32" (ByVal hMenu
>As Long, ByVal nPosition As Long, ByVal wFlags As Long, ByVal
>hBitmapUnchecked As Long, ByVal hBitmapChecked As Long) As Long
>'Private Declare Function GetMenu Lib "user32" (ByVal hwnd As Long) As
>Long
>'Private Declare Function GetSubMenu Lib "user32" (ByVal hMenu As Long,
>ByVal nPos As Long) As Long
>
>SetMenuItemBitmaps _
>GetSubMenu(GetMenu(Me.hwnd), 0), 1, _
>&H400, Picture1.Picture, 0
>
> How could I do call API as above which menu added in my Top Level form?
>

John, VFP's menus don't use the standard Windows menuing calls. If you decide to implement Windows menus in VFP (which will be difficult, since VFP forms aren't standard windows, either), you'll have a considerable amount of work to do. I haven't done it, and don't have the time to spend working out how to do it. I unfortunately have a job with significant time requirements, which I have to do to pay my bills.

Ed
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform