From: <mie...@us...> - 2007-09-22 18:16:20
|
Revision: 780 http://oorexx.svn.sourceforge.net/oorexx/?rev=780&view=rev Author: miesfeld Date: 2007-09-22 11:16:23 -0700 (Sat, 22 Sep 2007) Log Message: ----------- RFE [ 1741891 ] ooDialog - update the EditControl Fix logic error in detecting the edit control styles. Modified Paths: -------------- interpreter-3.x/trunk/platform/windows/oodialog/oovother.c Modified: interpreter-3.x/trunk/platform/windows/oodialog/oovother.c =================================================================== --- interpreter-3.x/trunk/platform/windows/oodialog/oovother.c 2007-09-21 22:27:51 UTC (rev 779) +++ interpreter-3.x/trunk/platform/windows/oodialog/oovother.c 2007-09-22 18:16:23 UTC (rev 780) @@ -831,9 +831,6 @@ if ( lStyle & WS_GROUP ) strcat(retstr->strptr, " GROUP"); if ( lStyle & WS_HSCROLL ) strcat(retstr->strptr, " HSCROLL"); if ( lStyle & WS_VSCROLL ) strcat(retstr->strptr, " VSCROLL"); - if ( lStyle & ES_LEFT ) strcat(retstr->strptr, " LEFT"); - if ( lStyle & ES_RIGHT ) strcat(retstr->strptr, " RIGHT"); - if ( lStyle & ES_CENTER ) strcat(retstr->strptr, " CENTER"); if ( lStyle & ES_PASSWORD ) strcat(retstr->strptr, " PASSWORD"); if ( lStyle & ES_MULTILINE ) strcat(retstr->strptr, " MULTILINE"); if ( lStyle & ES_AUTOHSCROLL ) strcat(retstr->strptr, " AUTOSCROLLH"); @@ -846,6 +843,10 @@ if ( lStyle & ES_NUMBER ) strcat(retstr->strptr, " NUMBER"); if ( lStyle & ES_OEMCONVERT ) strcat(retstr->strptr, " OEM"); + if ( lStyle & ES_RIGHT ) strcat(retstr->strptr, " RIGHT"); + else if ( lStyle & ES_CENTER ) strcat(retstr->strptr, " CENTER"); + else strcat(retstr->strptr, " LEFT"); + retstr->strlength = strlen(retstr->strptr); return 0; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |