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   |
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:86style |= 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 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.
|
|
|
 |
|
GLCtrl display error on Vista
By: kodos on Tue, 24 June 2008 19:14
|
 |
|
Re: GLCtrl display error on Vista
By: gertwin on Tue, 24 June 2008 21:54
|
 |
|
Re: GLCtrl display error on Vista
By: kodos on Wed, 25 June 2008 15:02
|
 |
|
Re: GLCtrl display error on Vista
By: kodos on Thu, 26 June 2008 20:02
|
 |
|
Re: GLCtrl display error on Vista
By: kodos on Fri, 27 June 2008 12:59
|
 |
|
Re: GLCtrl display error on Vista
By: mirek on Wed, 02 July 2008 10:53
|
 |
|
Re: GLCtrl display error on Vista
By: kodos on Wed, 02 July 2008 15:48
|
 |
|
Re: GLCtrl display error on Vista
By: mirek on Wed, 02 July 2008 22:45
|
 |
|
Re: GLCtrl display error on Vista
By: kodos on Thu, 03 July 2008 06:58
|
 |
|
Re: GLCtrl display error on Vista
By: mirek on Thu, 03 July 2008 15:33
|
 |
|
Re: GLCtrl display error on Vista
By: kodos on Wed, 01 October 2008 14:50
|
 |
|
Re: GLCtrl display error on Vista
By: mirek on Thu, 02 October 2008 09:25
|
 |
|
Re: GLCtrl display error on Vista
By: kodos on Thu, 02 October 2008 19:14
|
Goto Forum:
Current Time: Fri Aug 22 11:07:01 CEST 2025
Total time taken to generate the page: 0.07512 seconds
|