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 next 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));
}
Re: GetTab as protected or public [message #18757 is a reply to message #18506] Mon, 20 October 2008 07:54 Go to previous message
mirek is currently offline  mirek
Messages: 11956
Registered: November 2005
Ultimate Member
OK, it is now public...
Previous Topic: Tabs at bottom of TabCtrl
Next Topic: TabDlg propose
Goto Forum:
  


Current Time: Sat Jul 20 04:55:52 CEST 2019

Total time taken to generate the page: 0.01156 seconds