Re: how to change Z-orders of Windows
- From: "Mark Yudkin" <myudkinATcompuserveDOTcom@xxxxxxxxxxxxxx>
- Date: Mon, 24 Apr 2006 08:30:18 +0200
Review the Show method in the VB6 Reference for details on specifying owner
forms.There is no need to use thE API.
BTW, SetWindowPos merely changes the z-order, not the ownership. The API is
SetParent. However, you do not need it for VB6 windows, as the Show method
already solves the problem.
"Cobalt" <xiaosongw2000@xxxxxxx> wrote in message
news:OPK2drsZGHA.4752@xxxxxxxxxxxxxxxxxxxxxxx
Hi,Everyone,I have a question about how to change Z-orders of Windows.
The question is discribed below in details:
Form2 is loaded in subroutine of Form1 :
Private Sub Form_Load()
Load form2 'it's vbModeless
End Sub
How can I realize that Form2 is always in front of Form1, whether Form2 is
overcasted by other programs or not.That is to say, Form2 is like to be
loaded in subroutine of Form1 by Form2.Show [vbModal],but Form1 can still
be clicked and make reponse to the clicking.
I think it may be a question of changing Z-orders of windows,but the API
function of SetWindowPos is the only one that I am familiar to in Z-order
operation. It's seem that more functions are needed besides SetWindowPos.
So,What shall I do?
Thanks a lot.
©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤
Bridge Eng.,Tongji Univ.,Shanghai,PRC
Cobalt
E-mail:xiaosongw2000@xxxxxxx
©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤
.
- Follow-Ups:
- Re: how to change Z-orders of Windows
- From: Cobalt
- Re: how to change Z-orders of Windows
- References:
- how to change Z-orders of Windows
- From: Cobalt
- how to change Z-orders of Windows
- Prev by Date: Re: Please help help urgent on Japanese GDI function
- Next by Date: Re: how to change Z-orders of Windows
- Previous by thread: Re: how to change Z-orders of Windows
- Next by thread: Re: how to change Z-orders of Windows
- Index(es):
Relevant Pages
|