Delen via


COleControl::GetMessageString

Called by the framework to obtain a short string that describes the purpose of the menu item identified by nID.

virtual void GetMessageString( 
   UINT nID, 
   CString& rMessage  
) const;

Parameters

  • nID
    A menu item ID.

  • rMessage
    A reference to a CString object through which a string will be returned.

Remarks

This can be used to obtain a message for display in a status bar while the menu item is highlighted. The default implementation attempts to load a string resource identified by nID.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart