zoukankan
html css js c++ java
PPC开发,窗体添加背景图片
其实很简单首先添加背景图片到所在工程,设置为嵌入式资源。接着获取嵌入式图片资源,覆写OnPaint绘制背景。
private
Image bgImage;
public
FormBase()
{
bgImage
=
new
Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream(
"
CMclient.Image.Img_BackGround.gif
"
));
}
//
绘制背景
protected
override
void
OnPaint(PaintEventArgs e)
{
base
.OnPaint(e);
e.Graphics.DrawImage(bgImage,
this
.ClientRectangle,
new
Rectangle(
0
,
0
,
this
.bgImage.Width,
this
.bgImage.Height), GraphicsUnit.Pixel);
}
查看全文
相关阅读:
宏定义问题
(转载)(int)a、&a、(int)&a、(int&)a的区别,很偏僻的题
boolalpha的作用
一些小细节
HTTP Keep-Alive的作用
数据库三大范式
laravel 安装语言包
MySQL存储引擎中的MyISAM和InnoDB区别详解
推荐一款超好用的工具cmder
如何保证代码质量
原文地址:https://www.cnblogs.com/datong/p/1156617.html
最新文章
汉诺塔
求两个数的最大公约数和最小公倍数
判断单链表有闭环
单链表反转
[转载] epoll详解
[转载] 高性能IO模型浅析
[转载] 网络IO模型
[转载] Redis资料汇总专题
[转载] Redis系统性介绍
[转载] Redis之七种武器
热门文章
[转载] 十五分钟介绍 Redis数据结构
[转载] 基于Redis实现分布式消息队列
[转载] 分布式消息队列的设计和使用
[转载] ZooKeeper实现分布式队列Queue
WIFI的AP/Sta模式简单介绍
ESP8266代码中的存储标记
低频通信调试
1.arm的linux系统搭建
const与#define相比有什么不同?
关于const修饰指针
Copyright © 2011-2022 走看看