Results 1 to 5 of 5

Thread: SetW indowLong use

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    9

    Question

    I want to use this Function from the user32.dll ...
    I don't know how to declare it in my VBA6 code

  2. #2
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    Use the VB API viewer, if you have VB IDE, else post it here and i will look it up and post Declare
    if it's SetWindowLong like your title then:
    Code:
    Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

  3. #3
    Guest
    add this in the general declarations

    Code:
    Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long

  4. #4

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    9
    Thanks

    Where could i get documentation about user32.dll ?

  5. #5
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

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