Results 1 to 5 of 5

Thread: API Parameters

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2000
    Posts
    62
    I just bought this book that for VB developers and the Win32 API. It is a good book that explains alot of API's and thier declarations. However, what it doesnt tell you is what the parameter values should be set to.

    i.e. for the SetWindowPos API the give the vb declaration:

    Private Declare Function SetWindowPos Lib "user32" (ByVal _
    hwnd As Long,
    ByVal hwndInsertAfter As Long, _
    ByVal X As Long, _
    ByVal Y As Long, _
    ByVal cx As Long, _
    ByVal cy As Long, _
    ByVal wFlags As Long) As Long

    But they do not tell you how to set the flag SWP_NOZORDER. Does anyone know of a good resource that will list them. I mainly need the 'SWP_' flags and the 'HWND_' flags. I hope my question is understandable. Thanks for any help.

    JK


  2. #2
    Hyperactive Member
    Join Date
    Jun 1999
    Posts
    308
    Hi, JJK.

    Check this site, there is a sample and an explanation:

    http://www.vbapi.com/ref/s/setwindowpos.html

    Larisa

  3. #3
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    Use the API Viewer, If you got to Addin Manager in the addins menu one of the things on the list is the API Viewer, this is a great reference and it stops you having to type stuff in all the time.

  4. #4

    Thread Starter
    Member
    Join Date
    Mar 2000
    Posts
    62
    Thank you both for your help. I can't believe i forgot about the API Viewer. That has everything. It even expects you to copy stuff to the project developer. Thanks again.

    JK

  5. #5
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Lightbulb

    Unfortunately, API view doesn't have everything listed. Also, watch out for the wrong declaration of some of the functions.

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