duheng
2024-06-06 ccc0d2319b71cc41f4d9d2f86dff28da918987da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System.Drawing;
using System.Windows.Forms;
using DevExpress.LookAndFeel;
using DevExpress.XtraBars.Utils;
using DevExpress;
using DevExpress.XtraBars;
using DevExpress.XtraBars.Ribbon;
 
namespace Hydro.WinfrmUI.Viewer {
    public class Office2007PopupControlContainer : PopupControlContainer, ITransparentBackgroundManager {
        Color ITransparentBackgroundManager.GetForeColor(object childObject) {
            return GetForeColorCore();
        }
        Color ITransparentBackgroundManager.GetForeColor(Control childControl) {
            return GetForeColorCore();
        }
        protected Color GetForeColorCore() {
            return BarUtilites.GetAppMenuLabelForeColor(LookAndFeel.ActiveLookAndFeel);
        }
    }
}