当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

 ·高手在线等    »显示摘要«
    摘要: 设计的表单在ie下正常,在notes下不正常,是何问题 ?我切换了在ie和notes下的隐藏选项,可还是不能在notes下全部显示,是不是表单应该是一个整体,所有的东西都在表格中?应该如何来改? 谢谢!! ......
 ·dropdownlist高手帮忙呀    »显示摘要«
    摘要: 在page_load中我这样写的: private sub page_load(byval sender as system.object, byval e as system.eventargs) handles mybase.load if not ispostback then dim mylist as new arraylist() mylist.add(......


如何实现类似C++builder的Form上的网格呢要求重刷新不闪烁。

如题

NO.1   作者: Cat

void   __fastcall   TForm1::FormPaint(TObject   *Sender)  
  {  
          DoubleBuffered   =   true;       //加这一句  
   
          for(int   i   =   0;   i   <   Width;   i   +=   8)  
                  for(int   j   =   0;   j   <   Height;   j   +=   8)  
                          Canvas->Pixels[i][j]   =   static_cast<TColor>(RGB(0,   0,   0));  
  }  
  --------------  
  保证不闪烁。

NO.2   作者: myy

////.h  
          Graphics::TBitmap   *FGridBrush;  
   
  ////////////OnCreate  
  ....  
          FGridBrush=new   Graphics::TBitmap();  
          FGridBrush->Width=8;  
          FGridBrush->Height=8;  
          FGridBrush->Canvas->Brush->Color=Color;  
          FGridBrush->Canvas->Brush->Style=bsSolid;  
          FGridBrush->Canvas->FillRect(Rect(0,0,8,8));  
          FGridBrush->Canvas->Pixels[0][0]=clBlack;  
  .....  
   
   
  /////////////OnPaint  
   
          Canvas->Brush->Bitmap=FGridBrush;  
          Canvas->FillRect(ClientRect);  
 


 ·新手问题    »显示摘要«
    摘要: 如果返回一个值? 比如sub aaa bbb=ccc end sub call aaa 如何取得bbb的值? 中间要添加点什么? ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE