Changeset 9524 for trunk/src


Ignore:
Timestamp:
Dec 18, 2002, 2:10:08 PM (23 years ago)
Author:
sandervl
Message:

Merged our changes/fixes

Location:
trunk/src/user32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/combo.c

    r9523 r9524  
    12521252       }
    12531253   }
     1254#ifdef __WIN32OS2__
     1255   //@PF Of course when we rollup box it is time to sync it with listview.
     1256   //Obvious Wine bug and even not fixed in latest versions.
     1257   if( CB_GETTYPE(lphc) == CBS_DROPDOWN )
     1258   {
     1259       lphc->droppedIndex = CBUpdateLBox( lphc,TRUE );
     1260   }
     1261   else
     1262   {
     1263       lphc->droppedIndex = SendMessageA( lphc->hWndLBox, LB_GETCURSEL, 0, 0 );
     1264
     1265       if( lphc->droppedIndex == LB_ERR )
     1266         lphc->droppedIndex = 0;
     1267   }
     1268#endif
    12541269}
    12551270
     
    12701285   return TRUE;
    12711286}
     1287
     1288#ifdef __WIN32OS2__
     1289/***********************************************************************
     1290 *           COMBO_RollupListbox
     1291 *
     1292 * @@PF Odin specific function.
     1293 */
     1294BOOL COMBO_RollupListbox( LPHEADCOMBO lphc)
     1295{
     1296   if(lphc->wState & CBF_DROPPED)
     1297   {
     1298       CBRollUp( lphc, FALSE, FALSE);
     1299       return TRUE;
     1300   }
     1301   return FALSE;
     1302}
     1303#endif
    12721304
    12731305/***********************************************************************
  • trunk/src/user32/edit.c

    r9523 r9524  
    3636#ifndef __WIN32OS2__
    3737DECLARE_DEBUG_CHANNEL(relay);
    38 #endif
    39 
     38
     39#define BUFLIMIT_MULTI          0x7FFFFFF       /* maximum buffer size (not including '\0')
     40#define BUFLIMIT_SINGLE         0x7FFFFFF       /* maximum buffer size (not including '\0') */
     41#else
    4042#define BUFLIMIT_MULTI          65534   /* maximum buffer size (not including '\0')
    4143                                           FIXME: BTW, new specs say 65535 (do you dare ???) */
    4244#define BUFLIMIT_SINGLE         32766   /* maximum buffer size (not including '\0') */
     45#endif
     46
    4347#define GROWLENGTH              32      /* buffers granularity in bytes: must be power of 2 */
    4448#define ROUND_TO_GROW(size)     (((size) + (GROWLENGTH - 1)) & ~(GROWLENGTH - 1))
     
    18401844        if (size <= es->buffer_size)
    18411845                return TRUE;
     1846#ifndef __WIN32OS2__
     1847//SvL: EM_SETTEXTLIMIT has no effect in
     1848//     NT4, SP6 (EM_GETTEXTLIMIT only returns that value).
     1849//     Limits are simply ignored, no EN_MAXTEXT notification is ever sent.
     1850//     (fixes license edit control in Microsoft Visual C++ 4.2 install)
     1851
    18421852        if (size > es->buffer_limit) {
    18431853                EDIT_NOTIFY_PARENT(hwnd, es, EN_MAXTEXT, "EN_MAXTEXT");
     
    18461856        if (size > es->buffer_limit)
    18471857                size = es->buffer_limit;
     1858#endif
    18481859
    18491860        TRACE("trying to ReAlloc to %d+1 characters\n", size);
  • trunk/src/user32/listbox.c

    r9523 r9524  
    17431743                else  /* not a directory */
    17441744                {
     1745#ifdef __WIN32OS2__
     1746//SvL: Must check for FILE_ATTRIBUTE_NORMAL or else files are removed from
     1747//     the directory listing in common file dialogs
     1748#define ATTRIBS (FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN | \
     1749                 FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_ARCHIVE | FILE_ATTRIBUTE_NORMAL)
     1750#else
    17451751#define ATTRIBS (FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN | \
    17461752                 FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_ARCHIVE)
     1753#endif
    17471754
    17481755                    if ((attrib & DDL_EXCLUSIVE) &&
     
    20572064            LISTBOX_SetCaretIndex( hwnd, pDescr, pDescr->lphc->droppedIndex, FALSE );
    20582065            LISTBOX_SetSelection( hwnd, pDescr, pDescr->lphc->droppedIndex, FALSE, FALSE );
     2066#ifdef __WIN32OS2__
     2067            COMBO_RollupListbox(pDescr->lphc);
     2068 
     2069             /* @@PF Previous code is all wrong here. Here we are supposed to close
     2070                and only close dropdown, instead flip, flips it. This happens because
     2071                previous code did not pay attention to the fact that combobox can be
     2072                closed with SendMessage by application, as MFC apps do     
     2073                COMBO_FlipListbox( pDescr->lphc, FALSE, FALSE ); */
     2074#else
    20592075            COMBO_FlipListbox( pDescr->lphc, FALSE, FALSE );
     2076#endif
    20602077            return 0;
    20612078        }
Note: See TracChangeset for help on using the changeset viewer.