![]() |
Toolbar Tooltip |
Post Reply
|
| Author | |
Makarand
Senior Member
Joined: 27 February 2007 Location: India Status: Offline Points: 140 |
Post Options
Thanks(0)
Quote Reply
Topic: Toolbar TooltipPosted: 09 October 2007 at 7:39am |
|
Hi Oleg,
I have one toolbar which is created at runtime. I used following code to design the toolbar. m_wndAgentToolBar=(CCmcCustomToolBar*)pCommandBars->Add(_T(g_cmcagent),xtpBarTop,RUNTIME_CLASS(CCmcCustomToolBar)); m_wndAgentToolBar->SetContextMenuPresent(FALSE); m_wndAgentToolBar->ShowExpandButton(FALSE); m_wndAgentToolBar->SetButtons(ButtonCmdID, nButtonCount); //Setting Icon if(!XTPImageManager()->SetIcons(imlIcons,ButtonCmdID,nButtonCount,TBImgSizeHI)) { TRACE0("Failed to set agent toolbar icon\n"); bRtn = FALSE; goto lCleanup; } How can I set the tooltip to the buttons? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 October 2007 at 2:51pm |
|
HI,
try this m_wndAgentToolBar->GetControl(i)->SetTooltip("new Tip");
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |