亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? windowanima.cpp

?? 一個簡單的demo
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
		for(int seg=0;seg<nSegments;seg++){
			if(a>0)
				seg=nSegments;
			int nStepHeight=0;
			int nStepOffset=0;
			for(int i=0;i<seg;i++){
				int hd=wy+cumulator+nStepHeight;
				if(hd>=wy) {
					m_pdcScreen->BitBlt(wx+nStepOffset,hd,segWidth,m_czWnd.cy,
						m_pdcMemWnd,nStepOffset,0,SRCCOPY);
					Sleep(nSleeptime);
				} else {
					m_pdcScreen->BitBlt(wx+nStepOffset,wy,segWidth,m_czWnd.cy,
						m_pdcMemWnd,nStepOffset,0,SRCCOPY);
					Sleep(nSleeptime);						
				}
				nStepHeight+=step;
				nStepOffset+=segWidth;
			}

			nStepHeight=0;
			nStepOffset=0;

			for(i=0;i<seg;i++){
				int hd=cumulator2+nStepHeight+wy+m_czWnd.cy;
				if(hd>=m_rectWnd.bottom-step)
					m_pdcScreen->BitBlt(wx+nStepOffset,hd,segWidth,step,
						m_pdcMemScr,wx+nStepOffset,hd,SRCCOPY);

				nStepHeight+=step;
				nStepOffset+=segWidth;
			}
			cumulator-=step;
			cumulator2=cumulator-step;
		}
	}
}

/************************************************************************************
	Wipes the window into oblivion from right to left
************************************************************************************/
void CWindowAnima::WipeLeft(int nWipeFactor, int nSleeptime)
{
	int wx=m_rectWnd.left, wy=m_rectWnd.top;
	int step=nWipeFactor;
	int nEndofWnd=m_rectWnd.right;

	// paint a copy of the window onto the screen
	PrintWindow();

	// while our leftside indicator has not reached
	// the right side, paint the area behind the window
	// over the image of the window thereby making it
	// disappear
	for(int i=wx;i<=nEndofWnd;i+=step){
		m_pdcScreen->BitBlt(i,wy, step,m_czWnd.cy,
			m_pdcMemScr, i, wy, SRCCOPY);
		Sleep(nSleeptime);
	}
}

/************************************************************************************
	Wipes the window into oblivion from left to right
************************************************************************************/
void CWindowAnima::WipeRight(int nWipeFactor, int nSleeptime)
{
	int wx=m_rectWnd.left, wy=m_rectWnd.top;
	int step=nWipeFactor;
	int nStartofWnd=wx;

	PrintWindow();

	for(int i=m_rectWnd.right;i>=nStartofWnd;i-=step){
		m_pdcScreen->BitBlt(i,wy, step,m_czWnd.cy,
			m_pdcMemScr, i, wy, SRCCOPY);
		Sleep(nSleeptime);
	}
}

/************************************************************************************
	Wipes the window into oblivion from the top down
************************************************************************************/
void CWindowAnima::WipeDown(int nWipeFactor, int nSleeptime)
{
	int wx=m_rectWnd.left, wy=m_rectWnd.top;
	int step=nWipeFactor;
	int nBaseofWnd=m_rectWnd.bottom;

	PrintWindow();

	for(int i=wy;i<=nBaseofWnd;i+=step){
		m_pdcScreen->BitBlt(wx,i, m_czWnd.cx,step,
			m_pdcMemScr,wx, i, SRCCOPY);
		Sleep(nSleeptime);
	}
}

/************************************************************************************
	Wipes the window into oblivion from the bottom up
************************************************************************************/
void CWindowAnima::WipeUp(int nWipeFactor, int nSleeptime)
{
	int wx=m_rectWnd.left, wy=m_rectWnd.top;
	int step=nWipeFactor;
	int nTopofWnd=wy-step;

	PrintWindow();

	for(int i=m_rectWnd.bottom;i>=nTopofWnd;i-=step){
		m_pdcScreen->BitBlt(wx,i, m_czWnd.cx,step,
			m_pdcMemScr,wx, i, SRCCOPY);
		Sleep(nSleeptime);
	}
}

/************************************************************************************
	Chooses which Wipe animation to perform
************************************************************************************/
void CWindowAnima::Wipe(int nDirection, int nWipeFactor, int nSleeptime)
{
	// Do any pre-animation initialisations
	Initialise();

	if(nDirection==WA_RAND)
		nDirection=GetRandomDirection(6);

	switch(nDirection){
	case WA_LEFT:
		WipeLeft(nWipeFactor, nSleeptime);
		break;
	case WA_RIGHT:
		WipeRight(nWipeFactor, nSleeptime);
		break;
	case WA_UP:
		WipeUp(nWipeFactor, nSleeptime);
		break;
	case WA_DOWN:
		WipeDown(nWipeFactor, nSleeptime);
		break;
	case WA_HORZ:
		WipeHorz(nWipeFactor, nSleeptime);
		break;
	case WA_VERT:
		WipeVert(nWipeFactor, nSleeptime);
		break;
	}
}

/************************************************************************************
	UnWipes the window into view from left to right
************************************************************************************/
void CWindowAnima::UnWipeLeft(int nWipeFactor, int nSleeptime)
{
	int wx=m_rectWnd.left, wy=m_rectWnd.top;
	int step=nWipeFactor;

	for(int i=0;i<=m_czWnd.cx;i+=step){
		m_pdcScreen->BitBlt(m_rectWnd.right-i,wy, step,m_czWnd.cy,
			m_pdcMemWnd, m_czWnd.cx-i, 0, SRCCOPY);
		Sleep(nSleeptime);
	}
}

/************************************************************************************
	UnWipes the window into view from right to left
************************************************************************************/
void CWindowAnima::UnWipeRight(int nWipeFactor, int nSleeptime)
{
	int wx=m_rectWnd.left, wy=m_rectWnd.top;
	int step=nWipeFactor;

	for(int i=0;i<=m_czWnd.cx;i+=step){
		m_pdcScreen->BitBlt(wx+i,wy, step,m_czWnd.cy,
			m_pdcMemWnd, i, 0, SRCCOPY);
		Sleep(nSleeptime);
	}
}

/************************************************************************************
	UnWipes the window into view from the bottom up
************************************************************************************/
void CWindowAnima::UnWipeUp(int nWipeFactor, int nSleeptime)
{
	int wx=m_rectWnd.left, wy=m_rectWnd.top;
	int step=nWipeFactor;

	for(int i=0;i<=m_czWnd.cx;i+=step){
		m_pdcScreen->BitBlt(wx,m_rectWnd.bottom-i, m_czWnd.cx,step,
			m_pdcMemWnd, 0, m_czWnd.cy-i, SRCCOPY);
		Sleep(nSleeptime);
	}
}

/************************************************************************************
	UnWipes the window into view from the top down
************************************************************************************/
void CWindowAnima::UnWipeDown(int nWipeFactor, int nSleeptime)
{
	int wx=m_rectWnd.left, wy=m_rectWnd.top;
	int step=nWipeFactor;

	for(int i=0;i<=m_czWnd.cx;i+=step){
		m_pdcScreen->BitBlt(wx,wy+i, m_czWnd.cx,step,
			m_pdcMemWnd, 0, i, SRCCOPY);
		Sleep(nSleeptime);
	}
}

/************************************************************************************
	UnWipes the window into view from the top and bottom ends
************************************************************************************/
void CWindowAnima::UnWipeHorz(int nWipeFactor, int nSleeptime)
{
	int wx=m_rectWnd.left, wy=m_rectWnd.top;
	int step=nWipeFactor;

	int nSplit=m_czWnd.cy/2;

	int i=nSplit;
	int j=nSplit;
	for(int k=0; k<nSplit; k+=step){
		m_pdcScreen->BitBlt(wx, wy+i,m_czWnd.cx,step,
			m_pdcMemWnd,0,i,  SRCCOPY);
		m_pdcScreen->BitBlt(wx, wy+j,m_czWnd.cx,step,
			m_pdcMemWnd,0,j,  SRCCOPY);
		Sleep(nSleeptime);
		i-=step;
		j+=step;
	}
}

/************************************************************************************
	UnWipes the window into view from the left and right sides
************************************************************************************/
void CWindowAnima::UnWipeVert(int nWipeFactor, int nSleeptime)
{
	int wx=m_rectWnd.left, wy=m_rectWnd.top;
	int step=nWipeFactor;

	int nSplit=m_czWnd.cx/2;

	int i=nSplit;
	int j=nSplit;
	for(int k=0; k<nSplit; k+=step){
		m_pdcScreen->BitBlt(wx+i, wy,step,m_czWnd.cy,
			m_pdcMemWnd,i,0,  SRCCOPY);
		m_pdcScreen->BitBlt(wx+j, wy,step,m_czWnd.cy,
			m_pdcMemWnd,j,0,  SRCCOPY);
		Sleep(nSleeptime);
		i-=step;
		j+=step;
	}
}

/************************************************************************************
	Chooses which UnWipe animation to perform.
************************************************************************************/
void CWindowAnima::UnWipe(int nDirection, int nWipeFactor, 
						  int nSleeptime)
{
	// Do any pre-animation initialisations
	Initialise();

	if(nDirection==WA_RAND)
		nDirection=GetRandomDirection(6);

	switch(nDirection){
	case WA_LEFT:
		UnWipeLeft(nWipeFactor, nSleeptime);
		break;
	case WA_RIGHT:
		UnWipeRight(nWipeFactor, nSleeptime);
		break;
	case WA_UP:
		UnWipeUp(nWipeFactor, nSleeptime);
		break;
	case WA_DOWN:
		UnWipeDown(nWipeFactor, nSleeptime);
		break;
	case WA_HORZ:
		UnWipeHorz(nWipeFactor, nSleeptime);
		break;
	case WA_VERT:
		UnWipeVert(nWipeFactor, nSleeptime);
		break;
	}

	RestoreWindow(FALSE);
}

/************************************************************************************
	Wipes the window into oblivion from the top and bottom ends
************************************************************************************/
void CWindowAnima::WipeHorz(int nWipeFactor, int nSleeptime)
{
	int wx=m_rectWnd.left, wy=m_rectWnd.top;
	int step=nWipeFactor;

	PrintWindow();

	// add on an extra iteration to make sure it all fully
	// disappears
	int nSplit=(m_czWnd.cy/2)+step;

	int i=m_rectWnd.bottom;
	int j=m_rectWnd.top;
	for(int k=0; k<=nSplit; k+=step){
		m_pdcScreen->BitBlt(wx,i, m_czWnd.cx,step,
			m_pdcMemScr,wx, i, SRCCOPY);
		m_pdcScreen->BitBlt(wx,j, m_czWnd.cx,step,
			m_pdcMemScr,wx, j, SRCCOPY);
		Sleep(nSleeptime);
		i-=step;
		j+=step;
	}
}

/************************************************************************************
	Wipes the window into oblivion from the left and right sides.
************************************************************************************/
void CWindowAnima::WipeVert(int nWipeFactor, int nSleeptime)
{
	int wx=m_rectWnd.left, wy=m_rectWnd.top;
	int step=nWipeFactor;

	PrintWindow();

	// add on an extra iteration to make sure it all fully
	// disappears
	int nSplit=(m_czWnd.cx/2)+step;

	int i=m_rectWnd.right;
	int j=m_rectWnd.left;
	for(int k=0; k<=nSplit; k+=step){
		m_pdcScreen->BitBlt(i, wy,step,m_czWnd.cy,
			m_pdcMemScr,i,wy,  SRCCOPY);
		m_pdcScreen->BitBlt(j, wy,step,m_czWnd.cy,
			m_pdcMemScr,j,wy,  SRCCOPY);
		Sleep(nSleeptime);
		i-=step;
		j+=step;
	}
}

/************************************************************************************
	Grab a copy of the screen that another CWindowAnima object has gone to all the
	trouble of capturing.  Make sure (in debug mode) that some idiot hasn't passed
	us a pointer to an CWindowAnima object that hasn't got a screen image.
************************************************************************************/
BOOL CWindowAnima::CopyScreenCapture(CWindowAnima *pWA)
{
	ASSERT(pWA->m_pdcMemScr!=NULL);
	return InjectScreenImage(pWA->m_pdcMemScr);
}

/************************************************************************************
	Copy the image from the CDC object pointed to by pdcMemWnd into our member
	DC object m_dcMemWnd and update our member variables describing the windows
	position and size;
************************************************************************************/
BOOL CWindowAnima::InjectWindowImage(CDC *pdcMemWnd, CRect *prectWnd)
{
	CBitmap bmWindow;

	// get the width and height of the window in the other CWindowAnima object
	m_czWnd.cx=prectWnd->Width();
	m_czWnd.cy=prectWnd->Height();

	// copy it's position and size
	m_rectWnd.CopyRect(prectWnd);

	// remove our old window image if we had one
	if(m_pdcMemWnd!=NULL){
		m_pdcMemWnd->SelectObject(m_pOldBitmapWnd);
		delete m_pdcMemWnd;
	}

	m_pdcMemWnd=new CDC;

	bmWindow.CreateCompatibleBitmap(pdcMemWnd,m_czWnd.cx,m_czWnd.cy);

	m_pdcMemWnd->CreateCompatibleDC(pdcMemWnd);
	m_pOldBitmapWnd=m_pdcMemWnd->SelectObject(&bmWindow);

	// copy the window image from the other CWindowAnima object into our own
	// offscreen window image memory
	return m_pdcMemWnd->BitBlt(0,0,m_czWnd.cx,m_czWnd.cy,pdcMemWnd,0,0,SRCCOPY);
}

/************************************************************************************
	Replace a window's image and size with an image resource identified by
	nResID.  Useful if you wanted to animate the initial appearance of a window

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美一区二区在线观看| 欧美日韩第一区日日骚| 国产精品午夜电影| 国产盗摄一区二区| 亚洲视频电影在线| 欧美视频一区二| 男女男精品网站| 久久人人超碰精品| zzijzzij亚洲日本少妇熟睡| 亚洲男人的天堂av| 欧美日韩亚洲不卡| 激情欧美一区二区三区在线观看| 久久亚洲一区二区三区四区| 懂色av中文字幕一区二区三区| 国产精品麻豆久久久| 91黄色免费网站| 久久99精品久久久久久久久久久久| 2020日本不卡一区二区视频| 成人动漫一区二区| 婷婷六月综合亚洲| 日本一区二区免费在线| 在线中文字幕不卡| 韩国视频一区二区| 亚洲美女少妇撒尿| 精品日韩成人av| 99麻豆久久久国产精品免费 | 久久久久久久av麻豆果冻| 成人综合婷婷国产精品久久蜜臀 | 日本成人超碰在线观看| 久久久夜色精品亚洲| 欧美吻胸吃奶大尺度电影| 激情成人综合网| 亚洲女厕所小便bbb| 欧美精品一区二区三区蜜桃视频| 91视频一区二区| 精品在线观看视频| 亚洲午夜在线视频| 亚洲国产精品成人综合色在线婷婷 | 91精品国产综合久久福利软件| 国产一区欧美日韩| 亚洲一区二区免费视频| 日本一区二区三区高清不卡| 91麻豆精品国产自产在线| 成人av在线播放网址| 男女激情视频一区| 亚洲国产一区二区三区青草影视| 国产视频一区二区在线观看| 欧美一区二区在线免费观看| 色呦呦日韩精品| 丁香网亚洲国际| 精品亚洲成av人在线观看| 亚洲国产精品久久人人爱| 中文在线一区二区| 久久青草欧美一区二区三区| 欧美人伦禁忌dvd放荡欲情| 91亚洲国产成人精品一区二区三 | 久久99精品国产麻豆不卡| 一区二区激情视频| 自拍偷拍欧美激情| 国产欧美日韩亚州综合| 精品毛片乱码1区2区3区| 欧美精品久久久久久久久老牛影院| 色综合色综合色综合| 91香蕉国产在线观看软件| 成人高清免费观看| 成人动漫一区二区三区| 成人av在线影院| 成人污污视频在线观看| 国产黄人亚洲片| 国产成人亚洲综合色影视| 久久国产尿小便嘘嘘尿| 狂野欧美性猛交blacked| 免费成人你懂的| 久久 天天综合| 美国精品在线观看| 国产主播一区二区三区| 韩国中文字幕2020精品| 国产精品一级二级三级| 国产成人免费在线视频| 丁香天五香天堂综合| 99re8在线精品视频免费播放| 成人污污视频在线观看| 99re热视频精品| 欧美亚洲日本一区| 欧美精品在线一区二区三区| 91精品福利在线一区二区三区| 在线成人午夜影院| 精品久久国产字幕高潮| 久久精品亚洲麻豆av一区二区| 国产午夜精品一区二区| 亚洲欧洲成人自拍| 亚洲综合久久久久| 全国精品久久少妇| 国产精品一区二区不卡| 91最新地址在线播放| 欧美亚男人的天堂| 日韩一级黄色大片| 国产亚洲欧美日韩俺去了| 国产精品久久久久久久久动漫| 亚洲日本一区二区三区| 天天影视涩香欲综合网| 韩国欧美国产1区| 99久久精品99国产精品| 欧美日韩精品久久久| 精品成人在线观看| 最新不卡av在线| 日韩成人dvd| 成熟亚洲日本毛茸茸凸凹| 在线看日韩精品电影| 欧美岛国在线观看| 国产精品不卡在线观看| 午夜精品福利一区二区三区蜜桃| 黄页网站大全一区二区| 一道本成人在线| 亚洲精品一区在线观看| 日韩一区在线播放| 日本视频一区二区三区| 国产91清纯白嫩初高中在线观看 | 欧美色网一区二区| 国产视频亚洲色图| 午夜激情久久久| 成人国产精品免费网站| 欧美色综合影院| 国产人成一区二区三区影院| 亚洲综合清纯丝袜自拍| 国产91精品一区二区| 91精品视频网| 亚洲精品综合在线| 国产精品一区在线观看你懂的| 欧美日韩一区二区三区不卡| 久久久夜色精品亚洲| 日韩国产精品久久久| 91蝌蚪porny九色| 久久久久久久电影| 免费在线观看一区二区三区| 在线观看亚洲精品视频| 中文在线免费一区三区高中清不卡| 日韩av中文字幕一区二区三区| av一区二区三区四区| 久久综合九色综合欧美亚洲| 亚洲第一在线综合网站| 99精品久久久久久| 亚洲国产成人自拍| 经典一区二区三区| 91精品国产入口| 亚洲观看高清完整版在线观看| 成人性视频免费网站| 2020国产成人综合网| 青青草原综合久久大伊人精品优势 | 成人免费高清视频在线观看| 日韩欧美一区二区久久婷婷| 亚洲成人动漫精品| 欧美综合一区二区三区| 国产精品全国免费观看高清| 国产精品一级黄| 久久精品一区蜜桃臀影院| 国产乱码精品一区二区三区忘忧草| 日韩欧美中文一区二区| 日韩**一区毛片| 欧美一区二区三区视频在线观看| 午夜精品久久久久久久久久久| 欧美视频中文一区二区三区在线观看| 一区二区中文视频| 99久久精品免费看国产| 国产精品久久久久一区二区三区共| 国产精品一区二区视频| 久久精品夜色噜噜亚洲aⅴ| 国产一区二区三区蝌蚪| 久久久99精品免费观看不卡| 国产在线不卡一卡二卡三卡四卡| 欧美mv日韩mv亚洲| 激情综合色丁香一区二区| 欧美变态tickle挠乳网站| 久久精品国产一区二区| 久久久亚洲精品石原莉奈| 国产精品一区一区| 中文字幕人成不卡一区| 97久久精品人人爽人人爽蜜臀| 亚洲私人黄色宅男| 欧美日韩精品系列| 麻豆久久久久久| 精品国产污污免费网站入口 | 欧美日韩一区三区四区| 五月婷婷综合网| 欧美成人伊人久久综合网| 久久国产麻豆精品| 亚洲国产高清在线观看视频| 成人app网站| 亚洲综合免费观看高清完整版在线| 欧美日韩国产一区二区三区地区| 日韩成人免费电影| 国产日韩精品一区| 色吧成人激情小说| 免费亚洲电影在线| 欧美激情一区在线| 欧美性猛交xxxx黑人交| 蜜臀av性久久久久蜜臀av麻豆 | 欧美日韩视频专区在线播放| 日本一道高清亚洲日美韩| 欧美精品一区二区精品网|