>>>I'm trying to convert the following line of code over to VB but I can't figure out what to use for the
0x00080000. Anybody know?
>>>
>>>
SetWindowLong hWnd, -20, 0x00080000
>>>
>>>TIA
>>
>>How about 524288?
>
>That's what I thought it should be but I'm getting an overflow error on the SetWindowLong call below.
>
>
Private Declare Function SetWindowLong Lib "Win32Api" (hWnd As Integer, _
> nIndex As Integer, dwNewLong As Long)
>
>Private Sub Command1_Click()
> SetWindowLong hWnd, -20, 524288
>end sub
Have you tried
SetWindowLong hWnd, -20, &H00080000
BTW, in VB6, all 3 parameters are defined as Long in the Win32Api.txt file. Are you sure its the last parameter causing the overflow message.
Len Speed