![]() |
Toolbar Tooltip |
Post Reply ![]() |
Author | |
Makarand ![]() Senior Member ![]() ![]() Joined: 27 February 2007 Location: India Status: Offline Points: 140 |
![]() ![]() ![]() ![]() ![]() Posted: 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 ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |