From 1f57b9115cf0754289a7c7beec09bc9764ff41ef Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Fri, 23 Nov 2007 06:55:14 +0000 Subject: [PATCH] 2007-11-22 22:49 UTC+0800 Pritpal Bedi (pritpal@vouchcac.com) * harbour/contrib/gtwvg/wvtcore.c ! Fixes for UNICODE Support. ? Przem, please review. I suspect about like these fixes: DrawText( _s->hGuiDC, hb_parcx( 6 ), strlen( hb_parcx( 6 ) ), &rc, iAlignH | DT_WORDBREAK | DT_TOP ); => LPTSTR text = HB_TCHAR_CONVTO( hb_parc( 6 ) ); DrawText( _s->hGuiDC, text, strlen( hb_parc( 6 ) ), &rc, iAlignH | DT_WORDBREAK | DT_TOP ); ^--------------------^ OK | How to compute length of "text" --- harbour/ChangeLog | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 0efc6e3e0a..fad7e993b8 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,19 @@ 2002-12-01 13:30 UTC+0100 Foo Bar */ +2007-11-22 22:49 UTC+0800 Pritpal Bedi (pritpal@vouchcac.com) + * harbour/contrib/gtwvg/wvtcore.c + ! Fixes for UNICODE Support. + ? Przem, please review. I suspect about like these fixes: + + + DrawText( _s->hGuiDC, hb_parcx( 6 ), strlen( hb_parcx( 6 ) ), &rc, iAlignH | DT_WORDBREAK | DT_TOP ); + => + LPTSTR text = HB_TCHAR_CONVTO( hb_parc( 6 ) ); + DrawText( _s->hGuiDC, text, strlen( hb_parc( 6 ) ), &rc, iAlignH | DT_WORDBREAK | DT_TOP ); + ^--------------------^ OK | How to compute length of "text" + + 2007-11-22 21:45 UTC+0800 Pritpal Bedi (pritpal@vouchcac.com) * harbour/contrib/gtwvg/wvtutils.c ! Fixes for UNICODE Support.