Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hwnd
Message
 
 
À
15/02/1999 01:24:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Re: Hwnd
Divers
Thread ID:
00187513
Message ID:
00187891
Vues:
23
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform