>>>>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)
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only