954,506 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Cant find right Message handle.

I want to display an image right after the dialog is drawn and keep it for like 3 secs (an intro).

I know how to do everything but i can't find a message that is sent when the MFC dialog is displayed, "NOT" about to display.

I can show messages and stuff after dialog has been created by calling this->ShowWindow(TRUE); in OnInitDialog(),
but i cant display an image after the dialof has been displayed untill Return true has been called.

so, is there a way to display an intro after the dialog has been created?

so,can any one help xD?

Help will be appreciated.

AntiBNI
Newbie Poster
5 posts since Jan 2008
Reputation Points: 10
Solved Threads: 0
 

Help?

AntiBNI
Newbie Poster
5 posts since Jan 2008
Reputation Points: 10
Solved Threads: 0
 

You could display the message in another thread. Before calling the dialog's DoModal() create a thread and have it display the message for however long you want it visible. Call win32 api function CreateThread() to do that. The function isn't very difficult to use because some of the parameters can be just 0 so that it uses default values.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You