Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CResizeControl Class Reference

#include <persctl.h>

List of all members.

Public Member Functions

 ~CResizeControl ()
 CResizeControl (HWND hC, CParentInfo &pi)
BOOL Valid () const
CEdgeGetRightEdge ()
BOOL Resize (WORD width, WORD height)
 WRAP (LONG, GetRightGap)
 WRAP (LONG, GetLeftGap)
 WRAP (LONG, GetTopGap)
 WRAP (LONG, GetBottomGap)
 WRAP (LONG, GetWidth)
 WRAP (LONG, GetHeight)
 WRAP (BOOL, IsGrowsWide)
 WRAP (BOOL, IsGrowsHigh)
 WRAP (HWND, GetControl)
 WRAP (BOOL, SetControlAssociations)
 WRAP (int, GetX)
 WRAP (int, GetY)
 WRAP (int, GetTempWidth)
 WRAP (int, GetTempHeight)
 WRAP (LPTSTR, GetClassName)
void SetX (int i)
void SetY (int i)
void SetWidth (int i)
void SetHeight (int i)
DIMENSION GetPreferredSize ()
int Attatchment (CGuide *pGuide)
RECT GetLocation ()

Public Attributes

CResizeControlGenericm_pC
CConstraint m_Cons


Constructor & Destructor Documentation

CResizeControl::~CResizeControl  )  [inline]
 

Definition at line 103 of file persctl.h.

00103 {};

CResizeControl::CResizeControl HWND  hC,
CParentInfo pi
 

Definition at line 22 of file persctl.cpp.

References CResizeControl(), m_pC, and NULL.

Referenced by CResizeControl().

00023 { 00024 // Get the classname for the control. 00025 TCHAR szClassName[64]; 00026 m_pC=NULL; 00027 ::GetClassName(hC,szClassName,sizeof(szClassName)); 00028 00029 /* 00030 // See what class can persist this type of control. 00031 // can use lookup in the registry to determin. 00032 if(lstrcmpi(szClassName,"Edit")==0) 00033 m_pC= new CResizeEditControl(hC, pi); 00034 if(lstrcmpi(szClassName,"Button")==0) 00035 m_pC= new CResizeButtonControl(hC, pi); 00036 // if(lstrcmpi(szClassName,"ComboBox")==0) 00037 // m_pC= new CResizeComboControl(hC, pi); 00038 */ 00039 00040 // There is no Resize form of this control. 00041 if(!m_pC) 00042 { 00043 // OutputDebugString("Cannot persist:"); 00044 // OutputDebugString(szClassName); 00045 // OutputDebugString("\n"); 00046 // 00047 // We need to map it though. 00048 // 00049 m_pC=new CResizeControlGeneric( hC, pi, this ); 00050 } 00051 }


Member Function Documentation

int CResizeControl::Attatchment CGuide pGuide  )  [inline]
 

Definition at line 143 of file persctl.h.

References CResizeControlGeneric::Attatchment(), Attatchment(), and m_pC.

Referenced by Attatchment(), and CEdge::Attatchment().

00143 { return m_pC->Attatchment(pGuide); }

RECT CResizeControl::GetLocation  )  [inline]
 

Definition at line 144 of file persctl.h.

References CResizeControlGeneric::GetLocation(), and m_pC.

Referenced by CResizeDlg::FindControls(), CResizeDlg::PlaceControls(), and CResizeDlg::SpecialRowCol().

00144 { return m_pC->GetLocation(); }

DIMENSION CResizeControl::GetPreferredSize  )  [inline]
 

Definition at line 142 of file persctl.h.

References DIMENSION, CResizeControlGeneric::GetPreferredSize(), and m_pC.

00142 { return m_pC->GetPreferredSize(); }

CEdge* CResizeControl::GetRightEdge  )  [inline]
 

Definition at line 114 of file persctl.h.

References CResizeControlGeneric::GetRightEdge(), m_pC, and NULL.

00114 { if(m_pC) return m_pC->GetRightEdge(); return NULL; }

BOOL CResizeControl::Resize WORD  width,
WORD  height
[inline]
 

Definition at line 116 of file persctl.h.

References BOOL, FALSE, m_pC, CResizeControlGeneric::Resize(), and Resize().

Referenced by Resize().

00116 { if(m_pC) return m_pC->Resize(width, height); return FALSE; }

void CResizeControl::SetHeight int  i  )  [inline]
 

Definition at line 140 of file persctl.h.

References m_pC, and SetHeight().

Referenced by SetHeight().

00140 { m_pC->SetTempHeight(i); }

void CResizeControl::SetWidth int  i  )  [inline]
 

Definition at line 139 of file persctl.h.

References m_pC, and SetWidth().

Referenced by SetWidth().

00139 { m_pC->SetTempWidth(i); }

void CResizeControl::SetX int  i  )  [inline]
 

Definition at line 137 of file persctl.h.

References m_pC, and SetX().

Referenced by SetX().

00137 { m_pC->SetX(i); }

void CResizeControl::SetY int  i  )  [inline]
 

Definition at line 138 of file persctl.h.

References m_pC, and SetY().

Referenced by SetY().

00138 { m_pC->SetY(i); }

BOOL CResizeControl::Valid  )  const [inline]
 

Definition at line 105 of file persctl.h.

References BOOL, and m_pC.

Referenced by CResizeDlg::FindControls().

00105 { if(m_pC) return true; return false; }

CResizeControl::WRAP LPTSTR  ,
GetClassName 
 

CResizeControl::WRAP int  ,
GetTempHeight 
 

CResizeControl::WRAP int  ,
GetTempWidth 
 

CResizeControl::WRAP int  ,
GetY 
 

CResizeControl::WRAP int  ,
GetX 
 

CResizeControl::WRAP BOOL  ,
SetControlAssociations 
 

CResizeControl::WRAP HWND  ,
GetControl 
 

CResizeControl::WRAP BOOL  ,
IsGrowsHigh 
 

CResizeControl::WRAP BOOL  ,
IsGrowsWide 
 

CResizeControl::WRAP LONG  ,
GetHeight 
 

CResizeControl::WRAP LONG  ,
GetWidth 
 

CResizeControl::WRAP LONG  ,
GetBottomGap 
 

CResizeControl::WRAP LONG  ,
GetTopGap 
 

CResizeControl::WRAP LONG  ,
GetLeftGap 
 

CResizeControl::WRAP LONG  ,
GetRightGap 
 


Member Data Documentation

CConstraint CResizeControl::m_Cons
 

Definition at line 146 of file persctl.h.

Referenced by CResizeDlg::PlaceControls(), CResizeDlg::ResizeControls(), and CResizeDlg::SpecialRowCol().

CResizeControlGeneric* CResizeControl::m_pC
 

Definition at line 106 of file persctl.h.

Referenced by Attatchment(), CResizeControl(), GetLocation(), GetPreferredSize(), GetRightEdge(), Resize(), SetHeight(), SetWidth(), SetX(), SetY(), and Valid().


The documentation for this class was generated from the following files:
Generated on Sat May 15 19:46:28 2004 for test by doxygen 1.3.7