-
C# 自绘式按钮的实例 源码
C# 自绘式按钮的实例源码,本例主要是以复合控件方式创建自绘式按钮,并测试了自绘式按钮响应鼠标单击事件。自绘按钮的绘制,可以参考以下代码:
//绘制新按钮
Graphics MyGraphics = e.Graphics;
Point[] MyPtsA = { new Point(0, 0), new Point(90, 0), new Point(170, 0), new Point(170, 50), new Point(170, 90), new Point(90, 90), new Point(0, 90), new Point(0, 50) };
Color[] MyColsA = { Color.White, Color.Black, Color.White, Color.Black, Color.White, Color.Black, Color.White, Color.Black };
PathGradientBrush MyPGBrushA = new PathGradientBrush(MyPtsA);
MyPGBrushA.SurroundColors = MyColsA;
MyGraphics.FillRectangle(MyPGBrushA, 0, 0, 170, 90);
String MyText = "自绘式按钮";
Font MyFont = new Font("隶书", 22);
SolidBrush MyBrush = new SolidBrush(Color.White);
PointF MyPoint = new PointF(3.0F, 30.0F);
MyGraphics.DrawString(MyText, MyFont, MyBrush, MyPoint);
- 2022-06-30 07:08:12下载
- 积分:1
-
442e6abc69b5d04460608d7ab3fdf616
请问下大家CC++如何实现感染可执行文件以及如何实现将一个exe文件镶嵌到另一个exe文件中
- 2010-02-12 01:34:37下载
- 积分:1
-
39
说明: 时钟芯片PCF8563 C51程序,本人测试通过(Clock chip PCF8563 C51 program, I test through)
- 2013-01-14 11:01:16下载
- 积分:1
-
diy-os-by-youself
详细讲解了操作系统原理及实现方式,通过实例一步步引导读者用汇编语言和c语言编写操作系统框架(Detailed account of the operating system theory and implementation, guiding the reader step by step through examples written in the framework of the operating system in assembly language and c language)
- 2014-02-25 07:58:35下载
- 积分:1
-
触摸屏计算器
主控STM32F103RCT6,控制2.8寸触摸屏,实现实数加、减、乘、除、指数等运算。(Main control STM32F103RCT6, control 2.8 Inch Touch Screen ,Realize real number addition, subtraction, multiplication, division, exponential and other operations.)
- 2020-06-19 23:20:02下载
- 积分:1
-
BP_test
说明: BP算法实现实例,利用C++实现,实测可用(bp algorithm example)
- 2018-12-31 11:08:05下载
- 积分:1
-
NRF2401-2.4G
NRF2401-2.4G的无线通讯程序,51单片机完成(NRF2401-2.4G wireless communication procedures 51 MCU to complete)
- 2012-07-17 11:46:41下载
- 积分:1
-
Media-player
MFC上使用Meidaplayer控件播放视频,可以根据对话框大小自动缩放播放器控件(Use the MFC Mediaplayer control to play video player controls can automatically scaled according to the size of the dialog)
- 2020-12-05 09:09:25下载
- 积分:1
-
STM32F103ZET6各功能模块程序模板
说明: STM32F103ZET6程序模板,包含IIC,SPI,ADC,串口等的C文件和H文件程序(Stm32f103zet6 program template, including IIC, SPI, ADC, serial port C file and H file program)
- 2021-01-15 11:56:21下载
- 积分:1
-
FPGA串口发送16位数据
fpga通过串口向电脑发送16位数据,可以通过上位机来查看FPGA运行的数据,一般的串口发送为8位数据,现改成16微数据来进行传输
- 2022-06-29 22:01:53下载
- 积分:1