|
Public Member Functions |
| BOOL | SetSizeCursor (POINT pt, BOOL bMove) |
| | Sets the appropriate window sizing cursor.
|
| BOOL | SetAppBarPos (LPRECT pRect) |
| | Allocates desktop space for docking.
|
| BOOL | OnSize () |
| | Call when window is resized.
|
| BOOL | OnMove (int x, int y) |
| | Call when window is moved.
|
| BOOL | GetAppBarPos (LPRECT pRect) |
| | Returns the desired position of the window.
|
| LRESULT | OnAppBarMsg (WPARAM wParam, LPARAM lParam) |
| | Call in response to app bar message.
|
|
void | DestroyAppBar () |
| | Destroys the app bar.
|
| BOOL | CreateAppBar (LPRECT pRect=NULL) |
| | Reserves desktop space for app bar.
|
|
void | KillAppBar () |
| | Releases desktop space for app bar.
|
| BOOL | InitAppBar (HWND hWnd, UINT uMsg) |
| | Initializes app bar handling.
|
| BOOL | Dock (HWND hWnd, LPPOINT pt, LPPOINT cursor) |
| | Call to dock the app bar.
|
| BOOL | OnMouseMove (UINT nFlags, POINT point) |
| | Call in response to WM_MOUSEMOVE.
|
| BOOL | OnLButtonUp () |
| | Call in response to WM_LBUTTONUP.
|
| void | OnLButtonDown (HWND hWnd, POINT point, HWND hCapture=NULL) |
| | Call in response to WM_LBUTTONDOWN.
|
|
| CDlgMover () |
| | Constructor.
|
|
virtual | ~CDlgMover () |
| | Destructor.
|
|
BOOL | IsMoving () |
| | Returns non-zero if window is being moved.
|
| void | SetFrameWindow (HWND hWnd) |
| | Sets the frame window handle.
|
| void | SetDock (long x, long y) |
| | Sets dock point.
|
| void | SizeDock (BOOL b) |
| | Allows window to be sized when docked.
|
| void | Size (DWORD dw, HWND hWnd) |
| | Sets initial undocked window size.
|
| void | SetDockingSize (long w, long h) |
| | Sets initial docked size.
|
| void | SetDragPoint (long x, long y) |
| | Sets the drag point.
|
| void | SetMinTrackSize (long cx, long cy) |
| | Sets the minimum size for the window.
|
| void | SetMaxTrackSize (long cx, long cy) |
| | Sets the maximum size for the window.
|
| void | AllowDocking (DWORD f) |
| | Sets allowed docking positions.
|
| void | SetEdgeSize (long x, long y) |
| | Sets the size of the resizing edge area.
|
Static Public Member Functions |
| static BOOL | GetPos (HWND hWnd, POINT *pPoint) |
| | Returns window position.
|
| static BOOL | SetPos (HWND hWnd, POINT point) |
| | Sets window position.
|
This encapsulates the functionality needed to create a dockable window.