-
Hi,
How do I use the SetWindowLong API to retreive my window style???
This is the syntax for the API:
Code:
Declare Function SetWindowLong Lib "user32.dll" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
hwnd -> handle of the window who's style i need
nIndex ->GWL_STYLE ( to get the window style)
but what about dwNewLong?? what do I pass for that argument??? the site http://www.vbapi.com mentions a callback function, but I don't know how to use it and what its for!
Any help here will be really appreciated.
Thanx.
-
The SetWindowLong function is only for setting Window Styles. To get Window Styles, you must use the GetWindowLong function. Information on how to use GetWindowLong can be found here: http://www.vbapi.com/ref/g/getwindowlong.html
-
thanx oetje,
don't now how i overlooked that!