这两天弄了下九宫格,开始时一点点的弄,放九个Button、9个PictureBox、ListView和imageList组合。九个控件资源大,ListView和imageList组合不能相应变换图像,各有优缺。
在网上翻了一遍,发现基本都是这种形式,九个控件做成九个imagebutton,再一个是用GDI+自己画。具体自己总结了一下:
下载
2010.02.24
今天对程序做了一点修改,使其能自适应屏幕。找了一个简单地方法,
int imgw = bmp.Width;
int imgh = bmp.Height;
if (this.Height >= this.Width)
{
imgw = W - 10;
imgh = W - 10;
}
if (this.Height < this.Width)
{
imgw = imgh = H - 10;
}
根据屏幕大小改变图片大小,适应了屏幕横屏竖屏,还适应了不同分辨率。参考2中也给出了适应屏幕横屏竖屏的方法。
参考:
1.http://www.cnblogs.com/JustDI/archive/2008/07/15/1243150.html
2.http://www.cnblogs.com/Bright-Liang/archive/2009/06/18/1505600.html
分享到:
相关推荐
C# windows mobile 九宫格 WM 9宫格, 绝对能用...
windows mobile 用的九宫格 Icon 界面,全屏对话框,空菜单,用WTL开发,主要用 CListViewCtrl 类。可以设置背景、间隔、文字颜色、文字背景等属性。
我在网上搜了自定义九宫格的相关资料,感觉都不怎么如意,因此,本人例用三天的时间设计并完成了这个小项目,通过配置文件去更改九宫格的显示样式及字体,容易理解,值得大家学习。
效果描述: 基于jQuery实现的,适合移动手机网页的一款导航 点击按钮后,动画效果比较流畅的显示出来 使用方法: 1、将CSS中的样式拷贝到你的网页中 2、将body中的代码部分拷贝到你需要的地方即可
windows mobile 9宫图的相关资料,windows mobile 9宫图的相关资料,windows mobile 9宫图的相关资料
九宫格闹钟天气预报桌面插件Spb Mobile Shell v2.1.0.cab
mobile手机上面的简单九宫格code 作为参考 相信再寻找的人很多
WindowsMobile5 源码WindowsMobile5 源码WindowsMobile5 源码WindowsMobile5 源码
如何搭建windows mobile应用开发的环境
Windows Mobile开发实验,wince操作系统定制。
众所周知,在windows7操作系统中已经不需要安装active sync ...清您下载windows mobile center for windows7(vista也是如此)软件,然后将手机与电脑连接即可.亲自操作,该方法适合于任何版本的windows mobile 手机系统.
Windows Mobile开发Windows Mobile开发Windows Mobile开发Windows Mobile开发
Windows Mobile for HP iPAQ 114
Windows Mobile 经典源码 学习Windows Mobile 的不二选择
windows mobile 平台下的My mobile软件。
QR条形码的开发程序,能够在windows mobile 6中实现QR条形码的开发程序,能够在windows mobile 6中实现,eMbedded Visual C++和VS两种源代码
Windows mobile 6.5常用软件
windows mobile 6.0 基于WebService方式与PC Server通讯的demo
Windows Mobile应用程序开发介绍 .Windows Mobile平台 .Windows Mobile开发环境搭建 .Windows Mobile开发技术和资源 .Demo
windows mobile直连版