BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Drawing above the Screen Context of another App...

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Tom Grills
Guest





PostPosted: Sat Apr 29, 2006 2:03 pm    Post subject: Drawing above the Screen Context of another App... Reply with quote



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





PostPosted: Sun Apr 30, 2006 12:03 am    Post subject: Re: Drawing above the Screen Context of another App... Reply with quote



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





PostPosted: Wed May 03, 2006 9:03 am    Post subject: Re: Drawing above the Screen Context of another App... Reply with quote



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





PostPosted: Thu May 04, 2006 1:14 am    Post subject: Re: Drawing above the Screen Context of another App... Reply with quote

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 Wink Problem would be that
you don't keep checking your keyboard lights during a game. Sad
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.