Page 1 of 2

Important fix

Posted: Sat Sep 15, 2007 8:05 am
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!

Re: Important fix

Posted: Sat Sep 15, 2007 9:54 am
by Enrico Maria Giordano
Is the current release updated with that fix?

EMG

Posted: Sat Sep 15, 2007 9:55 am
by Antonio Linares
Enrico,

No, it isn't.

Posted: Sat Sep 15, 2007 10:08 am
by Antonio Linares
Enrico,

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

Posted: Sat Sep 15, 2007 10:32 am
by MOISES
Antonio,

Does it include other pending fixes?.

Best regards,

Posted: Sat Sep 15, 2007 10:39 am
by Antonio Linares
Moises,

No, not yet :-)

Posted: Sat Sep 15, 2007 3:51 pm
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

Re: Important fix

Posted: Sun Sep 16, 2007 4:03 pm
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?

Posted: Sun Sep 16, 2007 7:26 pm
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.

Posted: Sun Sep 16, 2007 9:18 pm
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.

Posted: Sun Sep 16, 2007 9:34 pm
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

Posted: Sun Sep 16, 2007 9:52 pm
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?

Posted: Sun Sep 16, 2007 11:35 pm
by Antonio Linares
Ugo,

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

Posted: Mon Sep 17, 2007 3:51 am
by tsai8839
Hi,

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

Posted: Mon Sep 17, 2007 6:35 am
by Antonio Linares
Just compile window.prg and add window.obj to your application, or replace it in FiveH.lib (or FiveHX.lib)