Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Problem with DHCTRL on Windows 
	
		
		
			| Problem with DHCTRL on Windows [message #50304] | 
			Sat, 15 September 2018 13:25   | 
		 
		
			
				
				
				
					
						  
						mdelfede
						 Messages: 1310 Registered: September 2007 
						
					 | 
					Ultimate Contributor  | 
					 | 
		 
		 
	 | 
 
	
		Hi, here an animated gif explaining the problem: 
 
  
 
when I move the cursor over ANOTHER UPP widget, my DHCTRL, which is embedded into a TabCtrl, blanks. 
No refresh nor paint is triggered on it, so it must be something in Upp which repaints a white background. 
I tried to set a red background on StaticRect container which is inside TabCtrl, but my DHCTRL still gets a white background 
when moving the mouse outside. 
 
I'm out of ideas... some hint on where to look ? On Linux, both X11 and GTK, it doesn't show this behaviour. 
 
Ciao 
 
Massimo 
		
	- 
	
 
	Attachment: myimage.gif
	 
	(Size: 999.35KB, Downloaded 565 times)
 
 
		
		
 |  
	| 
		
	 | 
 
 
 |  
	| 
		
 |  
	
		
		
			| Re: Problem with DHCTRL on Windows [message #50451 is a reply to message #50305] | 
			Wed, 31 October 2018 15:17    | 
		 
		
			
				
				
				  | 
					
						  
						mirek
						 Messages: 14271 Registered: November 2005 
						
					 | 
					Ultimate Member  | 
					 | 
		 
		 
	 | 
 
	
		mdelfede wrote on Sat, 15 September 2018 15:34Weird... if I change the WindowProc like this : 
 
LRESULT DHCtrl::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
	DEBUG_INFO("WindowProc:" << message);
-->	if(message == WM_ERASEBKGND)
-->		return true;
	GuiLock __;
	return DefWindowProc(hwnd, message, wParam, lParam);
}
 
 
The problem disappears. Don't know why, but that's a solution at least.  
 
Hi, 
 
I have to say I am now in intense period of OpenGL development. I will probably cause you some problems, right now I suppose that "picking" does not work anymore (but IMO it should have been implemented separately anyway). 
 
Things I have changed (so far just in Win32): 
 
There is now just single OpenGL context. That is all that is required - OpenGL can switch context between windows. So it is faster and more importantly, textures etc.. can now be shared between windows safely. 
 
I have noticed that if OpenGL view is part of application, some things are less snappy (e.g. when Splitter is involved), so I was playing with WM_PAINT a bit. 
 
BTW, I think that I have did the same fix as you suggest independently, so perhaps you just updated to some intermediate variant.
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
	
		
		
			| Re: Problem with DHCTRL on Windows [message #50703 is a reply to message #50451] | 
			Fri, 07 December 2018 00:14   | 
		 
		
			
				
				
				
					
						  
						mdelfede
						 Messages: 1310 Registered: September 2007 
						
					 | 
					Ultimate Contributor  | 
					 | 
		 
		 
	 | 
 
	
		Hi Mirek, 
 
as usual, very late reply, but I still don't get ANY notification from UPP forums. 
I tried all, but no way. Even no notifications on private messages... that's becoming quite frustrating.
		
		
		
 |  
	| 
		
	 | 
 
 
 |   
Goto Forum:
 
 Current Time: Tue Nov 04 08:09:43 CET 2025 
 Total time taken to generate the page: 0.09027 seconds 
 |