|
-
Aug 29th, 2000, 04:11 AM
#1
Thread Starter
Hyperactive Member
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.
-
Aug 29th, 2000, 05:29 AM
#2
Fanatic Member
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
-
Aug 29th, 2000, 05:50 AM
#3
Thread Starter
Hyperactive Member
thanx oetje,
don't now how i overlooked that!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|