Ejemplo n.º 1
0
            /// <summary>
            /// Attaches this class to a Combo Box.
            /// </summary>
            /// <param name="comboBox">The Combo Box to attach to and make
            /// flat.</param>
            public void Attach(
                System.Windows.Forms.Control comboBox,
                FlatControl owner
                )
            {
                this.owner = owner;
                IntPtr handle = comboBox.Handle;

                this.textBoxHandle = GetWindow(handle, GW_CHILD);
                this.AssignHandle(this.textBoxHandle);
            }
Ejemplo n.º 2
0
            /// <summary>
            /// Attaches this class to a Combo Box.
            /// </summary>
            /// <param name="comboBox">The Combo Box to attach to and make
            /// flat.</param>
            /// <param name="owner">The owner of the Combo Box </param>
            public void Attach(
                System.Windows.Forms.Control comboBox,
                FlatControl owner
                )
            {
                this.owner = owner;
                IntPtr handle = comboBox.Handle;

                this.parentHandle = GetParent(handle);
                this.AssignHandle(this.parentHandle);
            }