Source/Office2007Form/Office2007RibbonForm.cs

(开头部分) 69KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
using System.Runtime.InteropServices;
using DevComponents.DotNetBar.Rendering;
using System.Drawing.Imaging;
using System.Collections;

namespace DevComponents.DotNetBar
{
    /// <summary>
    /// Represents the form class that should be used instead of standard Form when form caption is provided by Ribbon control
    /// and custom form look and feel in style of Office 2007 is required. This form does not have standard form caption.
    /// </summary>
    public class Office2007RibbonForm : Form
    {
        #region Private Variables
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        private int m_TopLeftCornerSize = 6;
        private int m_TopRightCornerSize = 6;
        private int m_BottomLeftCornerSize = 6;
        private int m_BottomRightCornerSize = 6;
        protected int m_DisplayRectangleReductionTop = 1;
        protected int m_DisplayRectangleReductionBottom = 2;
        protected int m_DisplayRectangleReductionHorizontal = 4;
        RibbonControl m_RibbonControl = null;
        private FormWindowState m_WindowStateDelayed = FormWindowState.Normal;
        private bool m_TrackWindowStateSetting = false;
        private bool m_IsLoaded = false;
        private bool m_FlattenMDIBorder = true;
        private bool m_NonClientActive = true;
        private Point m_NonClientOffset = Point.Empty;
        protected bool m_EnableCustomStyle = true;
        private int m_GlassHeight = 0;
        private bool m_IsGlassEnabled = false;
        private bool m_GlassHitTestTrack = false;
        private bool m_EnableGlass = true;
        #endregion

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            if (m_CashedCaptionBitmap != null)
            {
                m_CashedCaptionBitmap.Dispose();
后面还有 1679 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。