Sign in to follow this  
helloworld123

[Win32 API] Creating timed messagebox (disappears after N sec.)

Recommended Posts

How do you create a messagebox, that auto-disappears after, say, 5 seconds? (and how do you make the "Ok" button disappear?) Any workaround? I need to make something like the Alert box in J2ME. It just displays a window with a text. (I'm going to use it for something like: "connecting" status message, etc.) Thanks!

Share this post


Link to post
Share on other sites
Quote:
Original post by helloworld123
sorry but i don't know how to use usenet...:(


???
Usenet exists for 30 years and all Win32 api questions have been answered since!
Timed messagebox is a classic one.
You access with Google Groups or Outlook Express or etc...

Share this post


Link to post
Share on other sites
@george135 - please stop sending me private messages (it's becoming spam-like already) about going to that usenet link. as i've said before, i don't know how to use usenet. and i've solved my problem already. you are starting to annoy me.

really? all win32 api questions have been answered? my question is a classic? why couldn't you help copy/paste the solution here then?

oh...right...you want me to go there...

Share this post


Link to post
Share on other sites
A little off topic here, but I fail to see how usernet would be any better help than the GameDev.Net community we have here.

And to the OP: Yeah, the best way to solve the problem is excactly what you've done (Assuming you're using the DialogBox or DialogBoxParam function to create the dialog).
The MessageBox function is just a simple helper function, so it doesn't have much in the way of customisation available.

Share this post


Link to post
Share on other sites
Contrary to popular belief, usenet is not for researching problems. It's for when you are feeling good about yourself and you need to have random morons call you a f**kin idiot in order to bring yourself back to Earth. See: sci.physics.relativity

Share this post


Link to post
Share on other sites
Quote:
Original post by taby
Contrary to popular belief, usenet is not for researching problems. It's for when you are feeling good about yourself and you need to have random morons call you a f**kin idiot in order to bring yourself back to Earth. See: sci.physics.relativity


QFT.

Seriously, the last time I asked a question on usenet, I then followed up with another question because the author's response was a little vague. I was flamed with stuff like "why don't you read what I tell you!!!!".

I was tempted to respond again and suggest anger management classes. [smile]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this