Inheritance: System.Windows.Forms.NativeWindow
示例#1
0
        public LynnTextbox()
        {
            this.ImeMode = ImeMode.On;

            if (UIManager.Enabled)
            {
                this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
                native2 = new NativeBorder(this, 0xf /* WM_PAINT */, true, false);
                native  = new NativeBorder(this, 0x85 /* WM_NCPAINT */);
            }
        }
示例#2
0
        public LynnTextbox()
        {
            this.ImeMode = ImeMode.On;

            if (UIManager.Enabled)
            {
                this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
                native2 = new NativeBorder(this, 0xf /* WM_PAINT */, true, false);
                native = new NativeBorder(this, 0x85 /* WM_NCPAINT */);
            }
        }
示例#3
0
        public LynnCombobox()
        {
            native = new NativeBorder(this, 0xf /* WM_PAINT */, true, false);
            native2 = new NativeBorder(this, 0x85 /* WM_NCPAINT */, true, false);

            base.DrawMode = DrawMode.OwnerDrawFixed;
            this.IntegralHeight = false;

            stringFormat = new StringFormat(StringFormatFlags.NoClip | StringFormatFlags.NoWrap);
            stringFormat.LineAlignment = StringAlignment.Center;
            stringFormat.Trimming = StringTrimming.EllipsisCharacter;
            stringFormat.HotkeyPrefix = System.Drawing.Text.HotkeyPrefix.None;
            OnFontChanged(EventArgs.Empty);
        }
示例#4
0
        public LynnCombobox()
        {
            native  = new NativeBorder(this, 0xf /* WM_PAINT */, true, false);
            native2 = new NativeBorder(this, 0x85 /* WM_NCPAINT */, true, false);

            base.DrawMode       = DrawMode.OwnerDrawFixed;
            this.IntegralHeight = false;

            stringFormat = new StringFormat(StringFormatFlags.NoClip | StringFormatFlags.NoWrap);
            stringFormat.LineAlignment = StringAlignment.Center;
            stringFormat.Trimming      = StringTrimming.EllipsisCharacter;
            stringFormat.HotkeyPrefix  = System.Drawing.Text.HotkeyPrefix.None;
            OnFontChanged(EventArgs.Empty);
        }