CWndSplitter Class Reference

#include <WndSplitter.h>

List of all members.

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


Detailed Description

Definition at line 21 of file WndSplitter.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

BOOL CWndSplitter::Create ( HINSTANCE  hInst,
HWND  hWndParent,
WndSplitterType  enType = WST_VERTICAL 
)

void CWndSplitter::SetWnd2 ( HWND  hWnd  ) 

void CWndSplitter::SetWnd1 ( HWND  hWnd  ) 

void CWndSplitter::SetRatio ( float  fRatio  ) 

float CWndSplitter::GetRatio (  ) 

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 (  ) 

void CWndSplitter::OnLButtonUp ( POINTS  pt  )  [protected]

void CWndSplitter::OnMouseDrag ( POINTS  pt  )  [protected]

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]


Member Data Documentation

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().

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().


The documentation for this class was generated from the following files:

Generated on Sun May 25 00:20:58 2008 by  doxygen 1.5.6