changeset 1412:246aadf8fbd4

Fixes for the OS/2 code.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 02 Dec 2011 08:52:21 +0000
parents 22ba64e357de
children 28210f7941c7
files os2/dw.c
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/os2/dw.c	Fri Dec 02 08:22:11 2011 +0000
+++ b/os2/dw.c	Fri Dec 02 08:52:21 2011 +0000
@@ -4694,7 +4694,7 @@
     }
         
    /* Combobox */
-   if(strnicmp(tmpbuf, WC_COMBOBOX, strlen(WC_COMBOBOX)+1) == 0)
+   if(strncmp(tmpbuf, "#2", 3)==0)
    {
       dw_font_text_extents_get(handle, NULL, testtext, NULL, &thisheight);
       thiswidth = 150;
@@ -4702,18 +4702,21 @@
       if(thisheight < 18)
         thisheight = 18;
    }
-   else if(strnicmp(tmpbuf, WC_SPINBUTTON, strlen(WC_SPINBUTTON)+1) == 0)
+   /* Spinbutton */
+   else if(strncmp(tmpbuf, "#32", 4)==0)
    {
       dw_font_text_extents_get(handle, NULL, testtext, NULL, &thisheight);
       thiswidth = 50;
    }
-   else if(strnicmp(tmpbuf, WC_ENTRYFIELD, strlen(WC_ENTRYFIELD)+1) == 0)
+   /* Entryfield */
+   else if(strncmp(tmpbuf, "#6", 3)==0)
    {
       dw_font_text_extents_get(handle, NULL, testtext, NULL, &thisheight);
       thiswidth = 150;
       extraheight = 6;
    }
-   else if(strnicmp(tmpbuf, WC_BUTTON, strlen(WC_BUTTON)+1) == 0)
+   /* Button */
+   else if(strncmp(tmpbuf, "#3", 3)==0)
    {
       ULONG style = WinQueryWindowULong(handle, QWL_STYLE);