- Timestamp:
- May 29, 2002, 4:05:10 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/propsheet.c
r8411 r8515 33 33 #include "heap.h" 34 34 35 #ifdef __WIN32OS2__36 #include <heapstring.h>37 #endif38 35 39 36 /****************************************************************************** … … 212 209 #undef add_flag 213 210 214 #ifdef __WIN32OS2__215 211 /****************************************************************************** 216 212 * PROPSHEET_FindPageByResId … … 233 229 return i; 234 230 } 235 #endif236 231 237 232 /****************************************************************************** … … 489 484 pTitle = lppsp->pszTitle; 490 485 491 len = strlenW( szTitle);486 len = strlenW(pTitle); 492 487 psInfo->proppage[index].pszText = COMCTL32_Alloc( (len+1)*sizeof (WCHAR) ); 493 488 strcpyW( (LPWSTR)psInfo->proppage[index].pszText,pTitle); … … 1164 1159 TRACE("index %d\n", index); 1165 1160 1166 #ifdef __WIN32OS2__1167 1161 if (ppshpage == NULL) 1168 1162 { 1169 dprintf(("COMCTL32:PROPSHEET_CreatePage: ERROR!!! ppshpage == NULL!!!\n"));1170 1163 return FALSE; 1171 1164 } 1172 #endif1173 1165 1174 1166 if (ppshpage->dwFlags & PSP_DLGINDIRECT) … … 1212 1204 ((MyDLGTEMPLATEEX*)pTemplate)->style &= ~WS_DISABLED; 1213 1205 ((MyDLGTEMPLATEEX*)pTemplate)->style &= ~WS_VISIBLE; 1214 #ifdef __WIN32OS2__1215 1206 ((MyDLGTEMPLATEEX*)pTemplate)->style &= ~WS_THICKFRAME; 1216 #endif1217 1207 } 1218 1208 else … … 1225 1215 pTemplate->style &= ~WS_DISABLED; 1226 1216 pTemplate->style &= ~WS_VISIBLE; 1227 #ifdef __WIN32OS2__1228 1217 pTemplate->style &= ~WS_THICKFRAME; 1229 #endif1230 1218 } 1231 1219 … … 1269 1257 } 1270 1258 1271 #ifdef __WIN32OS2__1272 //HACK alert!1273 //SvL: CVP multiplies y padding by two to calculate the new height1274 //I have no idea if this is always correct1275 //This actually does make sense. The property page will get centered instead1276 //of being slammed in the lower right corner1277 1259 SetWindowPos(hwndPage, HWND_TOP, 1278 1260 rc.left + padding.x/2, 1279 1261 rc.top + padding.y/2, 1280 1262 pageWidth, pageHeight, 0); 1281 #else1282 SetWindowPos(hwndPage, HWND_TOP,1283 rc.left + padding.x,1284 rc.top + padding.y,1285 pageWidth, pageHeight, 0);1286 #endif1287 1263 1288 1264 return TRUE; … … 1335 1311 static BOOL PROPSHEET_Back(HWND hwndDlg) 1336 1312 { 1337 BOOL res;1338 1313 PSHNOTIFY psn; 1339 1314 HWND hwndPage; … … 1341 1316 PropSheetInfoStr); 1342 1317 LRESULT result; 1343 #ifdef __WIN32OS2__1344 1318 int idx; 1345 #endif1346 1319 1347 1320 TRACE("active_page %d\n", psInfo->active_page); … … 1359 1332 if (result == -1) 1360 1333 return FALSE; 1361 #ifdef __WIN32OS2__1362 1334 else if (result == 0) 1363 1335 idx = psInfo->active_page - 1; … … 1370 1342 PROPSHEET_SetCurSel(hwndDlg, idx, -1, 0); 1371 1343 } 1372 #else1373 if (psInfo->active_page > 0)1374 {1375 res = PROPSHEET_CanSetCurSel(hwndDlg);1376 if(res != FALSE)1377 {1378 res = PROPSHEET_SetCurSel(hwndDlg, psInfo->active_page - 1, -1, 0);1379 }1380 }1381 #endif1382 1344 return TRUE; 1383 1345 } … … 1393 1355 PropSheetInfo* psInfo = (PropSheetInfo*) GetPropW(hwndDlg, 1394 1356 PropSheetInfoStr); 1395 #ifdef __WIN32OS2__1396 1357 int idx; 1397 #endif1398 1358 1399 1359 TRACE("active_page %d\n", psInfo->active_page); … … 1411 1371 if (msgResult == -1) 1412 1372 return FALSE; 1413 #ifdef __WIN32OS2__1414 1373 else if (msgResult == 0) 1415 1374 idx = psInfo->active_page + 1; … … 1422 1381 PROPSHEET_SetCurSel(hwndDlg, idx, 1, 0); 1423 1382 } 1424 #else1425 if(PROPSHEET_CanSetCurSel(hwndDlg) != FALSE)1426 {1427 PROPSHEET_SetCurSel(hwndDlg, psInfo->active_page + 1, 1, 0);1428 }1429 #endif1430 1383 1431 1384 return TRUE; … … 1799 1752 } 1800 1753 } 1801 #ifdef __WIN32OS2__1802 1754 else if (result != 0) 1803 1755 { … … 1805 1757 continue; 1806 1758 } 1807 #endif1808 1759 } 1809 1760 /*
Note:
See TracChangeset
for help on using the changeset viewer.