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 » U++ Library : Other (not classified elsewhere) » GLCtrl display error on Vista
Re: GLCtrl display error on Vista [message #18444 is a reply to message #16549] Wed, 01 October 2008 14:50 Go to previous messageGo to previous message
kodos is currently offline  kodos
Messages: 111
Registered: March 2008
Experienced Member
Hi,

I think I have to open this thread again.
The problem is still there with the flickering in Vista, even if it is far better with the patch from luzr.
After I have reread the article on opengl.org I think I have found the problem. The WS_CLIPCHILDREN and WS_CLIPSIBLINGS have to be set on the parent window of the OpenGl control, not on the control itself.
With the following changes I haven't noticed any flickering yet:

TopWin32.cpp:86
style |= WS_CAPTION|WS_CLIPSIBLINGS|WS_CLIPCHILDREN;

CtrlCore.h:1767
void Refresh() { InvalidateRect(GetHWND(), NULL, false); }

I don't call the Refresh() from Ctrl because in my tests it is not needed, but I have just done my tests with the GLCtrl Wink and I don't know exactly what Refresh is doing.

DHCtrl.cpp:36
CreateWindowEx(0, "UPP-CLASS-A", "",
		               WS_CHILD|WS_DISABLED|WS_VISIBLE,
		               0, 0, 20, 20,
		               phwnd, NULL, hInstance, this);

The WS_CLIPSIBLINGS and WS_CLIPCHILDREN styles can be removed from here again.

But I don't know if this changes have some side effects with other controls that derive from DHCtrl, I really just know the GLCtrl and my custom CairoCtrl. Smile
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: start up program
Next Topic: Small Correction about Vista/GLCtrl corrections
Goto Forum:
  


Current Time: Fri Aug 22 09:41:54 CEST 2025

Total time taken to generate the page: 0.06039 seconds