 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Tom Grills Guest
|
Posted: Sat Apr 29, 2006 2:03 pm Post subject: Drawing above the Screen Context of another App... |
|
|
I may be chasing windmills here but I figured I'd ask....
I have a game that uses DirectX and is full-screen. I am trying to develop
a notification message that will pop up over the game screen when, for
example, I receive a specific email or a background app has finished
processing. (I don't want to have to Alt-Tab to keep checking on status or
emails and I want to do something more elegant than an audible solution).
So far, I have tried to draw into the DC of the game window and also the DC
of the screen using GetDC and, although I have succeeded in drawing a
rectangle in the view area, I cannot get rid of the flicker when the game
screen repaints.... So obviously, trying to draw into the DC of the game,
or even the screen context, does not provide an acceptable solution. I have
thought about intercepting the WM_PAINT message for the game, but I can't
guarantee that my draw would be AFTER the game draw, so it seems that avenue
is a dead end. Now, I now it is POSSIBLE to accomplish this as I have seen
it done in other games using DirectX (my attempts to contact the developers
of those apps have, understandably, met with a reluctance on their part to
provide direction).
I'm throwing this out in here to see if there are any other avenues I can
try. Maybe creating some sort of transparent overlay window which is the
topmost window that will draw my image in its position while the game draws
behind it? If anyone can provide some ideas (and perhaps some code
snippets) as to what may work, I'd greatly appreciate it...
Many Thanks,
TomG |
|
| Back to top |
|
 |
Nicholas Sherlock Guest
|
Posted: Sun Apr 30, 2006 12:03 am Post subject: Re: Drawing above the Screen Context of another App... |
|
|
Tom Grills wrote:
| Quote: | I have a game that uses DirectX and is full-screen. I am trying to develop
a notification message that will pop up over the game screen
|
AFAIK, this can be accomplished by installing code hooks into the
DirectX functions for updating the screen, so that you can do your
drawing after the screen is updated (Or even use DirectX functions to do
your drawing). The screen capture product "FRAPS" does this as part of
its operation. You can do code hooking with Madshi's madCodeHook
library: http://www.madshi.net
Cheers,
Nicholas Sherlock
--
http://www.sherlocksoftware.org |
|
| Back to top |
|
 |
Chris Trueman Guest
|
Posted: Wed May 03, 2006 9:03 am Post subject: Re: Drawing above the Screen Context of another App... |
|
|
Do you mean something like Outlooks tray popup? This pops up over the
DirectX games I play as does my Yahoo IM notification. So while I don't
have a solution for you, a couple of apps certainly do it.
Chris.
| Quote: | I have a game that uses DirectX and is full-screen. I am trying to
develop a notification message that will pop up over the game screen
when, for example, I receive a specific email or a background app has
finished processing. (I don't want to have to Alt-Tab to keep checking
on status or emails and I want to do something more elegant than an
|
<snip> |
|
| Back to top |
|
 |
Herre de Jonge Guest
|
Posted: Thu May 04, 2006 1:14 am Post subject: Re: Drawing above the Screen Context of another App... |
|
|
If you can't solve it by using a notification window, maybe you
should think about using different signals. The first ones that
come to mind are:
- audible signals
- keyboard lights: You can even binary encode the number of mail
messages you have to a maximum of 7 Problem would be that
you don't keep checking your keyboard lights during a game.  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|