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
ファイル: LynnTextbox.cs プロジェクト: NekoProject/NekoKun
        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
ファイル: LynnCombobox.cs プロジェクト: NekoProject/NekoKun
        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);
        }