API函数的参数取值问题
例如一个函数声明如下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
从MSDN查到hWndInsertAfter可取以下值:
HWND_BOTTOM, HWND_TOP, HWND_TOPMOST, HWND_NOTOPMOST
但使用时却不能直接使用上面值,如想取值为HWND_TOPMOST,必须使用-1,这个-1是怎么查得的呢?