本文介绍了使用directx运行winform的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Windows应用程序,其界面有多个带有背景图像的图片框面板,外观丰富,而且几乎没有用户控件具有自定义网格视图。


由于这些控件的数量对于背景图像,使用鼠标调整大小时窗口会闪烁。我修复了大部分闪烁问题,使用了一些解决方法,作为我的帖子中的回复提供了

http://social.msdn.microsoft.com/Forums/en-US/winformsdesigner/thread/6d620537-3858-4efa-a91a-89cec1a9c8a3
。现在使用窗口并对其进行处理时,不会发生闪烁。在运行时使用鼠标调整窗口大小(增加高度/宽度)
时出现唯一的问题。控件大量闪烁。我已经阅读了不同论坛中的一些帖子,我们可以在Windows应用程序中使用DirectX进行硬件加速。


任何人都可以为我提供在具有背景和窗口的窗口上显示控件的基本示例每个控件都有自己的背景图像并在后台使用DirectX?


还有一件事是我目前不打算使用WPF。我想稍后慢慢迁移到WPF。


提前致谢,


Surya


Surya Praveen

解决方案

I am developing a windows application whose interface has multiple picture boxes panels with background images for rich look and also few usercontrols having customized gridviews.

Due to these number of controls with background images, the window is flickering when resized using mouse. I have fixed most of the flickering issues using some workarounds provided as replies in my threadhttp://social.msdn.microsoft.com/Forums/en-US/winformsdesigner/thread/6d620537-3858-4efa-a91a-89cec1a9c8a3. Now flickering is not occurring when using the window and working on it. The only problem occurs when resizing the window (increasing height/width) using mouse at runtime. The controls are flickering heavily. I have read some posts in different forums that we can use DirectX in windows applications for hardware acceleration.

Can anyone provide me a basic example for displaying controls on a window having background and each control having it's own background image and using DirectX in the background?

One more thing is I am not planning to use WPF at present. I want to slowly migrate to WPF later.

Thanks in advance,

Surya


Surya Praveen

解决方案


这篇关于使用directx运行winform的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 21:31