- Timestamp:
- Nov 21, 1999, 6:58:08 PM (26 years ago)
- Location:
- trunk/src/comctl32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/propsheet.c
r1776 r1803 1 /* $Id: propsheet.c,v 1.1 4 1999-11-19 16:16:38 achimhaExp $ */1 /* $Id: propsheet.c,v 1.15 1999-11-21 17:58:07 cbratschi Exp $ */ 2 2 /* 3 3 * Property Sheets … … 266 266 p += lstrlenW( (LPCWSTR)p ) + 1; 267 267 break; 268 } 268 } 269 269 270 270 /* class */ … … 292 292 { 293 293 char szTitle[256]; 294 294 295 295 if ( !LoadStringA( lppsp->hInstance, (UINT) lppsp->pszTitle, szTitle, 256 ) ) 296 296 return FALSE; 297 297 298 298 psInfo->proppage[index].pszText = HEAP_strdupAtoW( GetProcessHeap(), 299 299 0, szTitle ); 300 300 } 301 301 else 302 302 psInfo->proppage[index].pszText = HEAP_strdupAtoW(GetProcessHeap(), 303 304 303 0, 304 lppsp->pszTitle); 305 305 } 306 306 … … 308 308 * Build the image list for icons 309 309 */ 310 if ((dwFlags & PSP_USEHICON) || (dwFlags & PSP_USEICONID)) 310 if ((dwFlags & PSP_USEHICON) || (dwFlags & PSP_USEICONID)) 311 311 { 312 312 HICON hIcon; … … 315 315 316 316 if (dwFlags & PSP_USEICONID) 317 hIcon = LoadImageA(lppsp->hInstance, lppsp->u2.pszIcon, IMAGE_ICON, 317 hIcon = LoadImageA(lppsp->hInstance, lppsp->u2.pszIcon, IMAGE_ICON, 318 318 icon_cx, icon_cy, LR_DEFAULTCOLOR); 319 319 else … … 926 926 927 927 hwndPage = CreateDialogIndirectParamA(ppshpage->hInstance, 928 929 930 931 928 pTemplate, 929 hwndParent, 930 ppshpage->pfnDlgProc, 931 (LPARAM)ppshpage); 932 932 933 933 ppInfo[index].hwndPage = hwndPage; … … 963 963 964 964 hdr.hwndFrom = hwndParent; 965 hdr.idFrom = GetWindowLongA(hwndParent,GWL_ID); 965 966 hdr.code = PSN_SETACTIVE; 966 967 … … 1019 1020 1020 1021 hdr.hwndFrom = hwndDlg; 1022 hdr.idFrom = GetWindowLongA(hwndDlg,GWL_ID); 1021 1023 hdr.code = PSN_WIZBACK; 1022 1024 … … 1054 1056 1055 1057 hdr.hwndFrom = hwndDlg; 1058 hdr.idFrom = GetWindowLongA(hwndDlg,GWL_ID); 1056 1059 hdr.code = PSN_WIZNEXT; 1057 1060 … … 1088 1091 1089 1092 hdr.hwndFrom = hwndDlg; 1093 hdr.idFrom = GetWindowLongA(hwndDlg,GWL_ID); 1090 1094 hdr.code = PSN_WIZFINISH; 1091 1095 … … 1123 1127 1124 1128 hdr.hwndFrom = hwndDlg; 1129 hdr.idFrom = GetWindowLongA(hwndDlg,GWL_ID); 1125 1130 1126 1131 /* … … 1166 1171 hwndPage = psInfo->proppage[psInfo->active_page].hwndPage; 1167 1172 hdr.hwndFrom = hwndDlg; 1173 hdr.idFrom = GetWindowLongA(hwndDlg,GWL_ID); 1168 1174 hdr.code = PSN_QUERYCANCEL; 1169 1175 … … 1196 1202 hwndPage = psInfo->proppage[psInfo->active_page].hwndPage; 1197 1203 hdr.hwndFrom = hwndDlg; 1204 hdr.idFrom = GetWindowLongA(hwndDlg,GWL_ID); 1198 1205 hdr.code = PSN_HELP; 1199 1206 … … 1294 1301 1295 1302 /************************************************************************* 1296 * BOOL PROPSHEET_CanSetCurSel [Internal] 1303 * BOOL PROPSHEET_CanSetCurSel [Internal] 1297 1304 * 1298 1305 * Test weither the current page can be changed by sending a PSN_KILLACTIVE … … 1321 1328 1322 1329 hdr.hwndFrom = hwndDlg; 1330 hdr.idFrom = GetWindowLongA(hwndDlg,GWL_ID); 1323 1331 hdr.code = PSN_KILLACTIVE; 1324 1332 … … 1345 1353 1346 1354 hdr.hwndFrom = hwndDlg; 1355 hdr.idFrom = GetWindowLongA(hwndDlg,GWL_ID); 1347 1356 /* 1348 1357 * hpage takes precedence over index. … … 1370 1379 result = SendMessageA(hwndPage, WM_NOTIFY, 0, (LPARAM) &hdr); 1371 1380 /* 1372 * TODO: check return value. 1381 * TODO: check return value. 1373 1382 */ 1374 1383 } … … 1392 1401 static void PROPSHEET_SetTitleA(HWND hwndDlg, DWORD dwStyle, LPCSTR lpszText) 1393 1402 { 1394 PropSheetInfo* 1395 char 1403 PropSheetInfo* psInfo = (PropSheetInfo*) GetPropA(hwndDlg, PropSheetInfoStr); 1404 char szTitle[256]; 1396 1405 1397 1406 if (HIWORD(lpszText) == 0) { 1398 if (!LoadStringA(psInfo->ppshheader->hInstance, 1407 if (!LoadStringA(psInfo->ppshheader->hInstance, 1399 1408 LOWORD(lpszText), szTitle, sizeof(szTitle)-1)) 1400 1409 return; … … 1612 1621 if (psInfo->isModeless || psInfo->nPages > 1) 1613 1622 DestroyWindow(psInfo->proppage[index].hwndPage); 1614 1623 1615 1624 /* Remove the tab */ 1616 1625 SendMessageA(hwndTabControl, TCM_DELETEITEM, index, 0); … … 1619 1628 psInfo->proppage = COMCTL32_Alloc(sizeof(PropPageInfo) * psInfo->nPages); 1620 1629 1621 if (index > 0) 1630 if (index > 0) 1622 1631 memcpy(&psInfo->proppage[0], &oldPages[0], index * sizeof(PropPageInfo)); 1623 1632 … … 1659 1668 /* Show and enable the Next button */ 1660 1669 hwndButton = GetDlgItem(hwndDlg, IDC_NEXT_BUTTON); 1661 1670 1662 1671 ShowWindow(hwndButton, SW_SHOW); 1663 1672 EnableWindow(hwndButton, TRUE); … … 1837 1846 SendMessageA(hwnd, WM_SETICON, 0, hIcon); 1838 1847 } 1839 1848 1840 1849 if (psInfo->ppshheader->dwFlags & PSH_USEHICON) 1841 1850 SendMessageA(hwnd, WM_SETICON, 0, psInfo->ppshheader->u1.hIcon); … … 1870 1879 } 1871 1880 1872 if (psInfo->useCallback) 1873 (*(psInfo->ppshheader->pfnCallback))(hwnd, 1874 PSCB_INITIALIZED, (LPARAM)0); 1875 1876 ppshpage = PROPSHEET_GetPSPPage(psInfo, psInfo->active_page); 1881 if (psInfo->useCallback) 1882 (*(psInfo->ppshheader->pfnCallback))(hwnd, 1883 PSCB_INITIALIZED, (LPARAM)0); 1884 1885 ppshpage = PROPSHEET_GetPSPPage(psInfo, psInfo->active_page); 1877 1886 PROPSHEET_CreatePage(hwnd, psInfo->active_page, psInfo, ppshpage, TRUE); 1878 1887 … … 1885 1894 char szText[256]; 1886 1895 1887 if (LoadStringA(psInfo->ppshheader->hInstance, 1896 if (LoadStringA(psInfo->ppshheader->hInstance, 1888 1897 (UINT)psInfo->ppshheader->pszCaption, szText, 255)) 1889 1898 PROPSHEET_SetTitleA(hwnd, psInfo->ppshheader->dwFlags, szText); … … 2059 2068 case PSM_REBOOTSYSTEM: 2060 2069 { 2061 PropSheetInfo* psInfo = (PropSheetInfo*) GetPropA(hwnd, 2070 PropSheetInfo* psInfo = (PropSheetInfo*) GetPropA(hwnd, 2062 2071 PropSheetInfoStr); 2063 2072 … … 2120 2129 2121 2130 case PSM_SETFINISHTEXTA: 2122 PROPSHEET_SetFinishTextA(hwnd, (LPCSTR) lParam); 2131 PROPSHEET_SetFinishTextA(hwnd, (LPCSTR) lParam); 2123 2132 return TRUE; 2124 2133 -
trunk/src/comctl32/resource.asm
r1788 r1803 1 1 ;/* This file is generated with wrc version 1.0.14 (08-Aug-1999). Do not edit! */ 2 2 ;/* Source : rsrc.rc */ 3 ;/* Cmdline: wrc -s -I. -I H:\IBMCPP3\include -I..\..\include -I..\..\include\win -o resource.asm rsrc.rc */4 ;/* Date : Fri Nov 19 17:52:021999 */3 ;/* Cmdline: wrc -s -I. -IE:\IBMCPP\include -I..\..\include -I..\..\include\win -o resource.asm rsrc.rc */ 4 ;/* Date : Sun Nov 21 15:11:29 1999 */ 5 5 6 6 .386p … … 12 12 public _Resource_PEResTab 13 13 dd 0 14 dd 0383 58032h14 dd 03837fd91h 15 15 dd 0 16 16 dw 0, 4 … … 25 25 L2: 26 26 dd 0 27 dd 0383 58032h27 dd 03837fd91h 28 28 dd 0 29 29 dw 0, 6 … … 42 42 L4: 43 43 dd 0 44 dd 0383 58032h44 dd 03837fd91h 45 45 dd 0 46 46 dw 0, 1 … … 49 49 L5: 50 50 dd 0 51 dd 0383 58032h51 dd 03837fd91h 52 52 dd 0 53 53 dw 0, 3 … … 60 60 L16: 61 61 dd 0 62 dd 0383 58032h62 dd 03837fd91h 63 63 dd 0 64 64 dw 0, 1 … … 67 67 L2_120: 68 68 dd 0 69 dd 0383 58032h69 dd 03837fd91h 70 70 dd 0 71 71 dw 0, 1 … … 74 74 L2_121: 75 75 dd 0 76 dd 0383 58032h76 dd 03837fd91h 77 77 dd 0 78 78 dw 0, 1 … … 81 81 L2_124: 82 82 dd 0 83 dd 0383 58032h83 dd 03837fd91h 84 84 dd 0 85 85 dw 0, 1 … … 88 88 L2_125: 89 89 dd 0 90 dd 0383 58032h90 dd 03837fd91h 91 91 dd 0 92 92 dw 0, 1 … … 95 95 L2_130: 96 96 dd 0 97 dd 0383 58032h97 dd 03837fd91h 98 98 dd 0 99 99 dw 0, 1 … … 102 102 L2_131: 103 103 dd 0 104 dd 0383 58032h104 dd 03837fd91h 105 105 dd 0 106 106 dw 0, 1 … … 109 109 L4_300: 110 110 dd 0 111 dd 0383 58032h111 dd 03837fd91h 112 112 dd 0 113 113 dw 0, 1 … … 116 116 L5_200: 117 117 dd 0 118 dd 0383 58032h118 dd 03837fd91h 119 119 dd 0 120 120 dw 0, 1 … … 123 123 L5_1006: 124 124 dd 0 125 dd 0383 58032h125 dd 03837fd91h 126 126 dd 0 127 127 dw 0, 1 … … 130 130 L5_1020: 131 131 dd 0 132 dd 0383 58032h132 dd 03837fd91h 133 133 dd 0 134 134 dw 0, 1 … … 137 137 L16_1: 138 138 dd 0 139 dd 0383 58032h139 dd 03837fd91h 140 140 dd 0 141 141 dw 0, 1
Note:
See TracChangeset
for help on using the changeset viewer.