Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetWindowWord not returning Window Instance....
Message
De
28/10/1997 17:43:29
Tony Roberson
Peavey Electronics Corporaiton
Meridian, Mississippi, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00057028
Message ID:
00057133
Vues:
30
>>>>Does anyone have experience with using the GetWindowWord funtion which is contained in the windows USER32.DLL?
>>>>
>>>>Is it normal for this function to return a value of 0?
>>>
>>>Tony,
>>>
>>>What are you trying to do? Zero indicates an error has occurred. Use GetLastError() to get the value of the error. If you're trying to retrieve information about the window under Win 32, you should use GetWindowLong.
>>>
>>>hth,
>>>
>>>George
>>
>>George,
>>
>>Thanks I am getting an error code of 127.....
>>I am able to get the Window Handle but can't seem to convert it to the Window Instance......
>>Any Suggestions????
>>
>>Thanks,
>
>Do you mean the Instance Handle? If so, try GetClassLong(). Pass it the window handle and -16 (GCL_MODULE, I think is the constant definition).
>
>hth,
>
>George


George,

The following is a sample of the code..... I'm still getting error code 127

Declare long GetClassLong in Win32API ;
long @, ;
long @

ghInstance = GetClassLong(hwnd, -16)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform