下载此文档

cWinForm常用代码.doc


文档分类:IT计算机 | 页数:约14页 举报非法文档有奖
1/14
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/14 下载此文档
文档列表 文档介绍
//ToolStripSplitButton是标准按钮和下拉按钮的组合,各自工作,但有联系,感觉上后者是没有向下箭头ToolStripDropDownButton;ToolStripDropDownButton只含有一个按钮,可以选择有没有向下箭头的标志,单击时显示关联的 ToolStripDropDown 的控件。两者均可改变箭头标志在做还是在右。//(||,true);//=true;//attributemodfiedbyProtected//手工双缓冲Bitmapbmp=newBitmap(600,600);Graphicsg=(bmp);();().DrawImage(bmp,0,0);//这句是关键,不能à在OnPaint里画BitBmp在这里调InvalidateInvalidate(Rectangle)//规定区域重绘,boBox1=(ComboBox)sender;(SenderasSomeObject).Method()=("微软雅黑",72F,,,((byte)(134)));=newFont("微软雅黑",fontSize);//自定义控件背景透明SetStyle(,true);SetStyle(,true);=;//=();//(Point);(int,int);(Point);//截获标题栏消息,;;[DllImport("")]privatestaticexternIntPtrGetWindowDC(IntPtrhWnd);[DllImport("")]privatestaticexternintReleaseDC(IntPtrhWnd,IntPtrhDC);privateconstintWM_NCPAINT=0x0085;privateconstintWM_NCACTIVATE=0x0086;privateconstintWM_NCLBUTTONDOWN=0x00A1;protectedoverridevoidWndProc(refMessagem){(refm);RectanglevRectangle=newRectangle((Width-75)/2,3,75,25);switch(){caseWM_NCPAINT:caseWM_NCACTIVATE:IntPtrvHandle=GetWindowDC();GraphicsvGraphics=(vHandle);(newLinearGradientBrush(vRectangle,,,),vRectangle);StringFormatvStringFormat=newStringFormat();=;=;("About",Font,

cWinForm常用代码 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数14
  • 收藏数0 收藏
  • 顶次数0
  • 上传人wz_198613
  • 文件大小71 KB
  • 时间2019-11-19