可调整大小的自定义用户控件和重绘问题 [英] Resizable custom user control and redraw problem

查看:146
本文介绍了可调整大小的自定义用户控件和重绘问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常使用.NET提供的标准GUI控件.现在我 需要创造一些不同的东西.我需要创建开始窗口, 包含其他自定义控件.此窗口应可调整大小(因此应 所有的内部控件),我需要做一下才能平滑绘制它.

I usually use standard GUI controls provided be .NET. Now I need to create something different. I need to create start window, that contains other custom controls. This window should be resizable (so should be all the inside controls) and I need to do smth to draw it smoothly.

我创建了MyResizableControl,在其中我将所有元素调整为 大小以及我的开始窗口和自定义控件都继承自它.但是当 绘制开始窗口,先绘制背景,然后再绘制控件 被画在上面.可以通过眼睛看到它,并且看起来很丑.每次我都会发生 最小化和最大化窗口,以及调整窗口大小时.谁能给我 一些改进它的技巧和/或有关它的文献链接.

I created MyResizableControl where I adjust all elements to the size, and my start window and custom controls inherit from it. But when the start window is drawn, it is drawn with background first, and then the controls are drawn on it. It can be seen by eye and looks ugly. It happens every time I minimize and maximize the window, and when I resize it. Can anybody give me some tips to improve it and/or some links to literature about it.

推荐答案

如果您不这样做,我可以尝试伸出援手介意压缩并邮寄控件吗?

I could try to give a helping hand if you dont mind zipping and mailing the control ?

 

不能完全确定问题是什么或如何解决,但是如果我能看到控件并看到它可以做什么,也许可以

Not entirely sure what the issue is or how to address it but maybe If I could see the control and see what it does I could help you out.

 

随时通过电子邮件发送给  fdeetlefs@hotmail.com

feel free to email to  fdeetlefs@hotmail.com

 


这篇关于可调整大小的自定义用户控件和重绘问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆