|
|
Home » U++ Library support » Look and Chameleon Technology » Question to UPP developers: the issue with windows rendering (Windows XP)
Re: Question to UPP developers: the issue with windows rendering (Windows XP) [message #29573 is a reply to message #29571] |
Mon, 01 November 2010 10:21   |
porto
Messages: 51 Registered: March 2007
|
Member |
|
|
I made changes in file Wnd32Wnd.cpp, in method:
void Ctrl::Create0(Ctrl::CreateBox *cr) (begin at line 459)
Added lines are marked in bold:
void Ctrl::Create0(Ctrl::CreateBox *cr)
{
GuiLock __;
cr->exstyle = cr->exstyle | WS_EX_COMPOSITED;
... some code ...
::ShowWindow(top->hwnd, visible ? cr->show : SW_HIDE);
::SetWindowLong(top->hwnd, GWL_EXSTYLE, cr->exstyle ^ WS_EX_COMPOSITED);
... some code ...
}
I really want to find out the cause of this effect. So I want to ask you, if UPP apps windows need repainting some area, they are fully updated or update only the necessary area?
I have achieved the same effect in WinAPI application by locking update in underlying window by LockWindowUpdate():
HWND hWnd, hWnd2;
hInst = hInstance;
hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);
hWnd2 = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);
ShowWindow(hWnd, SW_MAXIMAZED);
LockWindowUpdate(hWnd);
ShowWindow(hWnd2, SW_NORMAL);
Sleep(1000);
Without LockWindowUpdate() in this code the effect is gone.
My another suggestion (possibly incorrect again): in UPP apps for some reason MS Windows are not immediately sends WM_PAIN command to underlying windows.
I also tried to make the following changes: after the new window is shown, I just completely update the parent window. This is also a solution to the problem, but why Windows does not update a necessary area of parent window automatically not clear to me...
[Updated on: Mon, 01 November 2010 13:45] Report message to a moderator
|
|
|
 |
|
Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Tue, 12 October 2010 09:05
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: koldo on Wed, 13 October 2010 08:53
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Wed, 13 October 2010 10:49
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: koldo on Wed, 13 October 2010 12:24
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Wed, 13 October 2010 14:18
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: unodgs on Wed, 13 October 2010 15:07
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Wed, 13 October 2010 15:37
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: mirek on Wed, 13 October 2010 18:44
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Wed, 13 October 2010 20:01
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Wed, 13 October 2010 20:23
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Thu, 14 October 2010 10:45
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Thu, 14 October 2010 18:48
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: mr_ped on Thu, 14 October 2010 11:13
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Thu, 14 October 2010 11:22
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Thu, 14 October 2010 20:12
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: mirek on Fri, 15 October 2010 13:53
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: mirek on Fri, 15 October 2010 13:55
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Fri, 15 October 2010 14:20
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: mirek on Fri, 15 October 2010 14:31
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Fri, 15 October 2010 14:47
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Fri, 15 October 2010 16:37
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: mirek on Sat, 16 October 2010 08:24
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Sat, 16 October 2010 08:38
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: mirek on Sat, 16 October 2010 10:01
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: mirek on Sat, 16 October 2010 10:24
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Sat, 16 October 2010 10:42
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Mon, 25 October 2010 16:11
|
 |
 |
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Tue, 26 October 2010 09:56
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Wed, 27 October 2010 14:56
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: mirek on Wed, 27 October 2010 19:37
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Wed, 27 October 2010 21:44
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: mirek on Mon, 01 November 2010 09:56
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Mon, 01 November 2010 10:21
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: mirek on Thu, 04 November 2010 14:27
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Sat, 30 October 2010 13:45
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: mirek on Mon, 01 November 2010 10:03
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Wed, 03 November 2010 17:07
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: mirek on Thu, 04 November 2010 14:31
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Thu, 04 November 2010 15:18
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Thu, 11 November 2010 14:34
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: mirek on Wed, 17 November 2010 10:19
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Wed, 17 November 2010 11:22
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Wed, 17 November 2010 11:36
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Tue, 26 October 2010 11:04
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: mirek on Sat, 20 November 2010 18:03
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Sat, 20 November 2010 21:10
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: mirek on Mon, 22 November 2010 19:07
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Mon, 22 November 2010 21:00
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: mirek on Wed, 24 November 2010 14:58
|
 |
|
Re: Question to UPP developers: the issue with windows rendering (Windows XP)
By: porto on Thu, 25 November 2010 08:12
|
Goto Forum:
Current Time: Sun Aug 24 13:27:49 CEST 2025
Total time taken to generate the page: 0.04370 seconds
|
|
|