【文件属性】:
文件名称:摩天轮恶搞程序
文件大小:34KB
文件格式:ZIP
更新时间:2016-10-26 12:47:09
程序
#include
#include
#include
// Function prototypes
void change_hor_screen(int);
void change_ver_screen(int);
void prepare_screen();
void horizontal_flipped();
void vertical_flipped();
int dcHorzres; // HORZRES
int dcVertres; // VERTRES
HDC hDC;
HDC hMemoryDC;
HBITMAP hBitmap;
void change_hor_screen(int x)
{
int width;
int height;
int result;
width = dcHorzres;
height = dcVertres;
result = width - x;
x = ((width + x )% width) % width;
BitBlt(hDC, x, 0, width - x, height, hMemoryDC, 0, 0, SRCCOPY);
BitBlt(hDC, 0, 0, x, height, hMemoryDC, width - x, 0, SRCCOPY);
return;
}
【文件预览】:
摩天轮转转转.exe