CPropertySheet属性页,header图片不能显示了 CPropertySheet创建和参数的添加都是正确的,可不知为什么公司那破电脑老是把图片显示为右上角一个小黑框,header其他地方都是白色背景。求高人赐教!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 //排版soap报文 String strTmp = new String((byMsgs)); int iTmp = 0; int iCount = 0; //找'<'的数量 while(true) { iTmp = strTmp.indexOf('<', iTmp); if( -1 == iTmp) { break; } if( -1 == iTmp) { break; } iTmp++; iCount++; } //'<'前面添加一个换行符 if( 0 != iCount ) { iTmp = 0; for(int i=0;i<iCount;i++) { iTmp = strTmp.indexOf('<', iTmp); if( -1 == iTmp) { break; } if( i == 0) { //xml头就不换行了 iTmp++; continue; } strTmp = strTmp.substring(0, iTmp) + "\n" + strTmp.substring(iTmp); iTmp += 2; } } iCount = 0; //找'</'和'/>'的数量 iTmp = 0; while(true) { iTmp = strTmp.indexOf("</", iTmp); if( -1 == iTmp) { break; } iTmp++; iCount++; } iTmp = 0; while(true) { iTmp = strTmp.indexOf("/>", iTmp); if( -1 == iTmp) { break; } iTmp++; iCount++; } //"</"和"<"前面添加 if( 0 != iCount ) { String strTab = new String(""); iTmp = strTmp.indexOf("<?", 0); for(int i=0;i<iCount;i++) { if( -1 == iTmp) { break; } iTmp++; iTmp = strTmp.indexOf('<', iTmp); if( -1 == iTmp) { break; } if( i == 0) { //第一个"<"不加 iTmp++; continue; } strTab = ""; for(int j=i-1;j>=0;j--) { strTab += " "; } strTmp = strTmp.substring(0, iTmp) + strTab + strTmp.substring(iTmp); iTmp += (strTab.length() + 1); } iTmp = strTmp.length()-1; for(int i=0;i<iCount;i++) { iTmp = strTmp.lastIndexOf("</", iTmp); if( -1 == iTmp) { break; } if( i == 0) { //倒数第一个"</"不加 iTmp--; continue; } strTab = ""; for(int j=i-1;j>=0;j--) { strTab += " "; } strTmp = strTmp.substring(0, iTmp) + strTab + strTmp.substring(iTmp); iTmp = iTmp - (strTab.length() - 1); } } RegCreateKeyEx失败了 资源泄漏问题请教 #include <vfw.h> 为什么编译不过去呢? 如何定义线程函数指针 在IE工具栏中创建下拉菜单的问题 13万条,第一次select正常,第二次就报错了,记录集太大了,提示错误#3121,#3092 高分! 小问题 关闭进程 高手请进,关于avi clip文件 怎样让我的英文VC6支持中文? GDI+程序用内存持续增加? 程序退出时留在桌面 需要刷新才能消除
String strTmp = new String((byMsgs));
int iTmp = 0;
int iCount = 0;
//找'<'的数量
while(true)
{
iTmp = strTmp.indexOf('<', iTmp);
if( -1 == iTmp)
{
break;
}
if( -1 == iTmp)
{
break;
}
iTmp++;
iCount++;
}
//'<'前面添加一个换行符
if( 0 != iCount )
{
iTmp = 0;
for(int i=0;i<iCount;i++)
{
iTmp = strTmp.indexOf('<', iTmp);
if( -1 == iTmp)
{
break;
}
if( i == 0)
{
//xml头就不换行了
iTmp++;
continue;
}
strTmp = strTmp.substring(0, iTmp) + "\n" + strTmp.substring(iTmp);
iTmp += 2;
}
}
iCount = 0;
//找'</'和'/>'的数量
iTmp = 0;
while(true)
{
iTmp = strTmp.indexOf("</", iTmp);
if( -1 == iTmp)
{
break;
}
iTmp++;
iCount++;
}
iTmp = 0;
while(true)
{
iTmp = strTmp.indexOf("/>", iTmp);
if( -1 == iTmp)
{
break;
}
iTmp++;
iCount++;
}
//"</"和"<"前面添加
if( 0 != iCount )
{
String strTab = new String("");
iTmp = strTmp.indexOf("<?", 0);
for(int i=0;i<iCount;i++)
{
if( -1 == iTmp)
{
break;
}
iTmp++;
iTmp = strTmp.indexOf('<', iTmp);
if( -1 == iTmp)
{
break;
}
if( i == 0)
{
//第一个"<"不加
iTmp++;
continue;
}
strTab = "";
for(int j=i-1;j>=0;j--)
{
strTab += " ";
}
strTmp = strTmp.substring(0, iTmp) + strTab + strTmp.substring(iTmp);
iTmp += (strTab.length() + 1);
}
iTmp = strTmp.length()-1;
for(int i=0;i<iCount;i++)
{
iTmp = strTmp.lastIndexOf("</", iTmp);
if( -1 == iTmp)
{
break;
}
if( i == 0)
{
//倒数第一个"</"不加
iTmp--;
continue;
}
strTab = "";
for(int j=i-1;j>=0;j--)
{
strTab += " ";
}
strTmp = strTmp.substring(0, iTmp) + strTab + strTmp.substring(iTmp);
iTmp = iTmp - (strTab.length() - 1);
}
}