CBCGPShapeProp Class Reference
Inheritance diagram for CBCGPShapeProp:

Collaboration diagram for CBCGPShapeProp:

Detailed Description
A property widget for object shapes.Public Member Functions | |
| CBCGPShapeProp (const CString &strName, int index=0, int size=0, int type=CShape::PointShape, LPCTSTR lpszDescr=NULL) | |
| Constructor for the shape property widget. | |
| virtual void | OnDrawValue (CDC *pDC, CRect rect) |
| Called by the framework to display the property value. | |
| virtual CWnd * | CreateInPlaceEdit (CRect rectEdit, BOOL &bDefaultFormat) |
| The function is called by the framework to create an in-place edit control for a property. | |
Protected Member Functions | |
| virtual CComboBox * | CreateCombo (CWnd *pWndParent, CRect rect) |
| Called by the framework when it needs to create a combo box inside the property. | |
Private Attributes | |
| int | m_type |
| Type of the shape widget. | |
Constructor & Destructor Documentation
| CBCGPShapeProp | ( | const CString & | strName, | |
| int | index = 0, |
|||
| int | size = 0, |
|||
| int | type = CShape::PointShape, |
|||
| LPCTSTR | lpszDescr = NULL | |||
| ) |
Constructor for the shape property widget.
- Parameters:
-
strName The name of the property index The zero-based index of the selected shape size The number of shapes available type The type of the shape lpszDescr The description associated with the property widget
Member Function Documentation
| void OnDrawValue | ( | CDC * | pDC, | |
| CRect | rect | |||
| ) | [virtual] |
Called by the framework to display the property value.
- Parameters:
-
pDC A pointer to a device context. rect The bounding rectangle of the property value.
| CWnd * CreateInPlaceEdit | ( | CRect | rectEdit, | |
| BOOL & | bDefaultFormat | |||
| ) | [virtual] |
The function is called by the framework to create an in-place edit control for a property.
- Parameters:
-
rectEdit The bounding rectangle of the edit control. bDefaultFormat Specifies whether to use the default property format (TRUE) when setting the text to edit control, or not (FALSE).
- Returns:
- A valid pointer to edit control if success, or NULL if the property doesn't support in-place editing.
Called by the framework when it needs to create a combo box inside the property.
- Parameters:
-
pWndParent The parent for the combo box rect The bounding rectangle of the combo box
- Returns:
- A pointer to the newly created CComboBox object.
Member Data Documentation
int m_type [private] |
Type of the shape widget.



