Is there a way I can have a form show up over top of a full-screen game or something, without disrupting the game, but so there's like a pop-up, so that when I receive an IM in the background or something, it has a pop-up that doesn't interupt my game. Is there a way I can do this?
Did you find a post in this thread useful? Please click Rate This Post.
Set the border style of a form to None and then when you maximize it it will go over everything (even the taskbar). Then you can combine it with Always on Top to make it stay over everything. You can also implement the blocking of opening the start menu, task swtiching and so on to create a full game effect.
I don't know if anybody has heard of it before, but there is a program called "Xfire" www.xfire.com, anyways it has in game instant messaging, so it shows a popup and what person said it, and when you press a hotkey, it brings up an instant message thing overtop of your game, but anyways the popup is what I want to do, and make it so that you can see it overtop of the game, yet still be playing the game, and when you press a hotkey (I know how to do this) it brings something up, anyways I've attatched a picture of xfire to show you what I mean.
Did you find a post in this thread useful? Please click Rate This Post.
Will the always on top method work though? Like MSN's popups used to mess up full screen games, but xfire made it work perfect, so I'm wondering if the always on top will work.
Did you find a post in this thread useful? Please click Rate This Post.
I guess the only way to see is to try. Make a timer, set it to 30 seconds or so, and have it pop up a new window and on load (of that popup) set it Always On Top. Then start the game and the timer.
i found this on allapi.net, but it will only print text and it flickers
you can probably use the same method and BitBlit on to the same hDC as your game
but i cant think of a way to get your whole form on top ?
VB Code:
'This Project needs
'- two timers, interval=100
'- a button
'in general section
Private Type POINTAPI
x As Long
y As Long
End Type
Private Declare Function GetActiveWindow Lib "user32" () As Long
Private Declare Function GetWindowDC Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function Ellipse Lib "gdi32" (ByVal hdc As Long, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
Private Declare Function TextOut Lib "gdi32" Alias "TextOutA" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal lpString As String, ByVal nCount As Long) As Long
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
you find the window of XFire messanger with it (by its name). Then you right click on it and click messages
you will see a whole lot of stuff there, but try and remember the number on the left and quickly start up your game and ask a friend to message you. Then shrink the game and pause spy++ and read along until you see something that might be of interest