Results 1 to 3 of 3

Thread: setWindowLong API.....urgent

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    India
    Posts
    298
    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.

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    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

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    India
    Posts
    298
    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
  •  



Click Here to Expand Forum to Full Width