[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Open a splash screen

Posted on 2003-11-20
2
Medium Priority
?
358 Views
Last Modified: 2010-04-02
How do I open a spash screen window using C++ I am learning this subject on my own not as an assignment. I'd like to open the splash screen and have a timed interval in which it displays then dissappears. Any help?
0
Comment
Question by:johnnys123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
georgiek50 earned 200 total points
ID: 9794298
You would need to load a bitmap (easiest way) and BitBlt it to the screen before you call ShowWindow in WinMain like so

// Get the monitor's device context
HDC hdcDesktop = GetWindowDC(NULL);

// Create a compatible one
HDC hdcSplash   = CreateCompatibleDC(hdcDesktop);

// Select your bitmap into the compatible one
SelectObject(hdcSplash, hBitmap);

// Use BitBlt to output to the screen
(you should look this function up on MSDN, it explains it better than I will)

I am assuming you know how to load a bitmap and clean up after yourself! If not, respond and I'll fill in the gaps.
0
 

Author Comment

by:johnnys123
ID: 9800423
that was very helpful thank you very much
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question