Print Page | Close Window

OnNavigateButtonClick: what message?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=24361
Printed Date: 14 May 2024 at 7:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: OnNavigateButtonClick: what message?
Posted By: kiroecke
Subject: OnNavigateButtonClick: what message?
Date Posted: 16 February 2023 at 1:33pm
Hello,

with CXTPTabControl I learned in this forum that I have to override "OnNavigateButtonClick" for the left and right navigation buttons of my tab control for catching the related clicks:
void CTabControlEx::OnNavigateButtonClick(CXTPTabManagerNavigateButton* pButton)
{
CXTPTabControl::OnNavigateButtonClick(pButton);

CXTPTabManagerItem* pItem = pButton->GetItem() ? pButton->GetItem() : m_pSelected;
if (pItem && (pButton->GetID() == xtpTabNavigateButtonLeft))
{
// DeleteItem(pItem->GetIndex());
// Add code here.
}
}
This compiles without problems. Anyway, it is NOT called if I click on the left or right navigator button. I suppose that I should make an entry to the message map? If yes, what are the exact macros that I need there? I couldn't find any information in the documentation or the posts in this forum.

Thank you in advance!
Kai  





Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net