-
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
-
Hi, JJK.
Check this site, there is a sample and an explanation:
http://www.vbapi.com/ref/s/setwindowpos.html
Larisa
-
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.
-
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
-
Unfortunately, API view doesn't have everything listed. Also, watch out for the wrong declaration of some of the functions.