Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ICommandSource Interface
Collapse the table of content
Expand the table of content

ICommandSource Interface

Manages commands sent from a command source object to a user control.

interface class ICommandSource

When you host a user control in an MFC View, CWinFormsView Class routes commands and update command UI messages to the user control to allow it to handle MFC commands (for example, frame menu items and toolbar buttons). By implementing ICommandTarget Interface, you give the user control a reference to the ICommandSource object.

See How to: Add Command Routing to the Windows Forms Control for an example of how to use ICommandTarget.

For more information on using Windows Forms, see Using a Windows Forms User Control in MFC.

Header: afxwinforms.h (defined in assembly atlmfc\lib\mfcmifc80.dll)

Community Additions

ADD
Show:
© 2015 Microsoft