Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TabCtrl » GetTab as protected or public
GetTab as protected or public [message #18506] Sun, 05 October 2008 12:17 Go to previous message
jale is currently offline  jale
Messages: 3
Registered: September 2008
Junior Member
Hi,

In order to close a tab when middle mouse button is clicked, would be great to have GetTab method as protected instead of private.


An example...

class TabCustom : public TabCtrl
{
  TabCustom() : TabCtrl() {};

  void MiddleDown(Point p, dword keyflags);
};


void TabCustom::MiddleDown(Point p, dword keyflags)
{
   // when middle button is pressed on a tab, close it
   RemoveTab(GetTab(p));
}
 
Read Message
Read Message
Previous Topic: Tabs at bottom of TabCtrl
Next Topic: TabDlg propose
Goto Forum:
  


Current Time: Fri Mar 29 13:13:02 CET 2024

Total time taken to generate the page: 0.02176 seconds