CTreeSettingsPage Class Reference

#include <TreeSettingsPage.h>

Inheritance diagram for CTreeSettingsPage:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 CTreeSettingsPage (CString name, UINT nIDTemplate)
 CTreeSettingsPage (CString TreeName, CString HeaderName, UINT nIDTemplate)
virtual BOOL PreTranslateMessage (MSG *pMsg)

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
virtual void OnOK ()
virtual void OnCancel ()
virtual bool OnSetActive ()
virtual bool OnKillActive ()
virtual bool OnQueryCancel ()
virtual void GetMinSize (int &width, int &height)
virtual CString GetName ()
 name of this page

virtual CString GetHeaderName ()
UINT GetDlgID ()
 dialog template id for the dialog


Protected Attributes

CString m_name
CString m_HeaderName
UINT m_dlgID
int m_minWidth
int m_minHeight
bool m_bInitMinSize

Friends

class CTreeSettingsDlg

Detailed Description

Class for one page in the settings dialog. The dialog box template used must have WS_CHILD and DS_CONTROL atributes set and no borders, the DS_CONTROL atribut makes tab work properly. This class can be used directly to create for example an empty page or a page with only text (maybe some help text or a description of the subpages) or it can be inherited from.

See also:
CTreeSettingsDlg


Constructor & Destructor Documentation

CTreeSettingsPage::CTreeSettingsPage CString  name,
UINT  nIDTemplate
 

Constructor.

Parameters:
name name used in the tree
nIDTemplate dialog template id


Member Function Documentation

void CTreeSettingsPage::GetMinSize int &  width,
int &  height
[protected, virtual]
 

This function is used by CTreeSettingsDlg to get the minimum allowed size of the page. The default implementation of this function gets the windows size at first call and then uses that for width and height.

See also:
CTreeSettingsDlg
Parameters:
width minimum allowed width of the page
height minimum allowed heith of the page

bool CTreeSettingsPage::OnKillActive  )  [protected, virtual]
 

Called when the page is about to be deactivated.

Returns:
true to allow the page to be deactivated

bool CTreeSettingsPage::OnQueryCancel  )  [protected, virtual]
 

Called when cancel is pressed in CTreeSettingsDlg but before the dialog is closed. This function allows the page to abort the cancel.

Returns:
true to allow the cancel to continue or false to disalow cancel

bool CTreeSettingsPage::OnSetActive  )  [protected, virtual]
 

Called when the page is about to be activated.

Returns:
true to allow the page to be activated

Reimplemented in CTreeSettingsOleProperties.


The documentation for this class was generated from the following files:
Generated on Mon Oct 27 09:55:00 2003 for DScaler by doxygen 1.3.4