Changeset 603 for trunk/dll/mainwnd.c


Ignore:
Timestamp:
Apr 6, 2007, 11:57:45 PM (18 years ago)
Author:
Gregg Young
Message:

Work around for PM drag/drop limit; more drag/drop error checking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/mainwnd.c

    r593 r603  
    2828  09 Mar 07 SHL RestoreDirCnrState/SaveDirCnrState: optimize and avoid overflows
    2929  30 Mar 07 GKY Remove GetPString for window class names
     30  06 Apr 07 GKY Work around PM DragInfo and DrgFreeDISH limits
     31  06 Apr 07 GKY Add some error checking in drag/drop
    3032
    3133***********************************************************************/
     
    12311233      cdi.pDragInfo = mp1;
    12321234      li = DoFileDrop(hwnd, NULL, FALSE, mp1, MPFROMP(&cdi));
     1235      if(fexceedpmdrglimit)
     1236             saymsg(MB_CANCEL | MB_ICONEXCLAMATION,
     1237                   hwnd,
     1238                   GetPString(IDS_ERRORTEXT),
     1239                   GetPString(IDS_EXCEEDPMDRGLMT));
    12331240      if (li) {
    12341241        li->type = id;
     
    17991806                      NULL,
    18001807                      TRUE, MPFROM2SHORT(TREE_CNR, CN_DROP), MPFROMP(&cnd));
     1808      if(fexceedpmdrglimit)
     1809             saymsg(MB_CANCEL | MB_ICONEXCLAMATION,
     1810                   hwnd,
     1811                   GetPString(IDS_ERRORTEXT),
     1812                   GetPString(IDS_EXCEEDPMDRGLMT));
    18011813      if (li) {
    18021814        strcpy(li->targetpath, szDrv);
Note: See TracChangeset for help on using the changeset viewer.