SetWindowPos - 設定視窗位置
---------------------------------------------------------------------------
宣告式:
Declare Function SetWindowPos Lib "user32" Alias "SetWindowPos" _
(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
設為最上層顯示 :
SetWindowPos(Me.hwnd, -1, 0, 0, 0, 0, 3)
取消最上層顯示 :
SetWindowPos(Me.hwnd, -2, 0, 0, 0, 0, 3)
(&H3 = &H1 + &H2)
wFlag:
&H1 - 忽略x,y
&H2 - 忽略cx,cy
&H4 - 忽略hWndInsertAfter
((more infs.))
★Kit↘..