Exemplo n.º 1
0
        public SKinComboBox()
        {
            InitializeComponent();

            this.gotCBI = InitComboBoxInfo(this);
            if (this.gotCBI)
            {
                this.cboListRect = new Win32.RECT();
                this.si          = new Win32.ScrollInfo();
                mDropdown        = new DropdownWindow(this);
                mDropdown.AssignHandle(cbi.hwndList);
            }
        }
Exemplo n.º 2
0
        protected override void OnDropDown(System.EventArgs e)
        {
            base.OnDropDown(e);

            InitComboBoxInfo(this);
            Win32.GetClientRect(cbi.hwndList, ref cboListRect);

            //Win32.SendMessageCb(this.Handle, 0x164, IntPtr.Zero, out cbi);

            mDropdown = new DropdownWindow(this);
            mDropdown.AssignHandle(cbi.hwndList);

            //int listStyle = Win32.GetWindowLong(cbi.hwndList, Win32.GWL_STYLE);
            //listStyle |= Win32.WS_VSCROLL | Win32.WS_HSCROLL;
            //listStyle |= Win32.WS_VSCROLL;
            //listStyle = Win32.SetWindowLong(cbi.hwndList, Win32.GWL_STYLE, listStyle);

            //Win32.SendMessage(this.cbi.hwndList, (int)Win32.LB_SETHORIZONTALEXTENT, (int)80, (int)IntPtr.Zero);
        }