- Timestamp:
- Dec 18, 2002, 2:10:08 PM (23 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/combo.c
r9523 r9524 1252 1252 } 1253 1253 } 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 1254 1269 } 1255 1270 … … 1270 1285 return TRUE; 1271 1286 } 1287 1288 #ifdef __WIN32OS2__ 1289 /*********************************************************************** 1290 * COMBO_RollupListbox 1291 * 1292 * @@PF Odin specific function. 1293 */ 1294 BOOL 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 1272 1304 1273 1305 /*********************************************************************** -
trunk/src/user32/edit.c
r9523 r9524 36 36 #ifndef __WIN32OS2__ 37 37 DECLARE_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 40 42 #define BUFLIMIT_MULTI 65534 /* maximum buffer size (not including '\0') 41 43 FIXME: BTW, new specs say 65535 (do you dare ???) */ 42 44 #define BUFLIMIT_SINGLE 32766 /* maximum buffer size (not including '\0') */ 45 #endif 46 43 47 #define GROWLENGTH 32 /* buffers granularity in bytes: must be power of 2 */ 44 48 #define ROUND_TO_GROW(size) (((size) + (GROWLENGTH - 1)) & ~(GROWLENGTH - 1)) … … 1840 1844 if (size <= es->buffer_size) 1841 1845 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 1842 1852 if (size > es->buffer_limit) { 1843 1853 EDIT_NOTIFY_PARENT(hwnd, es, EN_MAXTEXT, "EN_MAXTEXT"); … … 1846 1856 if (size > es->buffer_limit) 1847 1857 size = es->buffer_limit; 1858 #endif 1848 1859 1849 1860 TRACE("trying to ReAlloc to %d+1 characters\n", size); -
trunk/src/user32/listbox.c
r9523 r9524 1743 1743 else /* not a directory */ 1744 1744 { 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 1745 1751 #define ATTRIBS (FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN | \ 1746 1752 FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_ARCHIVE) 1753 #endif 1747 1754 1748 1755 if ((attrib & DDL_EXCLUSIVE) && … … 2057 2064 LISTBOX_SetCaretIndex( hwnd, pDescr, pDescr->lphc->droppedIndex, FALSE ); 2058 2065 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 2059 2075 COMBO_FlipListbox( pDescr->lphc, FALSE, FALSE ); 2076 #endif 2060 2077 return 0; 2061 2078 }
Note:
See TracChangeset
for help on using the changeset viewer.