- Timestamp:
- Nov 19, 1999, 5:22:01 PM (26 years ago)
- Location:
- trunk/src/comctl32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/propsheet.c
r1730 r1776 1 /* $Id: propsheet.c,v 1.1 3 1999-11-14 10:58:38 achimha Exp $ */1 /* $Id: propsheet.c,v 1.14 1999-11-19 16:16:38 achimha Exp $ */ 2 2 /* 3 3 * Property Sheets … … 13 13 */ 14 14 15 /* WINE 991 031level */15 /* WINE 991114 level */ 16 16 17 17 /* CB: Odin problems: … … 1015 1015 PropSheetInfoStr); 1016 1016 1017 if (psInfo->active_page <= 0) 1018 return FALSE; 1019 1020 hdr.hwndFrom = hwndDlg; 1017 1021 hdr.code = PSN_WIZBACK; 1018 1022 … … 1022 1026 return FALSE; 1023 1027 1024 res = PROPSHEET_SetCurSel(hwndDlg, psInfo->active_page - 1, 0); 1028 res = PROPSHEET_CanSetCurSel(hwndDlg); 1029 if(res != FALSE) 1030 { 1031 res = PROPSHEET_SetCurSel(hwndDlg, psInfo->active_page - 1, 0); 1032 } 1025 1033 1026 1034 /* if we went to page 0, disable Back button */ … … 1042 1050 PropSheetInfoStr); 1043 1051 1052 if (psInfo->active_page < 0 || psInfo->active_page == psInfo->nPages - 1) 1053 return FALSE; 1054 1044 1055 hdr.hwndFrom = hwndDlg; 1045 1056 hdr.code = PSN_WIZNEXT; … … 1072 1083 PropSheetInfo* psInfo = (PropSheetInfo*) GetPropA(hwndDlg, 1073 1084 PropSheetInfoStr); 1085 1086 if (psInfo->active_page < 0) 1087 return FALSE; 1074 1088 1075 1089 hdr.hwndFrom = hwndDlg; … … 1105 1119 PropSheetInfoStr); 1106 1120 1121 if (psInfo->active_page < 0) 1122 return FALSE; 1123 1107 1124 hdr.hwndFrom = hwndDlg; 1108 1125 … … 1141 1158 PropSheetInfo* psInfo = (PropSheetInfo*) GetPropA(hwndDlg, 1142 1159 PropSheetInfoStr); 1143 HWND hwndPage = psInfo->proppage[psInfo->active_page].hwndPage;1160 HWND hwndPage; 1144 1161 NMHDR hdr; 1145 1162 1163 if (psInfo->active_page < 0) 1164 return; 1165 1166 hwndPage = psInfo->proppage[psInfo->active_page].hwndPage; 1146 1167 hdr.hwndFrom = hwndDlg; 1147 1168 hdr.code = PSN_QUERYCANCEL; … … 1167 1188 PropSheetInfo* psInfo = (PropSheetInfo*) GetPropA(hwndDlg, 1168 1189 PropSheetInfoStr); 1169 HWND hwndPage = psInfo->proppage[psInfo->active_page].hwndPage;1190 HWND hwndPage; 1170 1191 NMHDR hdr; 1171 1192 1193 if (psInfo->active_page < 0) 1194 return; 1195 1196 hwndPage = psInfo->proppage[psInfo->active_page].hwndPage; 1172 1197 hdr.hwndFrom = hwndDlg; 1173 1198 hdr.code = PSN_HELP; … … 1288 1313 NMHDR hdr; 1289 1314 1290 if (!psInfo) 1291 return FALSE; 1292 1315 if (!psInfo || psInfo->active_page < 0) 1316 return FALSE; 1293 1317 /* 1294 1318 * Notify the current page. … … 1315 1339 NMHDR hdr; 1316 1340 1341 if (psInfo->active_page < 0) 1342 return FALSE; 1343 1317 1344 hwndPage = psInfo->proppage[psInfo->active_page].hwndPage; 1318 1345 … … 1322 1349 */ 1323 1350 if (hpage != NULL) 1324 {1325 1351 index = PROPSHEET_GetPageIndex(hpage, psInfo); 1326 1352 1327 if (index == -1) 1328 { 1329 TRACE("Could not find page to remove!\n"); 1330 return FALSE; 1331 } 1353 if (index < 0 || index >= psInfo->nPages) 1354 { 1355 TRACE("Could not find page to select!\n"); 1356 return FALSE; 1332 1357 } 1333 1358 … … 1367 1392 static void PROPSHEET_SetTitleA(HWND hwndDlg, DWORD dwStyle, LPCSTR lpszText) 1368 1393 { 1394 PropSheetInfo* psInfo = (PropSheetInfo*) GetPropA(hwndDlg, PropSheetInfoStr); 1395 char szTitle[256]; 1396 1397 if (HIWORD(lpszText) == 0) { 1398 if (!LoadStringA(psInfo->ppshheader->hInstance, 1399 LOWORD(lpszText), szTitle, sizeof(szTitle)-1)) 1400 return; 1401 lpszText = szTitle; 1402 } 1369 1403 if (dwStyle & PSH_PROPTITLE) 1370 1404 { 1371 PropSheetInfo* psInfo = (PropSheetInfo*) GetPropA(hwndDlg,1372 PropSheetInfoStr);1373 1405 char* dest; 1374 1406 int lentitle = strlen(lpszText); … … 1782 1814 LPCPROPSHEETPAGEA ppshpage; 1783 1815 1816 SetPropA(hwnd, PropSheetInfoStr, (HANDLE)psInfo); 1817 1784 1818 /* 1785 1819 * Small icon in the title bar. … … 1846 1880 SendMessageA(hwndTabCtrl, TCM_SETCURSEL, psInfo->active_page, 0); 1847 1881 1848 SetPropA(hwnd, PropSheetInfoStr, (HANDLE)psInfo);1849 1850 1851 1882 if (!HIWORD(psInfo->ppshheader->pszCaption) && 1852 1883 psInfo->ppshheader->hInstance) -
trunk/src/comctl32/toolbar.c
r1565 r1776 1 /* $Id: toolbar.c,v 1.1 7 1999-11-02 21:44:03achimha Exp $ */1 /* $Id: toolbar.c,v 1.18 1999-11-19 16:19:22 achimha Exp $ */ 2 2 /* 3 3 * Toolbar control … … 27 27 */ 28 28 29 /* WINE 991 031level */29 /* WINE 991114 level */ 30 30 31 31 /* CB: Odin32/WINE bugs … … 4035 4035 return TOOLBAR_IsButtonPressed (hwnd, wParam, lParam); 4036 4036 4037 /* case TB_LOADIMAGES: */ /* 4.70 */ 4037 case TB_LOADIMAGES: /* 4.70 */ 4038 // FIXME("missing standard imagelists\n"); 4039 return 0; 4038 4040 /* case TB_MAPACCELERATORA: */ /* 4.71 */ 4039 4041 /* case TB_MAPACCELERATORW: */ /* 4.71 */ -
trunk/src/comctl32/treeview.c
r1668 r1776 1 /* $Id: treeview.c,v 1.1 5 1999-11-09 17:09:27 cbratschiExp $ */1 /* $Id: treeview.c,v 1.16 1999-11-19 16:22:01 achimha Exp $ */ 2 2 /* Treeview control 3 3 * … … 42 42 */ 43 43 44 /* WINE 991 031level */44 /* WINE 991114 level */ 45 45 46 46 #include <string.h> … … 927 927 } 928 928 929 wineItem->mask |= tvItem->mask; 930 929 931 return TRUE; 930 932 } … … 2462 2464 tvdi.item.lParam = wineItem->lParam; 2463 2465 tvdi.item.pszText = COMCTL32_Alloc (128*sizeof(char)); 2466 tvdi.item.cchTextMax = 128; 2464 2467 buf = tvdi.item.pszText; 2465 2468
Note:
See TracChangeset
for help on using the changeset viewer.