Home » U++ Library support » TabCtrl » GetTab  as protected or public 
	
		
		
			| GetTab  as protected or public [message #18506] | 
			Sun, 05 October 2008 12:17   | 
		 
		
			
				
				
				
					
						  
						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));
}
 
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
	| 
		
 |   
Goto Forum:
 
 Current Time: Tue Nov 04 12:58:20 CET 2025 
 Total time taken to generate the page: 0.07101 seconds 
 |