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

📄 bcjq087.txt

📁 c++ builder 的一些txt文档
💻 TXT
字号:

C++ Builder开发者:程序员之家
var how_many_ads = 3;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
 
  
  
    
      
        
          
            首页   
              | 控件天堂 | 控件使用                       
              | 编程技巧                        
              |  源代码 |  编程工具 |            
               系统补丁 |  电子书籍 | 技术论坛                        
              |  相关链接                     
                               
                             
                           
                         
                         
                           
                             
                               
                                 
                               
                     
       if (ad==1) {document.write(''+'');}                   
       if (ad==2) {document.write(''+'');}                   
       if (ad==3) {document.write(''+'');}                   
                                  
                               
                            
                                        
                            
                          
                        
                      
                      
                        
                          
                            
                              
                           
                         
var marqueecontents=''+scroll_text+''               
if (document.all)               
document.write(''+marqueecontents+'')               
function regenerate(){               
window.location.reload()               
}               
function regenerate2(){               
if (document.layers){               
setTimeout("window.onresize=regenerate",450)               
intializemarquee()               
}               
}               
function intializemarquee(){               
document.cmarquee01.document.cmarquee02.document.write(marqueecontents)               
document.cmarquee01.document.cmarquee02.document.close()               
thelength=document.cmarquee01.document.cmarquee02.document.height               
scrollit()               
}               
function scrollit(){               
if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){               
document.cmarquee01.document.cmarquee02.top-=speed               
setTimeout("scrollit()",100)               
}               
else{               
document.cmarquee01.document.cmarquee02.top=marqueeheight               
scrollit()               
}               
}               
window.onload=regenerate2               
                           
                             
                           
                         
                       
                     
                     
                       
                         
                           
                             
                               
                                 
                                   
                  当前位置
        
        
                    编程技巧                
                                
                              
                            
                            
                            
                              
                                
                                  
                            
        
      在C++ Builder中使用Cell组件         
                           
                     
                       
                         
                           
                             
   
    在C++ Builder中,Cell组件中含有字符串参数的方法会有一些变形∶
 
      例如,原Cell组件接口∶
 
    void DoSetCellString(long col, long row, LPCTSTR string);
 
    在BC中该接口变为
 
    void DoSetCellString(long col, long row, BSTR string);
 
    即要求传入宽字节的字符串参数,在BC中,可用AnsiString对象的WideChar方法来转换单字节字符串为双字节。
 
        //单字符"Hello world"
 
    AnsiString s1("Hello world");
 
    wchar_t *w1;
 
    int size1 = s1.WideCharBufSize();
 
    w1 = new wchar_t[size1];
 
    //转化为宽字符
 
    s1.WideChar(w1, size1);
 
    cell->DoSetCellString( 1, 1, w1 );
 
    可以做一个小函数来专门转化宽字符串。
 
                              
                            
                          
                              
                      
                            
                              
                            
                  if (ad==1) {document.write(''+'');}            
                  if (ad==2) {document.write(''+'');}            
                  if (ad==3) {document.write(''+'');}            
                                              
                            
                          
                        
                      
                 
                  
                    
                      
                    
                    
                        
                    
                  
                     
                   
                 
               
             
             
               
                 
                   
                     
            C++ Builder开发者®               
              2000年06月01日 站长:唐朝               
                         
                       
                     
                   
                   
                     
                   
                 
                 
               
               
               
               

⌨️ 快捷键说明

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