Introduction
I had written a program like PowerPoint, which needed some code for image slide show. In this demo project I implemented 20 transitional effects.
Using the code
To use the code just add ShowStyle.cpp and ShowStyle.h to your project. Then call MagicShow
function to slide-show image.
bool MagicShow( HDC hSrcDC , int x , int y , HDC hDestDC ,
int xd , int yd , int width , int height ,
int iDelay, int iStep, int iStyle );
Parameter |
Type |
Description |
hSrcDC |
HDC |
Handle to the source device context |
x |
int |
Specifies the logical x-coordinate of the upper-left corner of the source rectangle |
y |
int |
Specifies the logical y-coordinate of the upper-left corner of the source rectangle |
hDestDC |
HDC |
Handle to the destination device context |
xd |
int |
Specifies the logical x-coordinate of the upper-left corner of the destination rectangle |
yd |
int |
Specifies the logical y-coordinate of the upper-left corner of the destination rectangle |
width |
int |
Specifies the logical width of the source and destination rectangles |
height |
int |
Specifies the logical width of the source and destination rectangles |
iDelay |
int |
The delay time per step |
iStep |
int |
Different for every style |
iStyle |
int |
Slide style |
Visit this link for my other Win32 software.
History
Date Posted: 03-03-2003
Copyright
The code is free, if you want to change the source code in order to improve the features, performance, etc., please send me the new source code so that I can have a look at it. The changed source code should contain descriptions of what you have changed, and of course your name. The only thing you MAY NOT CHANGE is the ORIGINAL COPYRIGHT INFORMATION.