RTD documentation


Main Page   Class Hierarchy   Compound List   Compound Members  

Crtd_LabDlg Class Reference

Dialog control used for editing resources in run-time. More...

#include <rtd_LabDlg.h>

Inheritance diagram for Crtd_LabDlg:

Crtd_BaseDlg CDialog CWnd List of all members.

Public Methods

 Crtd_LabDlg ()
 Constructor.

virtual ~Crtd_LabDlg ()
 Destructor.

void CleanUp ()
 Frees resources (fonts etc).

void SetTrackerID (UINT nID)
 Sets control ID for the tracker to use.

BOOL CreateEDialog (UINT nID, CWnd* pParent)
 Creates dialog inside a window control for editing. More...

CSize GetMinSize ()
 Returns minimum dialog's size that can hold all visible controls. More...

BOOL TrackSetCursor (UINT nHitTest)
 Delegates SetCursor function to the active tracker.

BOOL TrackItem (CPoint pt)
 Tells if the point is over a control that can be tracked. More...

void TrackMove (CSize szOffset, BOOL bMid)
 Moves tracker by specified offset. More...

UINT GetTrackerID ()
 Returns currently tracked control item ID.

UINT GetDlgItemFromPoint (CPoint pt)
 Returns dialog item control ID under specified point;.


Detailed Description

Dialog control used for editing resources in run-time.

Crtd_LabDlg takes it's properties from the dialog that is being edited. Windows styles of the dialog are changed in order to allow it to be displayed in a window control.

Version:
1.3
Date:
01.01.2000


Member Function Documentation

BOOL Crtd_LabDlg::CreateEDialog ( UINT nID,
CWnd * pParent )
 

Creates dialog inside a window control for editing.

Sets dialog's window styles and adjusts resource handle to enable displaying of the dialog inside a window control.

Parameters:
nID   dialog's resource ID
pParent   pointer to the windows control that hosts the dialog
Returns:
TRUE if successful.

CSize Crtd_LabDlg::GetMinSize ( )
 

Returns minimum dialog's size that can hold all visible controls.

Scans all visible dialog controls and find the minimum size that can hold all of the controls.

Returns:
minimum allowed dialog size for currently visible controls.

BOOL Crtd_LabDlg::TrackItem ( CPoint pt )
 

Tells if the point is over a control that can be tracked.

If the specified point is over a control, call Track function of the tracker and update it's position.

Parameters:
pt   point over dialog's area.
Returns:
TRUE if a control has been tracked.

void Crtd_LabDlg::TrackMove ( CSize szOffset,
BOOL bMid )
 

Moves tracker by specified offset.

The tracker control is repositioned depending on the specified size and the type of the movement (resizing or move).

Parameters:
szOffset   offset used to move the tracker.
bMid   if TRUE - move has been requested, otherwise it is a resize operation.


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

Last reviewed on Saturday February 07, 2004. Latest version is available at hamradio.idealog.net