C# Class YamuiFramework.Controls.YamuiComboBox

Inheritance: System.Windows.Forms.ComboBox
Mostrar archivo Open project: jcaillon/3P

Private Properties

Property Type Description
CreatePen System.IntPtr
DeleteObject bool
DrawTextPrompt void
ExcludeClipRect int
GetComboBoxInfo bool
GetWindowDC System.IntPtr
GetWindowRect bool
OnPaintForeground void
PaintTransparentBackground void
Rectangle void
ReleaseDC int
SelectObject System.IntPtr
SetFocus System.IntPtr
dropDownCheck_Tick void

Public Methods

Method Description
DrawNativeBorder ( IntPtr handle ) : void

Non client area border drawing

GetControlListBoxMessage ( IntPtr handle ) : Message

Creates a default WM_CTLCOLORLISTBOX message

GetListHandle ( IntPtr handle ) : IntPtr

Gets the list control of a combo box

GetPreferredSize ( Size proposedSize ) : Size
RGB ( int R, int G, int B ) : int
YamuiComboBox ( ) : System

Protected Methods

Method Description
OnDrawItem ( DrawItemEventArgs e ) : void
OnDropDown ( EventArgs e ) : void

On drop down

OnEnter ( EventArgs e ) : void
OnGotFocus ( EventArgs e ) : void
OnKeyDown ( KeyEventArgs e ) : void
OnKeyUp ( KeyEventArgs e ) : void
OnLeave ( EventArgs e ) : void
OnLostFocus ( EventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseEnter ( EventArgs e ) : void
OnMouseLeave ( EventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnPaintBackground ( PaintEventArgs e ) : void
OnSelectedIndexChanged ( EventArgs e ) : void
WndProc ( Message &m ) : void

Private Methods

Method Description
CreatePen ( PenStyles enPenStyle, int nWidth, int crColor ) : IntPtr
DeleteObject ( IntPtr hObject ) : bool
DrawTextPrompt ( Graphics g ) : void
ExcludeClipRect ( IntPtr hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect ) : int
GetComboBoxInfo ( IntPtr hWnd, COMBOBOXINFO &pcbi ) : bool
GetWindowDC ( IntPtr hWnd ) : IntPtr
GetWindowRect ( IntPtr hWnd, System.Windows.Forms.RECT &lpRect ) : bool
OnPaintForeground ( PaintEventArgs e ) : void
PaintTransparentBackground ( Graphics graphics, Rectangle clipRect ) : void
Rectangle ( IntPtr hdc, int X1, int Y1, int X2, int Y2 ) : void
ReleaseDC ( IntPtr hWnd, IntPtr hDC ) : int
SelectObject ( IntPtr hdc, IntPtr hObject ) : IntPtr
SetFocus ( IntPtr hWnd ) : IntPtr
dropDownCheck_Tick ( object sender, EventArgs e ) : void

Checks when the drop down is fully visible

Method Details

DrawNativeBorder() public method

Non client area border drawing
public DrawNativeBorder ( IntPtr handle ) : void
handle System.IntPtr The handle to the control
return void

GetControlListBoxMessage() public method

Creates a default WM_CTLCOLORLISTBOX message
public GetControlListBoxMessage ( IntPtr handle ) : Message
handle System.IntPtr The drop down handle
return System.Windows.Forms.Message

GetListHandle() public static method

Gets the list control of a combo box
public static GetListHandle ( IntPtr handle ) : IntPtr
handle System.IntPtr Handle of the combo box itself
return System.IntPtr

GetPreferredSize() public method

public GetPreferredSize ( Size proposedSize ) : Size
proposedSize System.Drawing.Size
return System.Drawing.Size

OnDrawItem() protected method

protected OnDrawItem ( DrawItemEventArgs e ) : void
e System.Windows.Forms.DrawItemEventArgs
return void

OnDropDown() protected method

On drop down
protected OnDropDown ( EventArgs e ) : void
e System.EventArgs
return void

OnEnter() protected method

protected OnEnter ( EventArgs e ) : void
e System.EventArgs
return void

OnGotFocus() protected method

protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs
return void

OnKeyDown() protected method

protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
return void

OnKeyUp() protected method

protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
return void

OnLeave() protected method

protected OnLeave ( EventArgs e ) : void
e System.EventArgs
return void

OnLostFocus() protected method

protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseDown() protected method

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseEnter() protected method

protected OnMouseEnter ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseLeave() protected method

protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseUp() protected method

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnPaintBackground() protected method

protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnSelectedIndexChanged() protected method

protected OnSelectedIndexChanged ( EventArgs e ) : void
e System.EventArgs
return void

RGB() public static method

public static RGB ( int R, int G, int B ) : int
R int
G int
B int
return int

WndProc() protected method

protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message
return void

YamuiComboBox() public method

public YamuiComboBox ( ) : System
return System