Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
SplashWindow.cpp
Package: 44757463.rar [view]
Upload User: lj3531212
Upload Date: 2007-06-18
Package Size: 346k
Code Size: 1k
Category:
Graph Drawing
Development Platform:
Visual C++
- /* Hello, If you have any Question?
- Welcome E-mail me, My e-mail is r39710@giga.net.tw
- Thank you Bye
- */
- #include<stdafx.h>
- #include<mmsystem.h>
- #include"SplashWindow.h"
- #include"resource.h"
- BEGIN_MESSAGE_MAP(CSplashWindow, CWnd)
- ON_WM_PAINT()
- END_MESSAGE_MAP()
- CSplashWindow::CSplashWindow()
- {
- m_Bitmap.LoadBitmap(MAKEINTRESOURCE(IDB_SPLASH2)); //Load Bitmap
- m_Bitmap.GetBitmap(&bmBitmap); //Get Bitmap Info
- /*Show Splash Window and Play SplashWindow.wav*/
- // ::PlaySound("SplashWindow.wav", NULL, SND_ASYNC | SND_FILENAME);
- }
- CSplashWindow::~CSplashWindow()
- {
- }
- void CSplashWindow::CreateSplash()
- {
- //Create Splash Window
- CreateEx(0,
- AfxRegisterWndClass(
- 0,
- AfxGetApp()->LoadStandardCursor(IDC_UPARROW)),
- "SplashWindow Sample",
- WS_POPUP,
- 0,
- 0,
- bmBitmap.bmWidth, //Bitmap Width = Splash Window Width
- bmBitmap.bmHeight, //Bitmap Height = Splash Window Height
- NULL,
- NULL,
- NULL);
- }
- void CSplashWindow::OnPaint()
- {
- CPaintDC dc(this);
- MemDC.CreateCompatibleDC(NULL); //Create Memory DC
- Old_Bitmap = MemDC.SelectObject(&m_Bitmap); //Select DC
- dc.StretchBlt(0,
- 0,
- bmBitmap.bmWidth,
- bmBitmap.bmHeight,
- &MemDC,
- 0,
- 0,
- bmBitmap.bmWidth,
- bmBitmap.bmHeight,
- SRCCOPY);
- MemDC.SelectObject(Old_Bitmap); //Select Bitmap
- }