Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 Always on top OVER a fullscreen app???
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

shump
Neophyte

2 Posts

Posted - Jan 13 2005 :  4:15:55 PM  Show Profile  Reply with Quote
I've search your forums and i only find the opposite of this problem, but Im trying to make a form that sits on top of a fullscreen app..

  
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 SWP_NOMOVE = 2  
Const SWP_NOSIZE = 1  
Const FLAGS = SWP_NOMOVE Or SWP_NOSIZE  
Const HWND_TOPMOST = -1  
Const HWND_NOTOPMOST = -2  
  
Private Sub Form_Load()  
Timer1.Enabled = True
End Sub
  
Private Sub Timer1_Timer()  
Dim result As Long
result = SetWindowPos(Form1.hwnd, HWND_TOPMOST, 0, 0, 0, 0, FLAGS)  
End Sub
  


yadda yadda.
Any help will be most appriciated.

What its for: To display Boss Counters (F5-F8) for newbies who play HostileSpace.


-Nex

Eric Coleman
Gladiator

USA
811 Posts

Posted - Jan 13 2005 :  4:44:11 PM  Show Profile  Visit Eric Coleman's Homepage  Reply with Quote
It's not possible. The reason for making a game "full screen" is to gain exclusive access to the video card, which prevents background programs such as yours from overlaying graphics.

Go to Top of Page

shump
Neophyte

2 Posts

Posted - Jan 13 2005 :  4:45:18 PM  Show Profile  Reply with Quote
>.< there has to be a way it's been done before i had a prgram once that did exactly that.
Go to Top of Page

VBStrider
Neophyte

6 Posts

Posted - Jan 13 2005 :  4:45:50 PM  Show Profile  Visit VBStrider's Homepage  Reply with Quote
If you are using DirectX, simply assign a clipper to the primary surface and you will be able to see any controls you put on it/other forms.

I'm not sure if this is what you wanted though :/

EDIT:
Nevermind, that was obviously not what you ment.

VBStrider

Edited by - VBStrider on Jan 13 2005 4:47:16 PM
Go to Top of Page

cbx
Swordmaster

Canada
296 Posts

Posted - Jan 15 2005 :  06:57:26 AM  Show Profile  Visit cbx's Homepage  Send cbx an ICQ Message  Click to see cbx's MSN Messenger address  Send cbx a Yahoo! Message  Reply with Quote
I think I found what you are looking for. But just like you I thought it could be done in D3D as well, unfortunatly it can only be done in fullscreen directdraw.

http://sdks.icarusindie.com:2004/index.php?sortby=title&dir=sdks%2Fdirectx+8.1%2FDXF%2FDXSDK%2Fsamples%2FMultimedia%2FDirectDraw%2FFullScreenDialog%2F

http://www.icarusindie.com/

Created by: X
http://www.createdbyx.com/

Edited by - cbx on Jan 15 2005 06:58:32 AM
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.11 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.