-
tab似的框架窗口
tab似的框架窗口-tab like window framework
- 2023-04-07 23:00:04下载
- 积分:1
-
基于c#的时钟
资源描述本源程序是基于C#的时钟设计,能为初学者提供参考价值,为初学者提供基本的编写代码思路,
namespace Clock
{
public partial class MainForm : Form
{
private PointF center;
private float r;
private Pen hourPen;
private Pen minutePen;
private Pen secondPen;
private Thread timeThread;
public MainForm()
{
InitializeComponent();
ShowInTaskbar = false;//不在任务栏中显示
SetStyle(ControlStyles.DoubleBuffer, true);
SetStyle(ControlStyles.UserPaint,true);
SetStyle(ControlStyles.AllPaintingInWmPaint,true);
center = new PointF(ClientSize.Width/ 2.0f, ClientSize.Height/ 2.0f);
r = Math.Min(ClientSize.Width / 2.0f, ClientSize.Height / 2.0f);
hourPen = new Pen(Color.Black, 2.5f);
minutePen = new Pen(Color.Black, 1.5f);
secondPen = new Pen(Color.Black, 0.5f);
timeThread=new Thread(new ThreadStart(DrawTime));
timeThread.Start();
}
protected override void OnPaint(PaintEventArgs e)
{
Graphics g = e.Graphics;
g.Clear(BackColor);
//g.SmoothingMode =
- 2022-01-26 05:22:52下载
- 积分:1
-
漂亮的类似netscape浏览器读取数据时显示进度状态的控件
漂亮的类似netscape浏览器读取数据时显示进度状态的控件-An beautiful progress contorl which like the progress contorl displaying state when the netscape reading data
- 2022-02-10 02:34:59下载
- 积分:1
-
This is a small animation production process. To help beginners learn graphical...
这是一个生成动画的小程序。能够帮助初学者学习图形编程。方便易用。-This is a small animation production process. To help beginners learn graphical programming. Easy-to-use.
- 2022-07-06 21:55:41下载
- 积分:1
-
Duilib窗体增加阴影效果
应用背景用于在Duilib界面库产生的窗体周围添加阴影效果关键技术1. 在要添加阴影效果的窗体类中包含WndShadow的头文件,并创建对应类型的成员变量m_WndShadow。
2. 在WinMain处添加初始化
// Initiation of the shadow
CWndShadow::Initialize(hInstance);
3. 窗体OnCreate中设置
LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
LONG styleValue = ::GetWindowLong(*this, GWL_STYLE);
styleValue &= ~WS_CAPTION;
::SetWindowLong(*this, GWL_STYLE, styleValue | WS_CLIPSIBLINGS | WS_CLIPCHILDREN);
m_WndShadow.Create(m_hWnd);
m_WndShadow.SetSize(4);
m_WndShadow.SetPosition(0, 0);
//blablabla....
return 0;
}
说明:此处为了更清除的看到窗体边框阴影效果,我将调用的地方原来的m_WndShadow.SetSize(4);改为
了m_WndShadow.SetSize(15);正常情况下,Size设置为4的效果即可。
- 2022-06-18 09:40:40下载
- 积分:1
-
简单的实现了画图板的功能,包括画直线,圆。还有实现了颜色的选择。...
简单的实现了画图板的功能,包括画直线,圆。还有实现了颜色的选择。-Simple implementation of the drawing board features
- 2022-03-13 00:20:07下载
- 积分:1
-
可任意改变对话框大小和控件大小的类,包含测试代码
可任意改变对话框大小和控件大小的类,包含测试代码,非常适合界面开放,会有意想不到的效果
- 2022-08-20 10:38:47下载
- 积分:1
-
一个很好看的界面,Mac风格!VB开发的
一个很好看的界面,Mac风格!VB开发的-a good look at the interface, Mac style! The VB
- 2022-02-11 12:10:53下载
- 积分:1
-
networks like ants do in the process of floating above a small window to achieve
像网落蚂蚁那样在程序上方浮动的一个小窗口的实现-networks like ants do in the process of floating above a small window to achieve
- 2022-01-25 14:11:40下载
- 积分:1
-
一个很好的关于微软的mschart的例子,自己做的,希望可以给大家帮助...
一个很好的关于微软的mschart的例子,自己做的,希望可以给大家帮助-A very good on Microsoft
- 2022-09-26 09:10:03下载
- 积分:1