On Tue, 18 Jan 2005 05:28:57 -0500, "James" <ho******@bellsouth.net>
wrote:
Made a screensave in VB for my work puter (simple variation on the bouncing
ball) and it works great except for one small detail. When I have a new mail
notification or simlar system msgbox popup the popup appears over the
running screensaver and the taskbar becomes visible. Doesn't cause any
problems but it looks really weird.
I have all the standard stuff programmed in (zOrder, etc) following most of
the snippits available on the net but I can't find anything related to this.
Any ideas?
Here's what I use. I don't know all the details - never had reason to,
my needs are simple - but you can read up on this at MSDN or AllAPI.net.
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
Const HWND_TOPMOST = -1
Private Sub Form_Load()
res& = SetWindowPos(Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, FLAGS)
End Sub
--
auric underscore underscore at hotmail dot com
*****
Fool me once, shame on you. Fool me twice, watch it! I'm huge!