Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
tera tera
|
Sep 5, 2008 - 4:02 AM
|
Hello. I want to change a title of CExtControlBar.
Please teach a command.
|
|
Technical Support
|
Sep 5, 2008 - 10:35 AM
|
You should override the CExtControlBar::OnGetBarCaptionText() virtual method:
virtual void OnGetBarCaptionText(
e_bar_caption_text_t eBCT,
CExtSafeString & strCaptionText
) const; The e_bar_caption_text_t enumeration is defined in scope of the CExtControlBar class and defined which text should be saved in the strCaptionText parameter:
enum e_bar_caption_text_t
{
__EBCT_SINGLE_CAPTION_DOCKED = 0,
__EBCT_SINGLE_CAPTION_FLOATING = 1,
#if (!defined __EXT_MFC_NO_TAB_CONTROLBARS)
__EBCT_TAB_GROUP_CAPTION_DOCKED = 2,
__EBCT_TAB_GROUP_CAPTION_FLOATING = 3,
__EBCT_TAB_ITEM_CAPTION = 4,
__EBCT_AUTOHIDE_ITEM_CAPTION = 5,
__EBCT_AUTOHIDE_SLIDER_CAPTION = 6,
#endif // (!defined __EXT_MFC_NO_TAB_CONTROLBARS)
#if (!defined __EXT_MFC_NO_DYNAMIC_BAR_SITE)
__EBCT_DOCUMENT_CONTAINER_CAPTION = 7
#endif // (!defined __EXT_MFC_NO_DYNAMIC_BAR_SITE)
};
|
|