Changeset 8515 for trunk/src


Ignore:
Timestamp:
May 29, 2002, 4:05:10 PM (23 years ago)
Author:
sandervl
Message:

Update: Wine merged our changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/propsheet.c

    r8411 r8515  
    3333#include "heap.h"
    3434
    35 #ifdef __WIN32OS2__
    36 #include <heapstring.h>
    37 #endif
    3835
    3936/******************************************************************************
     
    212209#undef add_flag
    213210
    214 #ifdef __WIN32OS2__
    215211/******************************************************************************
    216212 *            PROPSHEET_FindPageByResId
     
    233229   return i;
    234230}
    235 #endif
    236231
    237232/******************************************************************************
     
    489484      pTitle = lppsp->pszTitle;
    490485
    491     len = strlenW(szTitle);
     486    len = strlenW(pTitle);
    492487    psInfo->proppage[index].pszText = COMCTL32_Alloc( (len+1)*sizeof (WCHAR) );
    493488    strcpyW( (LPWSTR)psInfo->proppage[index].pszText,pTitle);
     
    11641159  TRACE("index %d\n", index);
    11651160
    1166 #ifdef __WIN32OS2__
    11671161  if (ppshpage == NULL)
    11681162  {
    1169     dprintf(("COMCTL32:PROPSHEET_CreatePage: ERROR!!! ppshpage == NULL!!!\n"));
    11701163    return FALSE;
    11711164  }
    1172 #endif
    11731165
    11741166  if (ppshpage->dwFlags & PSP_DLGINDIRECT)
     
    12121204    ((MyDLGTEMPLATEEX*)pTemplate)->style &= ~WS_DISABLED;
    12131205    ((MyDLGTEMPLATEEX*)pTemplate)->style &= ~WS_VISIBLE;
    1214 #ifdef __WIN32OS2__
    12151206    ((MyDLGTEMPLATEEX*)pTemplate)->style &= ~WS_THICKFRAME;
    1216 #endif
    12171207  }
    12181208  else
     
    12251215    pTemplate->style &= ~WS_DISABLED;
    12261216    pTemplate->style &= ~WS_VISIBLE;
    1227 #ifdef __WIN32OS2__
    12281217    pTemplate->style &= ~WS_THICKFRAME;
    1229 #endif
    12301218  }
    12311219
     
    12691257  }
    12701258
    1271 #ifdef __WIN32OS2__
    1272   //HACK alert!
    1273   //SvL: CVP multiplies y padding by two to calculate the new height
    1274   //I have no idea if this is always correct
    1275   //This actually does make sense. The property page will get centered instead
    1276   //of being slammed in the lower right corner
    12771259  SetWindowPos(hwndPage, HWND_TOP,
    12781260               rc.left + padding.x/2,
    12791261               rc.top + padding.y/2,
    12801262               pageWidth, pageHeight, 0);
    1281 #else
    1282   SetWindowPos(hwndPage, HWND_TOP,
    1283                rc.left + padding.x,
    1284                rc.top + padding.y,
    1285                pageWidth, pageHeight, 0);
    1286 #endif
    12871263
    12881264  return TRUE;
     
    13351311static BOOL PROPSHEET_Back(HWND hwndDlg)
    13361312{
    1337   BOOL res;
    13381313  PSHNOTIFY psn;
    13391314  HWND hwndPage;
     
    13411316                                                    PropSheetInfoStr);
    13421317  LRESULT result;
    1343 #ifdef __WIN32OS2__
    13441318  int idx;
    1345 #endif
    13461319
    13471320  TRACE("active_page %d\n", psInfo->active_page);
     
    13591332  if (result == -1)
    13601333    return FALSE;
    1361 #ifdef __WIN32OS2__
    13621334  else if (result == 0)
    13631335     idx = psInfo->active_page - 1;
     
    13701342        PROPSHEET_SetCurSel(hwndDlg, idx, -1, 0);
    13711343  }
    1372 #else
    1373   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 #endif
    13821344  return TRUE;
    13831345}
     
    13931355  PropSheetInfo* psInfo = (PropSheetInfo*) GetPropW(hwndDlg,
    13941356                                                    PropSheetInfoStr);
    1395 #ifdef __WIN32OS2__
    13961357  int idx;
    1397 #endif
    13981358
    13991359  TRACE("active_page %d\n", psInfo->active_page);
     
    14111371  if (msgResult == -1)
    14121372    return FALSE;
    1413 #ifdef __WIN32OS2__
    14141373  else if (msgResult == 0)
    14151374     idx = psInfo->active_page + 1;
     
    14221381        PROPSHEET_SetCurSel(hwndDlg, idx, 1, 0);
    14231382  }
    1424 #else
    1425   if(PROPSHEET_CanSetCurSel(hwndDlg) != FALSE)
    1426   {
    1427     PROPSHEET_SetCurSel(hwndDlg, psInfo->active_page + 1, 1, 0);
    1428   }
    1429 #endif
    14301383
    14311384  return TRUE;
     
    17991752      }
    18001753    }
    1801 #ifdef __WIN32OS2__
    18021754    else if (result != 0)
    18031755    {
     
    18051757       continue;
    18061758    }
    1807 #endif
    18081759  }
    18091760  /*
Note: See TracChangeset for help on using the changeset viewer.