- Timestamp:
- Nov 25, 2002, 5:49:48 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/propsheet.c
r9394 r9425 57 57 short x; 58 58 short y; 59 short cx; 59 60 short cy; 60 61 DWORD id; … … 433 434 if (((MyDLGTEMPLATEEX*)pTemplate)->signature == 0xFFFF) 434 435 { 435 /* D IALOGEX template*/436 /* DLGTEMPLATEEX (not defined in any std. header file) */ 436 437 437 438 p++; /* dlgVer */ … … 443 444 else 444 445 { 445 /* D IALOG template*/446 /* DLGTEMPLATE */ 446 447 447 448 p += 2; /* style */ … … 1180 1181 * 1181 1182 *( Based on the code of PROPSHEET_CollectPageInfo) 1183 * See also dialog.c/DIALOG_ParseTemplate32(). 1182 1184 */ 1183 1185 … … 1191 1193 if (istemplateex) 1192 1194 { 1193 /* DIALOGEX template */ 1194 1195 /* DLGTEMPLATEEX (not defined in any std. header file) */ 1196 1197 TRACE("is DLGTEMPLATEEX\n"); 1195 1198 p++; /* dlgVer */ 1196 1199 p++; /* signature */ … … 1201 1204 else 1202 1205 { 1203 /* DIALOG template */ 1204 1206 /* DLGTEMPLATE */ 1207 1208 TRACE("is DLGTEMPLATE\n"); 1205 1209 p += 2; /* style */ 1206 1210 p += 2; /* ext style */ … … 1235 1239 break; 1236 1240 case 0xffff: 1237 p += 2; 1241 p += 2; /* 0xffff plus predefined window class ordinal value */ 1238 1242 break; 1239 1243 default: … … 1243 1247 } 1244 1248 1245 /* title */1249 /* title */ 1246 1250 TRACE("title %s\n",debugstr_w((LPCWSTR)p)); 1247 1251 p += lstrlenW((LPCWSTR)p) + 1; 1248 1252 1249 /* font, if DS_ FONT set */1253 /* font, if DS_SETFONT set */ 1250 1254 if ((DS_SETFONT & ((istemplateex)? ((MyDLGTEMPLATEEX*)pTemplate)->style : 1251 1255 pTemplate->style))) … … 1253 1257 p+=(istemplateex)?3:1; 1254 1258 TRACE("font %s\n",debugstr_w((LPCWSTR)p)); 1255 p += lstrlenW( (LPCWSTR)p ) + 1; /* the font name*/ 1256 } 1257 1259 p += lstrlenW( (LPCWSTR)p ) + 1; /* the font name */ 1260 } 1261 1262 /* now process the DLGITEMTEMPLATE(EX) structs (plus custom data) 1263 * that are following the DLGTEMPLATE(EX) data */ 1258 1264 TRACE("%d items\n",nrofitems); 1259 1265 while (nrofitems > 0) … … 1261 1267 p = (WORD*)(((DWORD)p + 3) & ~3); /* DWORD align */ 1262 1268 1269 /* skip header */ 1263 1270 p += (istemplateex ? sizeof(MyDLGITEMTEMPLATEEX) : sizeof(DLGITEMTEMPLATE))/sizeof(WORD); 1264 1271 1272 /* check class */ 1265 1273 switch ((WORD)*p) 1266 1274 { … … 1277 1285 break; 1278 1286 } 1287 1288 /* check title text */ 1279 1289 switch ((WORD)*p) 1280 1290 { … … 1357 1367 return FALSE; 1358 1368 1369 TRACE("copying pTemplate %p into temp %p (%ld)\n", pTemplate, temp, resSize); 1359 1370 memcpy(temp, pTemplate, resSize); 1360 1371 pTemplate = temp; … … 2666 2677 PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) 2667 2678 { 2668 TRACE("hwnd=%p msg= %x wparam=%x lparam=%lx\n",2679 TRACE("hwnd=%p msg=0x%04x wparam=%x lparam=%lx\n", 2669 2680 hwnd, uMsg, wParam, lParam); 2670 2681
Note:
See TracChangeset
for help on using the changeset viewer.