Changeset 259 for trunk/src


Ignore:
Timestamp:
Jul 2, 1999, 2:43:30 PM (26 years ago)
Author:
sandervl
Message:

Dialog box conversion bugfix for entryfields

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/pe2lx/dialog.cpp

    r141 r259  
    1 /* $Id: dialog.cpp,v 1.4 1999-06-21 01:16:23 buerkle Exp $ */
     1/* $Id: dialog.cpp,v 1.5 1999-07-02 12:43:30 sandervl Exp $ */
    22
    33/*
     
    188188                strcpy((char *)dlgcurdata, ctrltext);
    189189                dlgcurdata      += dlgitem->cchText + 1;        //include terminating 0 (just to be sure)
     190        } else
     191        { //CB: cchText == 0, OS/2 uses offText anyway! (entryfields)
     192          dlgitem->offText = (USHORT)((int)dlgcurdata-(int)dlgt);
     193          dlgcurdata++; //0 at offText
    190194        }
    191195  }
     
    279283                                strcpy((char *)dlgcurdata, ctrltext);
    280284                                dlgcurdata      += dlgitem->cchText + 1;        //include terminating 0 (just to be sure)
     285                        } else
     286                        { //CB: cchText == 0, OS/2 uses offText anyway! (entryfields)
     287                          dlgitem->offText = (USHORT)((int)dlgcurdata-(int)dlgt);
     288                          dlgcurdata++; //0 at offText
    281289                        }
    282290                }
     
    426434                strcpy((char *)dlgcurdata, ctrltext);
    427435                dlgcurdata      += dlgitem->cchText + 1;        //include terminating 0 (just to be sure)
     436        } else
     437        { //CB: cchText == 0, OS/2 uses offText anyway! (entryfields)
     438          dlgitem->offText = (USHORT)((int)dlgcurdata-(int)dlgt);
     439          dlgcurdata++; //0 at offText
    428440        }
    429441  }
     
    513525                                strcpy((char *)dlgcurdata, ctrltext);
    514526                                dlgcurdata      += dlgitem->cchText + 1;        //include terminating 0 (just to be sure)
     527                        } else
     528                        { //CB: cchText == 0, OS/2 uses offText anyway! (entryfields)
     529                          dlgitem->offText = (USHORT)((int)dlgcurdata-(int)dlgt);
     530                          dlgcurdata++; //0 at offText
    515531                        }
    516532                }
  • trunk/src/user32/dlgconvert.cpp

    r120 r259  
    1 /* $Id: dlgconvert.cpp,v 1.5 1999-06-19 10:54:46 sandervl Exp $ */
     1/* $Id: dlgconvert.cpp,v 1.6 1999-07-02 12:42:57 sandervl Exp $ */
    22
    33/*
     
    1717#define INCL_DOSMISC             /* DOS Miscellanous values  */
    1818#define INCL_WIN
    19 #include <os2wrap.h>    //Odin32 OS/2 api wrappers
     19#include <os2wrap.h>    //Odin32 OS/2 api wrappers
    2020#include <stdio.h>
    2121#include <string.h>
     
    216216      strcpy((char *)dlgcurdata, ctrltext);
    217217      dlgcurdata      += dlgitem->cchText + 1; //include terminating 0 (just to be sure)
     218   } else
     219   { //CB: cchText == 0, OS/2 uses offText anyway! (entryfields)
     220     dlgitem->offText = (USHORT)((int)dlgcurdata-(int)dlgt);
     221     dlgcurdata++; //0 at offText
    218222   }
    219223   FreeAsciiString(ctrltext);
     
    315319            strcpy((char *)dlgcurdata, ctrltext);
    316320            dlgcurdata      += dlgitem->cchText + 1; //include terminating 0 (just to be sure)
     321         } else
     322         { //CB: cchText == 0, OS/2 uses offText anyway! (entryfields)
     323           dlgitem->offText = (USHORT)((int)dlgcurdata-(int)dlgt);
     324           dlgcurdata++; //0 at offText
    317325         }
    318326      }
     
    485493      strcpy((char *)dlgcurdata, ctrltext);
    486494      dlgcurdata      += dlgitem->cchText + 1; //include terminating 0 (just to be sure)
     495   } else
     496   { //CB: cchText == 0, OS/2 uses offText anyway! (entryfields)
     497     dlgitem->offText = (USHORT)((int)dlgcurdata-(int)dlgt);
     498     dlgcurdata++; //0 at offText
    487499   }
    488500   FreeAsciiString(ctrltext);
     
    583595            strcpy((char *)dlgcurdata, ctrltext);
    584596            dlgcurdata      += dlgitem->cchText + 1; //include terminating 0 (just to be sure)
     597         } else
     598         { //CB: cchText == 0, OS/2 uses offText anyway! (entryfields)
     599           dlgitem->offText = (USHORT)((int)dlgcurdata-(int)dlgt);
     600           dlgcurdata++; //0 at offText
    585601         }
    586602      }
Note: See TracChangeset for help on using the changeset viewer.