CS.RIN.RU - Steam Underground Community
http://cs.rin.ru/forum/

[VB6] Appear on top API
http://cs.rin.ru/forum/viewtopic.php?f=14&t=10185
Page 1 of 1

Author:  |2eM!x [ Sunday, 23 Jan 2005, 05:41 ]
Post subject:  [VB6] Appear on top API

Okay guys,
i have an api that makes a form appear on top:

visual basic code:Const HWND_TOPMOST = -1
Const HWND_NOTOPMOST = -2
Const SWP_NOSIZE = &H1
Const SWP_NOMOVE = &H2
Const SWP_NOACTIVATE = &H10
Const SWP_SHOWWINDOW = &H40
Private Declare Sub 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)

Private Sub Form_Activate()
'KPD-Team 1998
'URL: http://www.allapi.net/
'E-Mail: KPDTeam@Allapi.net
'Set the window position to topmost
SetWindowPos Me.hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE
End Sub



this does work, but it does not appear on top of ogl or dx games and i was wondering how..
if impossible how can i minimize the game (itll be an option button) when time runs out?
like sendkey {windows}? hehe

thanks

Page 1 of 1 All times are UTC + 3 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/