![]() |
About CXTPTabControl item click message |
Post Reply
|
| Author | |
littleameng
Groupie
Joined: 22 June 2008 Location: China Status: Offline Points: 23 |
Post Options
Thanks(0)
Quote Reply
Topic: About CXTPTabControl item click messagePosted: 17 July 2008 at 2:50am |
|
What message will be sent when the CXTPTabControl item close button is clicked? Now I want to respond the message that is sent when the CXTPTabControl item close button is clicked!
How to program it?
please help me!thanks
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 July 2008 at 12:07pm |
|
Hi,
you can create class derived from CXTPTabControl and override OnNavigateButtonClick:
void CMyTabControl::OnNavigateButtonClick(CXTPTabManagerNavigateButton* pButton)
{ CXTPTabManager::OnNavigateButtonClick(pButton->GetID()); CXTPTabManagerItem* pItem = pButton->GetItem() ? pButton->GetItem() : m_pSelected;
if (pItem && (pButton->GetID() == xtpTabNavigateButtonClose) && pItem->IsClosable())
{ DeleteItem(pItem->GetIndex()); // Add code here.
} } |
|
|
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 |