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

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

?? windowanima.cpp

?? 白云水庫電力管理系統--baiyunPowermanagementsystem
?? 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一区二区三区免费野_久草精品视频
久久久美女毛片| 国模冰冰炮一区二区| 欧美性色欧美a在线播放| 18成人在线视频| 在线亚洲一区二区| 午夜欧美电影在线观看| 69av一区二区三区| 青青草国产精品亚洲专区无| 日韩三级精品电影久久久| 狠狠色综合日日| 亚洲国产激情av| 色婷婷精品大在线视频| 午夜在线电影亚洲一区| 日韩精品一区二区在线| 盗摄精品av一区二区三区| 中文字幕一区二区三区乱码在线 | 亚洲精品视频在线观看网站| 亚洲chinese男男1069| 日韩欧美一卡二卡| 国产ts人妖一区二区| 亚洲美女偷拍久久| 欧美一级夜夜爽| 一区二区三区在线视频免费 | 国产乱人伦精品一区二区在线观看| 久久久电影一区二区三区| 色国产综合视频| 久草热8精品视频在线观看| 国产精品麻豆久久久| 4438x亚洲最大成人网| 激情久久五月天| 亚洲成人免费视| 国产欧美视频一区二区三区| 欧美性猛交xxxx黑人交| 国产精品69久久久久水密桃| 亚洲国产精品久久久久婷婷884| 欧美成人女星排行榜| 91官网在线免费观看| 国内精品久久久久影院薰衣草| 欧美色区777第一页| 国产传媒欧美日韩成人| 日一区二区三区| 国产精品久久久久久久午夜片 | 精品一区二区三区视频| 一区二区视频免费在线观看| 久久嫩草精品久久久精品| 在线观看日韩电影| www.在线成人| 精品一区二区在线观看| 亚洲高清免费观看| 在线观看不卡视频| 成人综合婷婷国产精品久久蜜臀| 奇米色一区二区三区四区| www日韩大片| 91麻豆精品国产91久久久使用方法| 成人黄色国产精品网站大全在线免费观看 | 波多野洁衣一区| 中文在线一区二区| 欧美变态tickle挠乳网站| 欧美视频精品在线观看| 成人黄色综合网站| 成人污视频在线观看| 国产一区二区三区在线观看免费| 婷婷综合五月天| 一区二区三区在线观看动漫| 国产精品美女久久久久久久网站| 久久蜜桃一区二区| 欧美va在线播放| 欧美一区二区免费视频| 激情av综合网| 国产在线国偷精品免费看| 免费成人在线影院| 美女在线视频一区| 喷水一区二区三区| 午夜精品久久久久久久久久久| 亚洲一区二区三区四区在线观看| 18欧美亚洲精品| 亚洲美女视频一区| 亚洲免费观看高清完整版在线观看| 国产欧美中文在线| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 日韩欧美国产系列| 日韩午夜小视频| 欧美一区二区三区在线看| 欧美一区二区三区在| 日韩一区二区三区在线视频| 欧美tickling网站挠脚心| 精品成人一区二区| 国产欧美日韩综合精品一区二区| 亚洲国产精品成人久久综合一区| 中文字幕中文字幕一区| 亚洲人成小说网站色在线| 一级特黄大欧美久久久| 午夜一区二区三区在线观看| 青青草伊人久久| 国产综合一区二区| 亚洲精品高清视频在线观看| 一区二区三区四区乱视频| 一区二区三区成人| 日本不卡1234视频| 国产精品18久久久久久久久| 成人av在线资源网| 欧美影院精品一区| 欧美成人艳星乳罩| 国产精品久久午夜| 亚洲福利视频一区二区| 美女一区二区视频| 成人av在线看| 欧美日本精品一区二区三区| 2024国产精品| 欧美伊人久久大香线蕉综合69| 国产精品自拍网站| 色综合亚洲欧洲| 欧美一区二区视频在线观看2020| 国产欧美日韩三级| 亚洲bt欧美bt精品| 成人短视频下载| 欧美日韩aaa| 中文在线资源观看网站视频免费不卡| 亚洲一区二区三区中文字幕在线| 久久国产麻豆精品| 91亚洲精品乱码久久久久久蜜桃| 欧美一区二区三区思思人| 中文字幕av一区二区三区免费看 | 亚洲欧洲制服丝袜| 久久成人麻豆午夜电影| 色婷婷激情综合| 国产日韩av一区二区| 午夜激情一区二区三区| 成人av在线一区二区| 欧美va亚洲va| 午夜视频一区二区| 91麻豆6部合集magnet| 久久这里只有精品首页| 亚洲成a人片在线观看中文| 丁香另类激情小说| 精品成人在线观看| 日本亚洲电影天堂| 色老汉一区二区三区| 国产日韩欧美不卡在线| 人人超碰91尤物精品国产| 色一情一乱一乱一91av| 国产日韩欧美高清| 激情综合色综合久久| 欧美日韩精品欧美日韩精品一| 亚洲柠檬福利资源导航| 国产精品1区2区3区在线观看| 欧美大片拔萝卜| 日韩电影免费一区| 欧美三片在线视频观看| 亚洲精品视频一区| 波多野结衣中文字幕一区二区三区| 久久综合色8888| 久久黄色级2电影| 欧美一区二区日韩| 免费成人你懂的| 91超碰这里只有精品国产| 一区二区三区四区视频精品免费 | 国产精品久久精品日日| 国产激情精品久久久第一区二区 | 亚洲一区二区美女| 日本乱人伦一区| 亚洲久草在线视频| 91麻豆蜜桃一区二区三区| 欧美激情一区二区三区不卡 | 日韩视频免费直播| 天天影视网天天综合色在线播放| 欧美性一二三区| 亚洲国产一区二区三区| 欧美少妇bbb| 亚洲成av人片一区二区三区| 日本aⅴ亚洲精品中文乱码| 欧美一区二区三区公司| 裸体健美xxxx欧美裸体表演| 91精品国产入口| 久久精品国内一区二区三区| 欧美成人三级在线| 国产乱色国产精品免费视频| 国产精品污www在线观看| www.日韩大片| 亚洲三级理论片| 91国产福利在线| 秋霞午夜鲁丝一区二区老狼| 日韩午夜小视频| 国产xxx精品视频大全| 中文字幕视频一区| 欧美日韩一二区| 久久成人免费网| 国产精品色哟哟网站| 亚洲资源在线观看| 91精品国产乱| 国产一区二区不卡| 午夜精品一区在线观看| 欧美一区二区性放荡片| 国产精选一区二区三区| 国产精品久久久久一区二区三区| 欧美亚洲动漫精品| 麻豆免费看一区二区三区| 欧美激情中文字幕一区二区| 在线免费视频一区二区| 免费在线成人网|