Changeset 460 for trunk/dll/arccnrs.c
- Timestamp:
- Aug 24, 2006, 7:11:45 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r426 r460 29 29 31 Jul 06 SHL Lower priority for archives with more than 1000 entries 30 30 02 Aug 06 SHL Add logic to stop processing large archives 31 23 Aug 06 SHL Integrate John Small's switch list title logic 31 32 32 33 ***********************************************************************/ … … 1332 1333 if (mp1) 1333 1334 strcpy(dcd->arcname,(CHAR *)mp1); // Update name on request 1334 WinSetWindowText(dcd->hwndFrame,"AV/2");1335 WinSetWindowText(WinWindowFromID(dcd->hwndFrame,FID_TITLEBAR),dcd->arcname);1336 1335 dcd->ullTotalBytes = dcd->totalfiles = 1337 1336 dcd->selectedfiles = dcd->selectedbytes = 0; … … 3431 3430 DIRCNRDATA *dcd; 3432 3431 ARC_TYPE *info = sinfo; 3433 CHAR fullname[CCHMAXPATH],*p,temp; 3432 CHAR title[MAXNAMEL + 1] = "AV/2 - "; 3433 CHAR fullname[CCHMAXPATH + 8], *p, temp; 3434 3434 static USHORT idinc = 0; 3435 3435 … … 3456 3456 if (!info) 3457 3457 return hwndFrame; 3458 if (strlen(title) + strlen(fullname) > MAXNAMEL) 3459 { 3460 p = title + strlen(title); 3461 strncpy(p, fullname, MAXNAMEL/2 - 5); 3462 strcpy(p + MAXNAMEL/2 - 5, "..."); 3463 strcat(title, fullname + strlen(fullname) - (MAXNAMEL/2 - 5)); 3464 } 3465 else 3466 { 3467 strcat(title, fullname); 3468 } 3458 3469 hwndFrame = WinCreateStdWindow(hwndParent, 3459 3470 WS_VISIBLE, 3460 3471 &FrameFlags, 3461 3472 GetPString(IDS_WCARCCONTAINER), 3462 NULL,3473 title, 3463 3474 WS_VISIBLE | fwsAnimate, 3464 3475 FM3ModHandle, … … 3567 3578 QWL_USER, 3568 3579 (PVOID)dcd); 3569 {3570 CHAR s[CCHMAXPATH + 8];3571 3572 sprintf(s,"AV/2: %s",dcd->arcname);3573 WinSetWindowText(hwndFrame,s);3574 WinSetWindowText(WinWindowFromID(hwndFrame,FID_TITLEBAR),s);3575 }3576 3580 dcd->oldproc = WinSubclassWindow(dcd->hwndCnr, 3577 3581 (PFNWP)ArcCnrWndProc);
Note:
See TracChangeset
for help on using the changeset viewer.