CComControl Methods

CComControl Methods
CComControl Constructor
ControlQueryInterface Retrieves a pointer to the requested interface.
CreateControlWindow Creates a window for the control.
FireOnChanged Notifies the container's sink that a control property has changed.
FireOnRequestEdit Notifies the container's sink that a control property is about to change.
CComControlBase Methods
CComControlBase Constructor. Stores the window handle. Initializes the control data and sets a default control size.
DoesVerbActivate Checks that the iVerb parameter used by IOleObjectImpl::DoVerb activates the control.
DoesVerbUIActivate Checks that the iVerb parameter used by IOleObjectImpl::DoVerb causes the control's user interface to activate.
FireViewChange Tells the control to discard any undo state it is maintaining.
GetDirty Retrieves the value of the flag indicating whether the control's properties have changed since it was last saved.
GetZoomInfo Retrieves the zoom factor and stores it in the ATL_DRAWINFO structure.
InPlaceActivate Determines that the control can be in-place activated, informs the container the control is going in-place active, and activates the control.
OnDraw Draws your control.
OnDrawAdvanced Normalizes the device context, then calls your control class's OnDraw method.
OnGetDlgCode Called in response to a WM_GETDLGCODE message. Override to have the control process TAB keys and arrow keys.
OnKillFocus Informs the container the control has lost focus.
OnPaint Prepares the container for painting, gets information about the control size, and calls your control class's OnDraw method.
OnSetFocus Informs the container the control has gained focus.
SendOnClose Called by the server to notify the control's advise sinks the control has changed from the running to the loaded state.
SendOnDataChange Called by the server to notify the control's advise sinks that data in the control has changed.
SendOnRename Called by the server to notify the control's advise sinks the control has been renamed.
SendOnSave Called by the server to notify the control's advise sinks the control has been saved.
SendOnViewChange Notifies the control's advise sinks its view has changed.
SetControlFocus Sets or removes keyboard focus to or from the control.
SetDirty Sets the value of the flag indicating that the control's properties have changed since it was last saved.
GetAmbient Property Methods
GetAmbientAppearance Gets the container's APPEARANCE property
GetAmbientAutoClip Gets the container's AUTOCLIP property.
GetAmbientBackColor Gets the container's BACKCOLOR property.
GetAmbientDisplayAsDefault Gets the container's DISPLAYASDEFAULT property.
GetAmbientDisplayName Gets the container's DISPLAYNAME property.
GetAmbientFont Gets the container's FONT properties.
GetAmbientForeColor Gets the container's FORECOLOR property.
GetAmbientLocaleID Gets the container's LOCALEID property.
GetAmbientMessageReflect Gets the container's MESSAGEREFLECT property.
GetAmbientPalette Gets the container's PALETTE property.
GetAmbientProperty Retrieves the specified container property.
GetAmbientScaleUnits Gets the container's SCALEUNITS property.
GetAmbientShowGrabHandles Gets the container's SHOWGRABHANDLES property.
GetAmbientShowHatching Gets the container's SHOWHATCHING property.
GetAmbientSupportsMnemonics Gets the container's SUPPORTSMNEMONICS property.
GetAmbientTextAlign Gets the container's TEXTALIGN property.
GetAmbientUIDead Gets the container's UIDEAD property.
GetAmbientUserMode Gets the container's USERMODE property.

See Also

CComControl Overview, CComControl Data Members