C# 클래스 Blue.Windows.StickyWindow

A windows that Sticks to other windows of the same type when moved or resized. You get a nice way of organizing multiple top-level windows. Quite similar with WinAmp 2.x style of sticking the windows
상속: System.Windows.Forms.NativeWindow
파일 보기 프로젝트 열기: pho/WindViewer 1 사용 예제들

공개 메소드들

메소드 설명
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.Collections

Make the form Sticky

UnregisterExternalReferenceForm ( Form frmExternal ) : void

Unregister a form from the external references. RegisterExternalReferenceForm

비공개 메소드들

메소드 설명
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
WndProc ( Message &m ) : void

메소드 상세

RegisterExternalReferenceForm() 공개 정적인 메소드

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
리턴 void

StickyWindow() 공개 메소드

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

UnregisterExternalReferenceForm() 공개 정적인 메소드

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
리턴 void