Changeset 656


Ignore:
Timestamp:
Aug 24, 1999, 1:45:27 PM (26 years ago)
Author:
phaller
Message:

Add: added extended Open32 WinX control styles (OS2CTLWX)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/changelog

    r654 r656  
    1  /* $Id: changelog,v 1.128 1999-08-24 09:19:39 sandervl Exp $ */
     1 /* $Id: changelog,v 1.129 1999-08-24 11:45:27 phaller Exp $ */
     2
     3 99-08-24: Patrick Haller <phaller@gmx.net>
     4        - USER32:   added extended Open32 WinX control styles (OS2CTLWX)
    25
    36 99-08-24: Sander van Leeuwen <sandervl@xs4all.nl>
  • TabularUnified trunk/src/user32/dlgconvert.cpp

    r549 r656  
    1 /* $Id: dlgconvert.cpp,v 1.8 1999-08-18 17:17:04 sandervl Exp $ */
     1/* $Id: dlgconvert.cpp,v 1.9 1999-08-24 11:42:19 phaller Exp $ */
    22
    33/*
     
    1717#define INCL_DOSMISC             /* DOS Miscellanous values  */
    1818#define INCL_WIN
     19
     20#define INCL_WINLISTBOXES       /* List box controls              */
     21#define INCL_WINSTDFIND         /* standard find/replace dialogs  */
     22#define INCL_WINSTDCOLOR        /* standard color dialog          */
     23#define INCL_WINSTDPRINT        /* standard print dialog          */
     24#define INCL_WINSTDMLE          /* Multiple Line Edit             */
     25
     26#include <os2ctlwx.h>           /* support for Open32 WinX styles */
     27
    1928#include <os2wrap.h>    //Odin32 OS/2 api wrappers
    2029#include <stdio.h>
     
    725734  //    if(style & WINES_LOWERCASE)   os2style |= ;
    726735  //    if(style & WINES_PASSWORD)    os2style |= ;
    727   //    if(style & WINES_AUTOVSCROLL) os2style |= ;
     736        if(style & WINES_AUTOVSCROLL) os2style |= MLS_VSCROLL;
    728737  //    if(style & WINES_AUTOHSCROLL) os2style |= ; // @@@PH: experiment
    729738  //    if(style & WINES_NOHIDESEL)   os2style |= ;
    730739  //    if(style & WINES_OEMCONVERT)  os2style |= ;
    731740        if(style & WINES_READONLY)    os2style |= MLS_READONLY;
    732   //    if(style & WINES_WANTRETURN)  os2style |= ;
     741        if(style & WINES_WANTRETURN)  os2style |= MLS_WANTRETURN;
    733742  //    if(style & WINES_NUMBER)      os2style |= ;
    734743        if(style & WINWS_BORDER)      os2style |= MLS_BORDER;   // @@@PH: experiment
     
    791800   case WIN_LISTBOX:
    792801      *os2class = (int)WC_LISTBOX & 0xFFFF;
    793 //    if(style & WINLBS_NOTIFY)                  os2style |= ;
     802      if(style & WINLBS_NOTIFY)                  os2style |= LS_NOTIFY;
    794803//    if(style & WINLBS_SORT)                    os2style |= ;
    795804//    if(style & WINLBS_NOREDRAW)                os2style |= ;
    796805      if(style & WINLBS_MULTIPLESEL)             os2style |= LS_MULTIPLESEL;
    797806      if(style & WINLBS_OWNERDRAWFIXED)          os2style |= LS_OWNERDRAW;       //TODO: Correct?
    798       if(style & WINLBS_OWNERDRAWVARIABLE)       os2style |= LS_OWNERDRAW;       //TODO: Correct?
    799 //    if(style & WINLBS_HASSTRINGS)              os2style |= ;
    800 //    if(style & WINLBS_USETABSTOPS)             os2style |= ;
     807      if(style & WINLBS_OWNERDRAWVARIABLE)       os2style |= LS_OWNERDRAWVARIABLE;       //TODO: Correct?
     808      if(style & WINLBS_HASSTRINGS)              os2style &= ~LS_NOSTRINGS;
     809      else                                       os2style |= LS_NOSTRINGS;
     810      if(style & WINLBS_USETABSTOPS)             os2style |= LS_TABSTOPS;
    801811//    if(style & WINLBS_NOINTEGRALHEIGHT)        os2style |= ;
    802812//    if(style & WINLBS_MULTICOLUMN)             os2style |= ;
    803813//    if(style & WINLBS_WANTKEYBOARDINPUT)       os2style |= ;
    804 //    if(style & WINLBS_EXTENDEDSEL)             os2style |= LS_EXTENDEDSEL;
     814      if(style & WINLBS_EXTENDEDSEL)             os2style |= LS_EXTENDEDSEL;
    805815//    if(style & WINLBS_DISABLENOSCROLL)         os2style |= ;
    806816//    if(style & WINLBS_NODATA)                  os2style |= ;
     
    829839      else
    830840      if(style & WINCBS_DROPDOWNLIST)            os2style |= CBS_DROPDOWNLIST;
    831 //    if(style & WINCBS_OWNERDRAWFIXED)          os2style |= ;
    832 //    if(style & WINCBS_OWNERDRAWVARIABLE)       os2style |= ;
     841
     842      if(style & WINCBS_OWNERDRAWFIXED)          os2style |= CBS_OWNERDRAW;
     843      if(style & WINCBS_OWNERDRAWVARIABLE)       os2style |= CBS_OWNERDRAWVARIABLE;
    833844//    if(style & WINCBS_AUTOHSCROLL)             os2style |= ;
    834845//    if(style & WINCBS_OEMCONVERT)              os2style |= ;
    835846//    if(style & WINCBS_SORT)                    os2style |= ;
    836 //    if(style & WINCBS_HASSTRINGS)              os2style |= ;
     847      if(style & WINCBS_HASSTRINGS)              os2style &= ~CBS_NOSTRINGS;
     848      else                                       os2style |= CBS_NOSTRINGS;
    837849//    if(style & WINCBS_NOINTEGRALHEIGHT)        os2style |= ;
    838850//    if(style & WINCBS_DISABLENOSCROLL)         os2style |= ;
Note: See TracChangeset for help on using the changeset viewer.