CMFCRibbonEdit Class
Implements an edit control that is located on a ribbon bar.
class CMFCRibbonEdit : public CMFCRibbonButton
Members
Public Constructors
Name |
Description |
---|---|
Constructs a CMFCRibbonEdit object. |
Public Methods
Name |
Description |
---|---|
Indicates whether the height of the CMFCRibbonEdit control can increase vertically to the height of a ribbon row. |
|
Constructs a CMFCRibbonEdit object. |
|
Copies the state of the specified CMFCRibbonEdit object to the current CMFCRibbonEdit object. |
|
Creates a new text box for the CMFCRibbonEdit object. |
|
Destroys the CMFCRibbonEdit object. |
|
Drops down a list box. |
|
Enables and sets the range of the spin button for the text box. |
|
Retrieves the compact size of the CFMCRibbonEdit object. |
|
Retrieves the text in the text box. |
|
Retrieves the intermediate size of the CMFCRibbonEdit object. |
|
Retrieves the alignment of the text in the text box. |
|
Retrieves the width, in pixels, of the CMFCRibbonEdit control. |
|
Indicates whether the display size for the CMFCRibbonEdit control can be compact. |
|
Indicates whether the CMFCRIbbonEdit control has the focus. |
|
Indicates whether the display size for the CMFCRibbonEdit control can be large. |
|
Indicates whether the text box has a spin button. |
|
Indicates whether the CMFCRibbonEdit control is highlighted. |
|
Called by the framework when the dimensions of the display rectangle for the CMFCRibbonEdit control changes. |
|
Called by the framework to draw the CMFCRibbonEdit control. |
|
Called by the framework to draw the label and image for the CMFCRibbonEdit control. |
|
Called by the framework to draw the CMFCRibbonEdit control in a commands list box. |
|
Called by the framework to enable or disable the CMFCRibbonEdit control. |
|
Called by the framework when the pointer enters or leaves the bounds of the CMFCRibbonEdit control. |
|
Called by the framework when the user presses a keytip and the CMFCRibbonEdit control has the focus. |
|
Called by the framework to update the CMFCRibbonEdit control when the user presses the left mouse button on the control. |
|
Called by the framework when the user releases the left mouse button. |
|
Called by the framework to update the CMFCRibbonEdit control when the layout changes direction. |
|
Called by the framework to show or hide the CMFCRibbonEdit control. |
|
Updates the display of the CMFCRibbonEdit control. |
|
Sets the accessibility data for the CMFCRibbonEdit object. |
|
Sets the text in the text box. |
|
Sets the text alignment of the text box. |
|
Sets the width of the text box for the CMFCRibbonEdit control. |
Example
The following example demonstrates how to construct a CMFCRibbonEdit object, show spin buttons next to the edit control, and set the text of the edit control. This code snippet is part of the MS Office 2007 Demo sample.
CMFCRibbonEdit* pEditIndentLeft = new CMFCRibbonEdit(ID_PAGELAYOUT_INDENT_LEFT, 72, _T("Left:\nil"), 13);
// specify the min and max value of the spin button control
pEditIndentLeft->EnableSpinButtons(0, 1000);
// set the text of the edit control
pEditIndentLeft->SetEditText(_T("0"));
Requirements
Header: afxRibbonEdit.h