Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - OnNavigateButtonClick: what message?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

OnNavigateButtonClick: what message?

 Post Reply Post Reply
Author
Message
kiroecke View Drop Down
Newbie
Newbie


Joined: 02 July 2008
Location: Germany
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote kiroecke Quote  Post ReplyReply Direct Link To This Post Topic: OnNavigateButtonClick: what message?
    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  


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.