⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vcd_properties.htm

📁 vc-mfc编程实例 很简单的东西,以后回多传自己的东西
💻 HTM
📖 第 1 页 / 共 2 页
字号:
                            <td colspan="2" class="PageText"><div id="chkBox" style="float:left;"></div><div onClick="chkboxAction('chkBox_1');" style="cursor:default;" id="Properties_Label_8"></div></td>
                          </tr>
                          <tr>
                            <td height="40" colspan="2" class="PageText" id="Properties_Label_9"></td>
                          </tr>
                          <tr>
                            <td colspan="2" class="PageText" style="padding-top:10px;" id="Properties_Label_10"></td>
                          </tr>
                          <tr>
                            <td align="right" height="30" class="PageText"><input name="textfield2" id="autorunFile" type="text" size="50" onKeyDown="if(event.keyCode==13)submitInfo();"> &nbsp;&nbsp;&nbsp;&nbsp;</td>
                            <td class="PageText"><button cstyle="rit" onClick="getFile();" id="getPath">...</button></td>
                          </tr>
                          <tr>
                            <td height="30" colspan="2" class="PageText"><div style="float:left;" id="Properties_Label_11"></div>
                              <input name="textfield22" id="Author" type="text" size="60" onKeyDown="if(event.keyCode==13)submitInfo();"></td>
                          </tr>                          
						  <tr>
						  	<td height="30" colspan="2" class="PageText" valign="middle"><div style=" float:left"><script>document.write(GS("keyText"));</script>(Ctrl+Alt+):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
						  	  <object id="keyname" style="WIDTH: 160px; HEIGHT: 18px; border: #7D93AE solid 1px;" classid="clsid:108AAE4C-A194-4E7C-BD95-51CB8235C41A">
                              </object>
							  </td>
						  </tr>
						  <tr>
                            <td height="30" colspan="2" class="PageText"><div style="float:left; padding-top:5px;" id="Properties_Label_13"></div>
                              <div id="downList" style="float:left"></div></td>
                          </tr>
                        </table></td>
                        <td width="1" bgcolor="707588"></td>
                      </tr>
                      <tr id="tag_3">
                        <td width="1" bgcolor="707588"></td>
                        <td height="255" align="center" valign="top"><table width="400" border="0" cellspacing="0" cellpadding="0" style="margin:10px;">
                          <tr>
                            <td height="30" class="PageText" id="Properties_Label_12"></td>
                          </tr>
                          <tr>
                            <td><textarea name="textarea2" cols="42" rows="10" id="infoComment"></textarea></td>
                          </tr>
                        </table></td>
                        <td width="1" bgcolor="707588"></td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td><table width="436" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="1" height="1"></td>
                        <td height="1" bgcolor="707588" style="font-size:0px;"><img src="img/vcd_properties_08.jpg" width="434" height="1"></td>
                        <td width="1" height="1"></td>
                      </tr>
                    </table></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td height="40" align="right" valign="bottom" style="padding-right:20px;"><button cstyle="rit" onClick="submitInfo();" id="convert">OK</button>&nbsp;&nbsp;&nbsp;<button cstyle="rit" onClick="memory.CloseShareMemory();window.external.SetStaticData('');window.external.OnClose();" id="cancel">Cancel</button></td>
              </tr>
            </table></td>
            <td width="10" height="342"><img src="img/conversion_07.jpg" width="10" height="342"></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td width="598" height="13"><table width="498" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="6" height="13"><img src="img/bottom_1.jpg" width="6" height="13"></td>
            <td height="13" background="img/bottom_2.jpg" style="font-size:0px;">&nbsp;</td>
            <td width="6" height="13"><img src="img/bottom_3.jpg" width="6" height="13"></td>
          </tr>
        </table>
          </td>
      </tr>
    </table></td>
  </tr>
</table>
<script language="javascript">
var isMove=true;
var leftButtonId="";
var rightButtonId="";
var oldPassword="";
var t1="";


function getFile(){
	 var result=GetFilepath("exe File(*.exe)|*.exe||",true);
	 if (result){
		 $("autorunFile").value=result;
	 }
}

function checkLength(){
	if (infoComment.value.length>1023){
		infoComment.value = infoComment.value.substr(0,1023);
	}
	setTimeout(checkLength,1);
}

function submitInfo(){
	dd = objListItem_1.value;
	val1 = global_Pro_VD;//valueFile.innerHTML;
	val2 = infoDescription.value;
	if (chkBox_1.checked){
		val3 = autorunFile.value;
	}else{
		val3 = "";
	}
	val4 = Author.value;
	val5 = infoComment.value;
	var rel=keyname.SetVcdHotKey();
	if(rel==1)
	{
		RIT_popMsg('',264,180,'Alert',GS("SetkeyErr"),'alert');
	}

	memory.CloseShareMemory();
	window.external.SetStaticData(dd + "{VD}" + val1 + "{VD}" + val2 + "{VD}" + val3 + "{VD}" + val4 + "{VD}" + val5);
	window.external.OnOK();
}

function moveWindow() {
	if (isMove) {
		window.external.OnMoveWindow();
	}
}

function closeWindowSetStaticData(flag)
{
	if (flag==1)
	{
		window.external.SetStaticData(GetD);
	}
	else
	{
		window.external.SetStaticData("Cancel");
	}
	window.external.OnClose();
}

function closeself()
{
window.external.SetStaticData("Cancel");
window.external.OnClose();
}


function Do_search()
{
obj1.StopSearch();
obj1.StartSearch(document.getElementById("Path1").value,downListObj.value);
}

function Do_add()
{
obj1.GetSelectPath();
window.external.SetStaticData(t1);
window.external.OnClose();
//obj1.SelectFilePath();
//alert(f1);
//obj1.AddVcdFileToList(f1);
//obj1.SaveDriverSetting();
}


function chekKeyCode(code)
{
	if(code==32)
	{
	   //event.srcElement.click();
	   //alert(event.srcElement.innerHTML);
	}
	if (code==27)
	{
		window.external.SetStaticData("Cancel");
		window.external.OnClose();
	}
	
}
function getselectfile(lpFilePath)
{
	t1+=(lpFilePath+"|");
}

function changeMenu(para){
	if (para == 1){
		menuTag.src = GS("Pic_5");
		menuTag.useMap = "#Map_1";
		tag_1.style.display = "block";
		tag_2.style.display = "none";
		tag_3.style.display = "none";
	}else if (para == 2){
		menuTag.src = GS("Pic_6");
		menuTag.useMap = "#Map_2";
		tag_1.style.display = "none";
		tag_2.style.display = "block";
		tag_3.style.display = "none";
	}else if (para == 3){
		menuTag.src = GS("Pic_7");
		menuTag.useMap = "#Map_3";
		tag_1.style.display = "none";
		tag_2.style.display = "none";
		tag_3.style.display = "block";
	}
}
</script>
<script language="vbs">
sub obj1_SelectFilePath(lpFilePath)
	getselectfile lpFilePath
end sub
</script>

<map name="Map_1">
  <area shape="rect" coords="135,1,200,22" href="#" onClick="changeMenu(3);return false;" onFocus="this.blur();">
  <area shape="rect" coords="68,1,133,22" href="#" onClick="changeMenu(2);return false;" onFocus="this.blur();">
</map>
<map name="Map_2">
  <area shape="rect" coords="135,1,200,22" href="#" onClick="changeMenu(3);return false;" onFocus="this.blur();">
  <area shape="rect" coords="1,1,66,22" href="#" onClick="changeMenu(1);return false;" onFocus="this.blur();">
</map>
<map name="Map_3">
  <area shape="rect" coords="68,1,133,22" href="#" onClick="changeMenu(2);return false;" onFocus="this.blur();">
  <area shape="rect" coords="1,1,66,22" href="#" onClick="changeMenu(1);return false;" onFocus="this.blur();">
</map>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -