Important fix

User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Important fix

Post by Antonio Linares »

In Class TWindow Method EndPaint(), add this final zero:

METHOD EndPaint() INLINE ::nPaintCount--,;
EndPaint( ::hWnd, ::cPS ), ::cPS := nil, ::hDC := nil, 0

It solves painting errors!
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Enrico,

No, it isn't.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Enrico,

We have uploaded FWH 7.09 again, so now the fix is included into it :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
MOISES
Posts: 824
Joined: Wed Aug 22, 2007 10:09 am

Post by MOISES »

Antonio,

Does it include other pending fixes?.

Best regards,
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Moises,

No, not yet :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

Antonio Linares wrote:Enrico,

We have uploaded FWH 7.09 again, so now the fix is included into it :-)
Thank you, Master! :-)

EMG
User avatar
Ugo
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Re: Important fix

Post by Ugo »

Antonio Linares wrote:In Class TWindow Method EndPaint(), add this final zero:

METHOD EndPaint() INLINE ::nPaintCount--,;
EndPaint( ::hWnd, ::cPS ), ::cPS := nil, ::hDC := nil, 0

It solves painting errors!
Antonio,
My version "FWHX 7.04" ix fixable?
can you post the little sample for test the fix?
Ciao, best regards,
Ugo
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Ugo,

Yes, it should be applied to all FWH builds.

To test it, use a brush on the main window and move the calculator over it. You will see that the painting is not ok. With the fix, it paints ok.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Ugo
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Post by Ugo »

Antonio Linares wrote:Ugo,

Yes, it should be applied to all FWH builds.

To test it, use a brush on the main window and move the calculator over it. You will see that the painting is not ok. With the fix, it paints ok.
Antonio,
many thanks.
Ciao, best regards,
Ugo
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

Antonio Linares wrote:Ugo,

Yes, it should be applied to all FWH builds.

To test it, use a brush on the main window and move the calculator over it. You will see that the painting is not ok. With the fix, it paints ok.
Yes! Wonderful improvement! It works with bitmap backgrounds too.

EMG
User avatar
Ugo
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Post by Ugo »

EnricoMaria wrote:Yes! Wonderful improvement! It works with bitmap backgrounds too.
Antonio and Enrico,
i do not found any difference with Vista Business, is possible?
Ciao, best regards,
Ugo
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Ugo,

You will not notice it in Vista as Vista has optimized WM_PAINT msgs. But it fails in XP.
regards, saludos

Antonio Linares
www.fivetechsoft.com
tsai8839
Posts: 22
Joined: Mon Jul 24, 2006 6:45 am

Post by tsai8839 »

Hi,

Does anyone can teach me what else and how to do after added the final zero?
Regards,

Andy Tsai
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Just compile window.prg and add window.obj to your application, or replace it in FiveH.lib (or FiveHX.lib)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply