#include <WndSplitter.h>
Public Member Functions | |
| BOOL | Create (HINSTANCE hInst, HWND hWndParent, WndSplitterType enType=WST_VERTICAL) |
| void | SetWnd2 (HWND hWnd) |
| void | SetWnd1 (HWND hWnd) |
| void | SetRatio (float fRatio) |
| float | GetRatio () |
| void | RecalRatio (BOOL bWnd1MustNotResize=TRUE) |
| void | SetMinDimensions (int wnd1, int wnd2) |
| void | ApplyRatio () |
| CWndSplitter () | |
| virtual | ~CWndSplitter () |
Public Attributes | |
| HWND | m_wndSplitter |
Protected Member Functions | |
| void | OnLButtonUp (POINTS pt) |
| void | OnMouseDrag (POINTS pt) |
| void | OnCaptureChanged () |
| void | OnLButtonDown () |
| void | OnPaint () |
| void | DrawSizingFrame () |
Static Protected Member Functions | |
| static LRESULT CALLBACK | _wndProc (HWND hWnd, UINT uMsg, WPARAM wp, LPARAM lp) |
Protected Attributes | |
| BOOL | m_bDragging |
| int | m_dim |
| float | m_ratio |
| WndSplitterType | m_type |
| HWND | m_wndParent |
| HWND | m_wnd1 |
| HWND | m_wnd2 |
| int | m_startDrag |
| int | m_drag |
| int | m_dim1min |
| int | m_dim2min |
Definition at line 21 of file WndSplitter.h.
| CWndSplitter::CWndSplitter | ( | ) |
Definition at line 16 of file WndSplitter.cpp.
References FALSE, m_bDragging, m_dim, m_dim1min, m_dim2min, m_ratio, and m_startDrag.
| CWndSplitter::~CWndSplitter | ( | ) | [virtual] |
Definition at line 25 of file WndSplitter.cpp.
| BOOL CWndSplitter::Create | ( | HINSTANCE | hInst, | |
| HWND | hWndParent, | |||
| WndSplitterType | enType = WST_VERTICAL | |||
| ) |
Definition at line 30 of file WndSplitter.cpp.
References _wndProc(), LONG, m_type, m_wndParent, m_wndSplitter, NULL, TRUE, and WST_VERTICAL.
Referenced by CSpiderWnd::OnCreate(), CShedulerWnd::OnCreate(), CHFE_ListLog::OnCreate(), CFlashVideoDownloadsWnd::OnCreate(), CDownloadsWnd::OnCreate(), and CDownloads_Downloads::OnCreate().
| void CWndSplitter::SetWnd2 | ( | HWND | hWnd | ) |
Definition at line 87 of file WndSplitter.cpp.
References m_wnd2.
Referenced by CDownloadsWnd::ApplyDWWN(), CSpiderWnd::OnCreate(), CShedulerWnd::OnCreate(), CHFE_ListLog::OnCreate(), CFlashVideoDownloadsWnd::OnCreate(), and CDownloads_Downloads::OnCreate().
| void CWndSplitter::SetWnd1 | ( | HWND | hWnd | ) |
Definition at line 82 of file WndSplitter.cpp.
References m_wnd1.
Referenced by CSpiderWnd::OnCreate(), CShedulerWnd::OnCreate(), CHFE_ListLog::OnCreate(), CFlashVideoDownloadsWnd::OnCreate(), CDownloadsWnd::OnCreate(), and CDownloads_Downloads::OnCreate().
| void CWndSplitter::SetRatio | ( | float | fRatio | ) |
Definition at line 299 of file WndSplitter.cpp.
References m_ratio.
Referenced by CSpiderWnd::OnCreate(), CShedulerWnd::OnCreate(), CHFE_ListLog::OnCreate(), CFlashVideoDownloadsWnd::OnCreate(), and CDownloads_Downloads::OnCreate().
| float CWndSplitter::GetRatio | ( | ) |
Definition at line 323 of file WndSplitter.cpp.
References m_ratio.
Referenced by CSpiderWnd::SaveAll(), CShedulerWnd::SaveAll(), CFlashVideoDownloadsWnd::SaveAll(), CHFE_ListLog::SaveState(), and CDownloads_Downloads::SaveState().
| void CWndSplitter::RecalRatio | ( | BOOL | bWnd1MustNotResize = TRUE |
) |
Definition at line 304 of file WndSplitter.cpp.
References m_dim, m_ratio, m_type, m_wnd1, m_wnd2, m_wndParent, and WST_VERTICAL.
Referenced by CDownloadsWnd::OnSize().
| void CWndSplitter::SetMinDimensions | ( | int | wnd1, | |
| int | wnd2 | |||
| ) |
Definition at line 293 of file WndSplitter.cpp.
References m_dim1min, and m_dim2min.
Referenced by CFlashVideoDownloadsWnd::OnCreate(), and CDownloads_Downloads::OnCreate().
| void CWndSplitter::ApplyRatio | ( | ) |
Definition at line 92 of file WndSplitter.cpp.
References LONG, m_dim, m_ratio, m_type, m_wnd1, m_wnd2, m_wndParent, m_wndSplitter, TRUE, WST_HORIZONTAL, and WST_VERTICAL.
Referenced by CDownloadsWnd::ApplyDWWN(), OnLButtonUp(), CSpiderWnd::OnSize(), CShedulerWnd::OnSize(), CHFE_ListLog::OnSize(), CFlashVideoDownloadsWnd::OnSize(), CDownloadsWnd::OnSize(), and CDownloads_Downloads::OnSize().
| void CWndSplitter::OnLButtonUp | ( | POINTS | pt | ) | [protected] |
Definition at line 250 of file WndSplitter.cpp.
References ApplyRatio(), DrawSizingFrame(), FALSE, m_bDragging, m_drag, m_ratio, m_startDrag, m_type, m_wndParent, m_wndSplitter, NULL, and WST_VERTICAL.
Referenced by _wndProc().
| void CWndSplitter::OnMouseDrag | ( | POINTS | pt | ) | [protected] |
Definition at line 214 of file WndSplitter.cpp.
References DrawSizingFrame(), m_dim1min, m_dim2min, m_drag, m_startDrag, m_type, m_wndParent, m_wndSplitter, and WST_VERTICAL.
Referenced by _wndProc().
| void CWndSplitter::OnCaptureChanged | ( | ) | [protected] |
Definition at line 282 of file WndSplitter.cpp.
References DrawSizingFrame(), FALSE, m_startDrag, m_wndSplitter, and NULL.
Referenced by _wndProc().
| void CWndSplitter::OnLButtonDown | ( | ) | [protected] |
Definition at line 153 of file WndSplitter.cpp.
References DrawSizingFrame(), m_bDragging, m_dim, m_drag, m_startDrag, m_type, m_wndSplitter, TRUE, and WST_VERTICAL.
Referenced by _wndProc().
| void CWndSplitter::OnPaint | ( | ) | [protected] |
Definition at line 135 of file WndSplitter.cpp.
References DrawHorizontalFrame(), DrawVerticalFrame(), m_type, m_wndSplitter, and WST_VERTICAL.
Referenced by _wndProc().
| LRESULT CALLBACK CWndSplitter::_wndProc | ( | HWND | hWnd, | |
| UINT | uMsg, | |||
| WPARAM | wp, | |||
| LPARAM | lp | |||
| ) | [static, protected] |
Definition at line 51 of file WndSplitter.cpp.
References OnCaptureChanged(), OnLButtonDown(), OnLButtonUp(), OnMouseDrag(), and OnPaint().
Referenced by Create().
| void CWndSplitter::DrawSizingFrame | ( | ) | [protected] |
Definition at line 173 of file WndSplitter.cpp.
References LPPOINT, m_dim, m_drag, m_type, m_wndParent, m_wndSplitter, and WST_VERTICAL.
Referenced by OnCaptureChanged(), OnLButtonDown(), OnLButtonUp(), and OnMouseDrag().
Definition at line 42 of file WndSplitter.h.
Referenced by ApplyRatio(), Create(), DrawSizingFrame(), OnCaptureChanged(), OnLButtonDown(), OnLButtonUp(), OnMouseDrag(), OnPaint(), CDownloadsWnd::ShowAllGroups(), CDownloads_Downloads::ShowDLInfo(), CShedulerWnd::ShowLog(), CHFE_ListLog::ShowLog(), and CSpiderWnd::ShowTree().
BOOL CWndSplitter::m_bDragging [protected] |
Definition at line 45 of file WndSplitter.h.
Referenced by CWndSplitter(), OnLButtonDown(), and OnLButtonUp().
int CWndSplitter::m_dim [protected] |
Definition at line 56 of file WndSplitter.h.
Referenced by ApplyRatio(), CWndSplitter(), DrawSizingFrame(), OnLButtonDown(), and RecalRatio().
float CWndSplitter::m_ratio [protected] |
Definition at line 57 of file WndSplitter.h.
Referenced by ApplyRatio(), CWndSplitter(), GetRatio(), OnLButtonUp(), RecalRatio(), and SetRatio().
WndSplitterType CWndSplitter::m_type [protected] |
Definition at line 58 of file WndSplitter.h.
Referenced by ApplyRatio(), Create(), DrawSizingFrame(), OnLButtonDown(), OnLButtonUp(), OnMouseDrag(), OnPaint(), and RecalRatio().
HWND CWndSplitter::m_wndParent [protected] |
Definition at line 59 of file WndSplitter.h.
Referenced by ApplyRatio(), Create(), DrawSizingFrame(), OnLButtonUp(), OnMouseDrag(), and RecalRatio().
HWND CWndSplitter::m_wnd1 [protected] |
Definition at line 60 of file WndSplitter.h.
Referenced by ApplyRatio(), RecalRatio(), and SetWnd1().
HWND CWndSplitter::m_wnd2 [protected] |
Definition at line 60 of file WndSplitter.h.
Referenced by ApplyRatio(), RecalRatio(), and SetWnd2().
int CWndSplitter::m_startDrag [protected] |
Definition at line 62 of file WndSplitter.h.
Referenced by CWndSplitter(), OnCaptureChanged(), OnLButtonDown(), OnLButtonUp(), and OnMouseDrag().
int CWndSplitter::m_drag [protected] |
Definition at line 62 of file WndSplitter.h.
Referenced by DrawSizingFrame(), OnLButtonDown(), OnLButtonUp(), and OnMouseDrag().
int CWndSplitter::m_dim1min [protected] |
Definition at line 63 of file WndSplitter.h.
Referenced by CWndSplitter(), OnMouseDrag(), and SetMinDimensions().
int CWndSplitter::m_dim2min [protected] |
Definition at line 63 of file WndSplitter.h.
Referenced by CWndSplitter(), OnMouseDrag(), and SetMinDimensions().
1.5.6