Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15847

how to zorder vb6 Controls,use SetWindowPos api?

$
0
0
text1,text2,text3,text4
how to change zorder by code?
text3 put down= text1,text3,text2,text4

tex1 put up=text3,text1,text2,text4
text1 movetop=text3,text2,text4,text1
like ado recordset
movefirst,movelast,movenext

Code:

Private Sub List1_DblClick()
Dim v As Long
Select Case List1.ListIndex
Case 0
v = HWND_TOP
Case 1
v = HWND_BOTTOM
Case 2
v = HWND_NOTOPMOST
Case 3
v = HWND_TOPMOST
End Select
SetWindowPos Command1.hwnd, v, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE Or SWP_NOZORDER


Viewing all articles
Browse latest Browse all 15847

Trending Articles