コード例 #1
0
ファイル: BrowserComboBox.cs プロジェクト: nagyist/datavault
            /// <summary>
            /// The native window's original handle is released
            /// and the handle of the TextBox is assigned to it.
            /// </summary>
            public ComboEditWindow(BrowserComboBox owner)
            {
                this.owner = owner;

                NativeShellAPI.COMBOBOXINFO info = new NativeShellAPI.COMBOBOXINFO();
                info.cbSize = Marshal.SizeOf(typeof(NativeShellAPI.COMBOBOXINFO));
                NativeShellAPI.GetComboBoxInfo(owner.ComboBox.Handle, ref info);

                if (!this.Handle.Equals(IntPtr.Zero))
                {
                    this.ReleaseHandle();
                }
                this.AssignHandle(info.hwndEdit);
            }
コード例 #2
0
ファイル: BrowserComboBox.cs プロジェクト: xeno-by/datavault
            /// <summary>
            /// The native window's original handle is released 
            /// and the handle of the TextBox is assigned to it.
            /// </summary>
            public ComboEditWindow(BrowserComboBox owner)
            {
                this.owner = owner;

                NativeShellAPI.COMBOBOXINFO info = new NativeShellAPI.COMBOBOXINFO();
                info.cbSize = Marshal.SizeOf(typeof(NativeShellAPI.COMBOBOXINFO));
                NativeShellAPI.GetComboBoxInfo(owner.ComboBox.Handle, ref info);

                if (!this.Handle.Equals(IntPtr.Zero))
                {
                    this.ReleaseHandle();
                }
                this.AssignHandle(info.hwndEdit);
            }