C# Class DroidExplorer.UI.StickyWindow

Inheritance: System.Windows.Forms.NativeWindow
ファイルを表示 Open project: camalot/droidexplorer

Public Methods

Method Description
RegisterExternalReferenceForm ( Form frmExternal ) : void

Register a new form as an external reference form. All Sticky windows will try to stick to the external references Use this to register your MainFrame so the child windows try to stick to it, when your MainFrame is NOT a sticky window

StickyWindow ( Form form ) : System

Make the form Sticky

UnregisterExternalReferenceForm ( Form frmExternal ) : void

Unregister a form from the external references. RegisterExternalReferenceForm

Private Methods

Method Description
Cancel ( ) : void
DefaultMsgProcessor ( Message &m ) : bool

Processes messages during normal operations (while the form is not resized or moved)

EndMove ( ) : void
EndResize ( ) : void
Move ( Point p ) : void
MoveMsgProcessor ( Message &m ) : bool
Move_Stick ( Rectangle toRect, bool bInsideStick ) : void

NormalizeInside ( int iP1, int iM1, int iM2 ) : int
OnHandleChange ( ) : void
OnNCLButtonDown ( int iHitTest, Point point ) : bool

Checks where the click was in the NC area and starts move or resize operation

Resize ( Point p ) : void
ResizeMsgProcessor ( Message &m ) : bool
Resize_Stick ( Rectangle toRect, bool bInsideStick ) : void
StartMove ( ) : void
StartResize ( ResizeDir resDir ) : bool
StickyWindow ( ) : System
WndProc ( Message &m ) : void

Method Details

RegisterExternalReferenceForm() public static method

Register a new form as an external reference form. All Sticky windows will try to stick to the external references Use this to register your MainFrame so the child windows try to stick to it, when your MainFrame is NOT a sticky window
public static RegisterExternalReferenceForm ( Form frmExternal ) : void
frmExternal System.Windows.Forms.Form External window that will be used as reference
return void

StickyWindow() public method

Make the form Sticky
public StickyWindow ( Form form ) : System
form System.Windows.Forms.Form Form to be made sticky
return System

UnregisterExternalReferenceForm() public static method

Unregister a form from the external references. RegisterExternalReferenceForm
public static UnregisterExternalReferenceForm ( Form frmExternal ) : void
frmExternal System.Windows.Forms.Form External window that will was used as reference
return void