BCGControlBar Pro for MFC
virtual CWnd* CBCGPProp::CreateInPlaceEdit ( CRect  rectEdit,
BOOL &  bDefaultFormat 
)
virtual

Called by the framework when it needs to create an in-place edit control for a property.

Returns
A valid pointer to edit control if success, or NULL if the property doesn't support in-place editing.

The default implementation handles the following property types:

VT_BSTR, VT_R4, VT_R8, VT_I2, VT_I4, VT_BOOL.

If either m_strEditMask, or m_strEditTempl or m_strValidChars (you can set these values in constructor) is not empty the function creates CBCGPMaskEdit control. Otherwise it creates the regular CEdit control.

Override this method in a derived class to supply your own edit control.

Parameters
rectEditThe bounding rectangle of the edit control.
bDefaultFormatSpecifies whether to use the default property format (TRUE) when setting the text to edit control, or not (FALSE).