Esempio n. 1
0
 public override void GetBandInfo(uint dwBandID, uint dwViewMode, ref DESKBANDINFO dbi) {
     if((dbi.dwMask & DBIM.ACTUAL) != (0)) {
         dbi.ptActual.X = Size.Width;
         dbi.ptActual.Y = BarHeight;
     }
     if((dbi.dwMask & DBIM.INTEGRAL) != (0)) {
         dbi.ptIntegral.X = -1;
         dbi.ptIntegral.Y = 10;
     }
     if((dbi.dwMask & DBIM.MAXSIZE) != (0)) {
         dbi.ptMaxSize.X = -1;
         dbi.ptMaxSize.Y = BarHeight;
     }
     if((dbi.dwMask & DBIM.MINSIZE) != (0)) {
         dbi.ptMinSize.X = MinSize.Width;
         dbi.ptMinSize.Y = BarHeight;
     }
     if((dbi.dwMask & DBIM.MODEFLAGS) != (0)) {
         dbi.dwModeFlags = DBIMF.NORMAL;
     }
     if((dbi.dwMask & DBIM.BKCOLOR) != (0)) {
         dbi.dwMask &= ~DBIM.BKCOLOR;
     }
     if((dbi.dwMask & DBIM.TITLE) != (0)) {
         dbi.wszTitle = null;
     }
 }
Esempio n. 2
0
        public virtual void GetBandInfo(
            UInt32 dwBandID,
            UInt32 dwViewMode,
            ref DESKBANDINFO dbi)
        {
            if ((dbi.dwMask & DBIM.MINSIZE) != 0)
            {
                dbi.ptMinSize.X = this.MinSize.Width;
                dbi.ptMinSize.Y = this.MinSize.Height;
            }

            if ((dbi.dwMask & DBIM.MAXSIZE) != 0)
            {
                dbi.ptMaxSize.X = this.MaxSize.Width;
                dbi.ptMaxSize.Y = this.MaxSize.Height;
            }

            if ((dbi.dwMask & DBIM.INTEGRAL) != 0)
            {
                dbi.ptIntegral.X = this.IntegralSize.Width;
                dbi.ptIntegral.Y = this.IntegralSize.Height;
            }

            if ((dbi.dwMask & DBIM.ACTUAL) != 0)
            {
                dbi.ptActual.X = this.Size.Width;
                dbi.ptActual.Y = this.Size.Height;
            }

            if ((dbi.dwMask & DBIM.TITLE) != 0)
            {
                dbi.wszTitle = this.Title;
            }

            if ((dbi.dwMask & DBIM.MODEFLAGS) != 0)
            {
                dbi.dwModeFlags = DBIMF.VARIABLEHEIGHT;
            }

            if ((dbi.dwMask & DBIM.BKCOLOR) != 0)
            {
                //Use the default background color by removing this flag.
                dbi.dwMask &= ~DBIM.BKCOLOR;
            }

            dbi.dwModeFlags |= this.ViewMode;
        }
Esempio n. 3
0
        public virtual void GetBandInfo(
            UInt32 dwBandID,
            UInt32 dwViewMode,
            ref DESKBANDINFO dbi)
        {
            dbi.wszTitle = this.Title;

            dbi.ptActual.X = this.Size.Width;
            dbi.ptActual.Y = this.Size.Height;

            dbi.ptMaxSize.X = this.MaxSize.Width;
            dbi.ptMaxSize.Y = this.MaxSize.Height;

            dbi.ptMinSize.X = this.MinSize.Width;
            dbi.ptMinSize.Y = this.MinSize.Height;

            dbi.ptIntegral.X = this.IntegralSize.Width;
            dbi.ptIntegral.Y = this.IntegralSize.Height;

            dbi.dwModeFlags = DBIM.TITLE | DBIM.ACTUAL | DBIM.MAXSIZE | DBIM.MINSIZE | DBIM.INTEGRAL;
        }
Esempio n. 4
0
 public virtual void GetBandInfo(uint dwBandID, uint dwViewMode, ref DESKBANDINFO dbi) {
     if((dbi.dwMask & DBIM.ACTUAL) != ((DBIM)0)) {
         dbi.ptActual.X = base.Size.Width;
         dbi.ptActual.Y = base.Size.Height;
     }
     if((dbi.dwMask & DBIM.INTEGRAL) != ((DBIM)0)) {
         dbi.ptIntegral.X = -1;
         dbi.ptIntegral.Y = -1;
     }
     if((dbi.dwMask & DBIM.MAXSIZE) != ((DBIM)0)) {
         dbi.ptMaxSize.X = dbi.ptMaxSize.Y = -1;
     }
     if((dbi.dwMask & DBIM.MINSIZE) != ((DBIM)0)) {
         dbi.ptMinSize.X = this.MinSize.Width;
         dbi.ptMinSize.Y = this.MinSize.Height;
     }
     if((dbi.dwMask & DBIM.MODEFLAGS) != ((DBIM)0)) {
         dbi.dwModeFlags = DBIMF.NORMAL;
     }
     if((dbi.dwMask & DBIM.BKCOLOR) != ((DBIM)0)) {
         dbi.dwMask &= ~DBIM.BKCOLOR;
     }
     if((dbi.dwMask & DBIM.TITLE) != ((DBIM)0)) {
         dbi.wszTitle = null;
     }
 }