Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hwnd
Message
 
 
To
15/02/1999 01:24:33
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Re: Hwnd
Miscellaneous
Thread ID:
00187513
Message ID:
00187891
Views:
20
John,

In VFP DECLARE LONG = INTEGER, ByVal = is not needed in VFP. So the declares ought to be:

declare integer SetMenuItemBitmaps in win32api integer hMenu, integer nPosition, integer wFlags, integer hBitmapUnchecked, integer hBitmapChecked

declare integer GetMenu in win32api integer hwnd

declare integer GetSubMenu in win32api integer hMenu, integer nPos

I have no idea whether or not those api calls are going to work with a VFP menu. They may not if VFP doesn't use a standard windows menu inside it's windows.

>
>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?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform