随笔分类 - 勇者斗恶龙游戏Window版
摘要:GDI+的双缓冲问题一直以来的误区:.net1.1 和 .net 2.0 在处理控件双缓冲上是有区别的。.net 1.1 中,使用:this.SetStyle(ControlStyles.DoubleBuffer, true);.net 2.0中,使用:this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);怪不说老是提示参数无效,一直也不知道是这个问题,呵呵要知道,图元无闪烁的实现和图元的绘制方法没有多少关系,只是绘制方法可以控制图元的刷新区域,使双缓冲性能更优!导致画面闪烁的关键原因分析: 一、绘制窗口由于大小位置状态改变进行重绘操
阅读全文
摘要:this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.AllPaintingInWmPaint, true);
阅读全文
摘要:相对路径 System.Environment.CurrentDirectory; Application.StartupPath; // 不包括程序名 Application.ExecutablePath; // 包括程序名 ExecutablePath的值为: C:\Documents and Settings\tfq\My Documents\Visual Studio 2005\Projects\TeleServer\TeleServer\bin\Debug\TeleServer.exe, 而CurrentDirectory和StartupPath的值为: C:\Do...
阅读全文
摘要:vs2008全屏: Alt + Shift + Enter类视图的缩放: Ctr + 鼠标滑轮
阅读全文
浙公网安备 33010602011771号