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

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

?? setcolorstydlg.cpp

?? 一個LED樓宇亮化同步控制源碼
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
			m_rgbColor[2][index]=propSheet.m_prop3.Color[index];
			
		}
		for(i=0;i<int(m_count[2]);i++)
		{
	          m_tstyList[i]=List[2][i];//記錄下播放列表
		}
	  CString strTempName;
	  CString strTemp;
	  CString strTempA;
      for( index=0;index<3;index++)	
	  {	
	    strTempName.Format("%d",index+1);
    	strTemp.Format("%d",m_iHigh[index]);
		WritePrivateProfileString("Page"+strTempName,"H",strTemp,".\\Init.ini");
		strTemp.Format("%d",m_iWidth[index]);
		WritePrivateProfileString("Page"+strTempName,"W",strTemp,".\\Init.ini");
		strTemp.Format("%d",m_staPointx[index]);
		WritePrivateProfileString("Page"+strTempName,"X",strTemp,".\\Init.ini");
		strTemp.Format("%d",m_staPointy[index]);
		WritePrivateProfileString("Page"+strTempName,"Y",strTemp,".\\Init.ini");
			
		strTemp.Format("%d",m_actpage[index]);
		WritePrivateProfileString("Page"+strTempName,"act",strTemp,".\\Init.ini");
		//保存列表數 
		strTemp.Format("%d",m_count[index]);
	    WritePrivateProfileString("Page"+strTempName,"Count",strTemp,".\\Init.ini");
        //保存顏色
        strTemp.Format("%d",m_color[index].m_Red);
        WritePrivateProfileString("Page"+strTempName,"Red",strTemp,".\\Init.ini");
	    strTemp.Format("%d",m_color[index].m_Green);
        WritePrivateProfileString("Page"+strTempName,"Green",strTemp,".\\Init.ini");
	    strTemp.Format("%d",m_color[index].m_Blue);
        WritePrivateProfileString("Page"+strTempName,"Blue",strTemp,".\\Init.ini");

	    for(int index=0;index<int(m_count[0]);index++)
		{
	       strTemp.Format("%d",index);
		   strTempA.Format("%d",m_fstyList[index]);
		   ::WritePrivateProfileString("Page1List",strTemp,strTempA,".\\Init.ini");

		   strTempA.Format("%d",m_rgbColor[0][index].m_Red);
		   ::WritePrivateProfileString("Page1ColorList",strTemp+"r",strTempA,".\\Init.ini");
		   strTempA.Format("%d",m_rgbColor[0][index].m_Green);
		   ::WritePrivateProfileString("Page1ColorList",strTemp+"g",strTempA,".\\Init.ini");
		   strTempA.Format("%d",m_rgbColor[0][index].m_Blue);
		   ::WritePrivateProfileString("Page1ColorList",strTemp+"b",strTempA,".\\Init.ini");

		}
    	for(index=0;index<int(m_count[1]);index++)
		{
	       strTemp.Format("%d",index);
		   strTempA.Format("%d",m_sstyList[index]);
		   ::WritePrivateProfileString("Page2List",strTemp,strTempA,".\\Init.ini");

		   strTempA.Format("%d",m_rgbColor[1][index].m_Red);
		   ::WritePrivateProfileString("Page2ColorList",strTemp+"r",strTempA,".\\Init.ini");
		   strTempA.Format("%d",m_rgbColor[1][index].m_Green);
		   ::WritePrivateProfileString("Page2ColorList",strTemp+"g",strTempA,".\\Init.ini");
		   strTempA.Format("%d",m_rgbColor[1][index].m_Blue);
		   ::WritePrivateProfileString("Page2ColorList",strTemp+"b",strTempA,".\\Init.ini");
		}
        for(index=0;index<int(m_count[2]);index++)
		{
			strTemp.Format("%d",index);
			strTempA.Format("%d",m_tstyList[index]);
			::WritePrivateProfileString("Page3List",strTemp,strTempA,".\\Init.ini");
			
			strTempA.Format("%d",m_rgbColor[2][index].m_Red);
			::WritePrivateProfileString("Page3ColorList",strTemp+"r",strTempA,".\\Init.ini");
			strTempA.Format("%d",m_rgbColor[2][index].m_Green);
			::WritePrivateProfileString("Page3ColorList",strTemp+"g",strTempA,".\\Init.ini");
			strTempA.Format("%d",m_rgbColor[2][index].m_Blue);
			::WritePrivateProfileString("Page3ColorList",strTemp+"b",strTempA,".\\Init.ini");
		}
	}
	}
}

void CSetColorStyDlg::OnButtonRun() 
{
	// TODO: Add your control notification handler code here
	CClientDC dc(this);
	
	for (int i=0;i<3;i++)
	{
		run.m_color[i]=m_color[i];
	    run.m_count[i]=m_count[i];
		run.m_iHigh[i]=m_iHigh[i];
	    run.m_iWidth[i]=m_iWidth[i];
	    run.m_staPointx[i]=m_staPointx[i];
	    run.m_staPointy[i]=m_staPointy[i];
		run.m_actThread[i]=m_actpage[i];
	}
   for(i=0;i<int(m_count[0]);i++)   //區域1的節目列表
   {
	  run.m_fstyList[i]=m_fstyList[i];
   }

   for(i=0;i<int(m_count[1]);i++)    //區域2的節目列表
   {
	  run.m_sstyList[i]=m_sstyList[i];
   }

   for(i=0;i<int(m_count[2]);i++)   //區域3的節目列表
   {
	  run.m_tstyList[i]=m_tstyList[i];
   }
	//run.DoModal();
   for(i=0;i<int(m_count[0]);i++)//區域1的顏色列表
   {
	   run.m_rgbColor[0][i]=m_rgbColor[0][i];
   }

   for(i=0;i<int(m_count[1]);i++)//區域2的顏色列表
   {
	   run.m_rgbColor[1][i]=m_rgbColor[1][i];
   }

   for(i=0;i<int(m_count[2]);i++)//區域2的顏色列表
   {
	   run.m_rgbColor[2][i]=m_rgbColor[2][i];
   }
   run.m_winH=m_winH;
   run.m_winW=m_winW;
   
	run.Invalidate();

	//根據變量, 判斷線程是否已經啟動
	{
		if (run.sig[0] == FALSE)
		{
			if ( MessageBox(_T("是否從新開始運行區域一!"), _T("提示"), MB_YESNO) == IDNO )
			{
				
			}
			TerminateThread(run.m_pThread1->m_hThread, 0);
			run.sig[0] = TRUE;
		}

		if (run.sig[1] == FALSE)
		{
			if ( MessageBox(_T("是否從新開始運行區域二!"), _T("提示"), MB_YESNO) == IDNO )
			{

			}
			TerminateThread(run.m_pThread2->m_hThread, 0);
			run.sig[1] = TRUE;
		}

		if (run.sig[2] == FALSE)
		{
			if ( MessageBox(_T("是否從新開始運行區域三!"), _T("提示"), MB_YESNO) == IDNO )
			{
				
			}
			TerminateThread(run.m_pThread3->m_hThread, 0);
			run.sig[2] = TRUE;
		}
	}
	//運行線程
	run.StartPro();
}

void CSetColorStyDlg::OnButtonAreaSet() 
//設置區域基本信息
{
	// TODO: Add your control notification handler code here
	CsetSty dlg;
	dlg.m_fsth=m_iHigh[0];
	dlg.m_fstw=m_iWidth[0];
	dlg.m_fstx=m_staPointx[0];
	dlg.m_fsty=m_staPointy[0];
	dlg.m_winH=m_winH;
	dlg.m_winW=m_winW;
	dlg.m_winX=m_winX;
	dlg.m_winY=m_winY;

	if(1==m_actpage[0])
	{
	    dlg.m_fst = TRUE;
	}
	else
	{
		dlg.m_fst = FALSE;
	}

	dlg.m_scdh=m_iHigh[1];
	dlg.m_scdw=m_iWidth[1];
	dlg.m_scdx=m_staPointx[1];
	dlg.m_scdy=m_staPointy[1];
	if(1==m_actpage[1])
	{
	    dlg.m_scd=TRUE;
	}
	else
	{
		dlg.m_scd=FALSE;
	}

	dlg.m_thrh=m_iHigh[2];
	dlg.m_thrw=m_iWidth[2];
	dlg.m_thrx=m_staPointx[2];
	dlg.m_thry=m_staPointy[2];
	if(1==m_actpage[2])
	{
	    dlg.m_thr=true;
	}
	else
	{
		dlg.m_thr=false;
	}

	if(IDOK==dlg.DoModal())
    {
		m_winX=dlg.m_winX;
        m_winY=dlg.m_winY;
		m_winW=dlg.m_winW;
        m_winH=dlg.m_winH;

		run.MoveWindow(m_winX,m_winY,m_winW,m_winH);
		if(TRUE==dlg.m_fst)
		{
			m_actpage[0]=1;
			m_iHigh[0]=dlg.m_fsth;
			m_iWidth[0]=dlg.m_fstw;
			m_staPointx[0]=dlg.m_fstx;
			m_staPointy[0]=dlg.m_fsty;
		}
		else
		{
			m_actpage[0]=0;
		}

		if(TRUE==dlg.m_scd)
		{
			m_actpage[1]=1;
			m_iHigh[1]=dlg.m_scdh;
			m_iWidth[1]=dlg.m_scdw;
			m_staPointx[1]=dlg.m_scdx;
			m_staPointy[1]=dlg.m_scdy;
		}
		else
		{
			m_actpage[1]=0;
		}


		if(TRUE==dlg.m_thr)
		{
	    	m_actpage[2]=1;
			m_iHigh[2]=dlg.m_thrh;
			m_iWidth[2]=dlg.m_thrw;
			m_staPointx[2]=dlg.m_thrx;
			m_staPointy[2]=dlg.m_thry;
		}
		else
		{
			m_actpage[2]=0;
		}

	}
	
}

void CSetColorStyDlg::OnCancel() 
{
	// TODO: Add extra cleanup here
	CString strTempName;
	CString strTemp;
	CString strTempA;

	if (IDNO == MessageBox(_T("是否確定退出程序"), _T("提示!"), MB_YESNO|MB_ICONQUESTION))
		return;

	if(IDYES==MessageBox("是否保存設置?",_T(""),MB_YESNO))
	{

        strTemp.Format("%d",m_winX);
		WritePrivateProfileString("Win","winX",strTemp,".\\Init.ini");

		strTemp.Format("%d",m_winY);
		WritePrivateProfileString("Win","winY",strTemp,".\\Init.ini");

		strTemp.Format("%d",m_winW);
		WritePrivateProfileString("Win","winW",strTemp,".\\Init.ini");

		strTemp.Format("%d",m_winH);
		WritePrivateProfileString("Win","winH",strTemp,".\\Init.ini");

		for(int index=0;index<3;index++)	
		{
			
			strTempName.Format("%d",index+1);
    		strTemp.Format("%d",m_iHigh[index]);
			WritePrivateProfileString("Page"+strTempName,"H",strTemp,".\\Init.ini");
			strTemp.Format("%d",m_iWidth[index]);
			WritePrivateProfileString("Page"+strTempName,"W",strTemp,".\\Init.ini");
			strTemp.Format("%d",m_staPointx[index]);
			WritePrivateProfileString("Page"+strTempName,"X",strTemp,".\\Init.ini");
			strTemp.Format("%d",m_staPointy[index]);
			WritePrivateProfileString("Page"+strTempName,"Y",strTemp,".\\Init.ini");
			
			strTemp.Format("%d",m_actpage[index]);
			WritePrivateProfileString("Page"+strTempName,"act",strTemp,".\\Init.ini");
			//保存列表數 
			strTemp.Format("%d",m_count[index]);
		    WritePrivateProfileString("Page"+strTempName,"Count",strTemp,".\\Init.ini");
            //保存顏色
            strTemp.Format("%d",m_color[index].m_Red);
            WritePrivateProfileString("Page"+strTempName,"Red",strTemp,".\\Init.ini");
	     	strTemp.Format("%d",m_color[index].m_Green);
            WritePrivateProfileString("Page"+strTempName,"Green",strTemp,".\\Init.ini");
		    strTemp.Format("%d",m_color[index].m_Blue);
            WritePrivateProfileString("Page"+strTempName,"Blue",strTemp,".\\Init.ini");

	        for(int index=0;index<int(m_count[0]);index++)
			{
	           strTemp.Format("%d",index);
		       strTempA.Format("%d",m_fstyList[index]);
		       ::WritePrivateProfileString("Page1List",strTemp,strTempA,".\\Init.ini");
			}
    	    for(index=0;index<int(m_count[1]);index++)
			{
	           strTemp.Format("%d",index);
		       strTempA.Format("%d",m_sstyList[index]);
		       ::WritePrivateProfileString("Page2List",strTemp,strTempA,".\\Init.ini");
			}
            for(index=0;index<int(m_count[2]);index++)
			{
	            strTemp.Format("%d",index);
		        strTempA.Format("%d",m_tstyList[index]);
		        ::WritePrivateProfileString("Page3List",strTemp,strTempA,".\\Init.ini");
			}
		}
	}
	run.DestroyWindow();
	CDialog::OnCancel();
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费久久99精品国产| 国内精品在线播放| 日韩国产精品大片| 成人黄色电影在线 | 精品一区二区精品| 99久久久精品免费观看国产蜜| 欧美性感一区二区三区| 亚洲精品视频在线看| 美女爽到高潮91| 色婷婷国产精品| 欧美激情一区三区| 蜜桃视频第一区免费观看| 91丝袜美腿高跟国产极品老师| 日韩精品一区二区在线| 亚洲国产毛片aaaaa无费看 | 风间由美性色一区二区三区| 7777精品伊人久久久大香线蕉的| 日韩理论片中文av| 国产福利一区二区三区在线视频| 6080亚洲精品一区二区| 亚洲一区二区中文在线| 色哟哟精品一区| 中文字幕亚洲区| 国产成人免费av在线| 久久噜噜亚洲综合| 国产高清在线精品| 久久久久成人黄色影片| 国产精品一区在线| 国产偷v国产偷v亚洲高清| 国产美女一区二区| 精品国产乱子伦一区| 精品一区二区av| 久久新电视剧免费观看| 国产激情视频一区二区在线观看 | 九色综合狠狠综合久久| 欧美美女一区二区在线观看| 午夜电影久久久| 欧美精选在线播放| 日韩精品成人一区二区在线| 欧美久久久久久蜜桃| 青娱乐精品在线视频| 日韩精品在线一区二区| 国产呦萝稀缺另类资源| 欧美国产精品v| youjizz久久| 一区二区三区中文字幕| 欧美性感一区二区三区| 日本欧美在线看| 久久婷婷成人综合色| 国产99一区视频免费| 中文字幕色av一区二区三区| 91国产视频在线观看| 亚洲第一搞黄网站| 精品久久人人做人人爽| 粉嫩蜜臀av国产精品网站| 亚洲女性喷水在线观看一区| 欧美精品日日鲁夜夜添| 国产激情一区二区三区四区 | 欧美人与性动xxxx| 麻豆精品一区二区综合av| 久久久久久久久久电影| 99久久久国产精品免费蜜臀| 亚洲成人av一区二区| 精品久久久久久无| 色香色香欲天天天影视综合网| 午夜视频久久久久久| 国产欧美一区二区三区在线老狼| bt7086福利一区国产| 丝袜美腿亚洲色图| 欧美激情中文字幕一区二区| 在线观看免费亚洲| 久久精品国产第一区二区三区| 久久精品综合网| 欧美日韩日日摸| 成人精品视频一区| 日本不卡免费在线视频| |精品福利一区二区三区| 日韩美女在线视频 | 日韩欧美视频一区| 99国产精品99久久久久久| 麻豆国产欧美一区二区三区| 亚洲欧洲av色图| 久久久久国色av免费看影院| 欧美日韩一卡二卡三卡| av在线不卡免费看| 狠狠色丁香久久婷婷综合丁香| 一区二区三区四区在线| 国产欧美视频在线观看| 日韩欧美一级二级| 91搞黄在线观看| 波多野结衣在线aⅴ中文字幕不卡| 男人操女人的视频在线观看欧美| 亚洲丝袜美腿综合| 国产婷婷精品av在线| 91精品国产免费| 欧美日韩三级一区| 在线观看欧美日本| 色婷婷av一区二区三区软件| 成人黄色小视频| 国产精品99精品久久免费| 久久99精品久久久久| 天天av天天翘天天综合网| 亚洲欧美经典视频| 中文无字幕一区二区三区| 久久综合色综合88| 日韩视频永久免费| 91精品国产色综合久久不卡蜜臀| 色琪琪一区二区三区亚洲区| www.视频一区| 丁香桃色午夜亚洲一区二区三区 | 午夜精品福利视频网站| 亚洲精品视频自拍| 亚洲在线免费播放| 亚洲一区二区四区蜜桃| 亚洲一区二区精品久久av| 亚洲人成影院在线观看| 亚洲男同性恋视频| 亚洲最大成人网4388xx| 亚洲福利电影网| 亚洲1区2区3区视频| 日韩在线a电影| 日韩精品乱码免费| 日本在线播放一区二区三区| 琪琪久久久久日韩精品| 精品午夜久久福利影院| 国产精品亚洲一区二区三区妖精| 国产精品一二三四五| kk眼镜猥琐国模调教系列一区二区| 国产成人免费视频一区| 91免费看`日韩一区二区| 色综合中文字幕国产| 亚洲国产高清在线观看视频| 国产嫩草影院久久久久| 国产精品精品国产色婷婷| 亚洲精品视频观看| 五月激情六月综合| 国内精品国产三级国产a久久| 国产不卡免费视频| 91麻豆成人久久精品二区三区| 欧美视频日韩视频在线观看| 91精品国产综合久久香蕉麻豆| 精品久久五月天| 亚洲欧美激情在线| 久久精品国产免费| 99精品1区2区| 欧美一区国产二区| 亚洲国产精品国自产拍av| 亚洲制服欧美中文字幕中文字幕| 免费成人你懂的| 9久草视频在线视频精品| 欧美日韩国产精选| 国产日产精品一区| 亚洲大型综合色站| 国产精品白丝jk白祙喷水网站| 91年精品国产| 久久夜色精品一区| 亚洲不卡在线观看| 北岛玲一区二区三区四区 | 在线观看网站黄不卡| 欧美变态口味重另类| 亚洲日本一区二区| 国内精品伊人久久久久av影院| 91久久久免费一区二区| 久久久噜噜噜久久人人看| 一区二区三区国产精华| 国产精品一区免费在线观看| 在线播放一区二区三区| 亚洲欧美综合在线精品| 韩国欧美国产一区| 欧美色国产精品| 18欧美乱大交hd1984| 国产一区二区三区观看| 7777精品伊人久久久大香线蕉经典版下载| 国产女主播一区| 久久av中文字幕片| 欧美日韩一区久久| 亚洲精品免费在线观看| 国产毛片精品视频| 欧美一区二区啪啪| 香蕉加勒比综合久久| 99视频一区二区| 久久精品在这里| 久久9热精品视频| 欧美麻豆精品久久久久久| 亚洲美女精品一区| 成人av小说网| 欧美精彩视频一区二区三区| 国产在线麻豆精品观看| 欧美一级专区免费大片| 午夜激情一区二区三区| 欧美亚洲一区三区| 亚洲综合视频网| 日本韩国精品在线| 樱桃国产成人精品视频| 色一区在线观看| 亚洲制服丝袜在线| 56国语精品自产拍在线观看| 亚洲不卡av一区二区三区| 欧美三级在线播放| 午夜精品视频在线观看|