C# Class NanQi.Controls.TextBoxExtend

Inheritance: System.Windows.Forms.TextBox
ファイルを表示 Open project: NanQi/demo

Private Properties

Property Type Description
GetWindowDC System.IntPtr
ReleaseDC int

Protected Methods

Method Description
OnGotFocus ( EventArgs e ) : void

当该控件获得焦点时

OnKeyDown ( KeyEventArgs e ) : void
OnLostFocus ( EventArgs e ) : void

当该控件失去焦点时

OnMouseLeave ( EventArgs e ) : void

当鼠标从该控件移开时

OnMouseMove ( MouseEventArgs e ) : void

鼠标移动到该控件上时

ProcessCmdKey ( Message &msg, Keys keyData ) : bool

Gets a value indicating the state of the P:System.Windows.Forms.TextBoxBase.ShortcutsEnabled property.

WndProc ( Message &m ) : void

获得操作系统消息

Private Methods

Method Description
GetWindowDC ( IntPtr hWnd ) : IntPtr
ReleaseDC ( IntPtr hWnd, IntPtr hDC ) : int

Method Details

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

OnLostFocus() protected method

当该控件失去焦点时
protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseLeave() protected method

当鼠标从该控件移开时
protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseMove() protected method

鼠标移动到该控件上时
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
return void

ProcessCmdKey() protected method

Gets a value indicating the state of the P:System.Windows.Forms.TextBoxBase.ShortcutsEnabled property.
protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg System.Windows.Forms.Message A , passed by reference that represents the window message to process.
keyData Keys One of the values that represents the shortcut key to process.
return bool

WndProc() protected method

获得操作系统消息
protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message
return void