使用XtraTabbedMdiManager控件管理Mdi里面的窗体后,发现背景图片不能显示,
重写DevExpress.XtraTabbedMdi.XtraTabbedMdiManager的DrawNC方法就行了。
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.ComponentModel;
namespace MdiForm
{
public class TabbedMdiManager : DevExpress.XtraTabbedMdi.XtraTabbedMdiManager
{
Image _backImage = null;
public TabbedMdiManager(): base()
{
}
public TabbedMdiManager(IContainer container) : base(container)
{
}
public Image BackImage

当使用XtraTabbedMdiManager管理Mdi窗体时,若想设置背景图片,需要重写DrawNC方法。创建自定义的TabbedMdiManager类,并在其中设置BackImage属性。在MdiForm的初始化方法中,实例化自定义的TabbedMdiManager并设置背景图片。
最低0.47元/天 解锁文章
2919

被折叠的 条评论
为什么被折叠?



