Changeset 1031 for trunk/dll/mainwnd.c


Ignore:
Timestamp:
Jun 28, 2008, 10:54:10 PM (17 years ago)
Author:
John Small
Message:

Ticket 227: Moved warning message string to fm2dll.str.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/mainwnd.c

    r1029 r1031  
    29742974  CHAR szDir[CCHMAXPATH];
    29752975  CHAR szPrefix[STATE_NAME_MAX_BYTES + 2];
    2976   HWND hwndDir, hwndC, hwndPPSave = NULLHANDLE;
     2976  HWND hwndDir, hwndC, hwndDir0 = NULLHANDLE, hwndPPSave = NULLHANDLE;
    29772977  SWP swp, swpO, swpN;
    29782978  ULONG size, numsaves = 0, x;
     
    32323232                                      MPFROMP(szDir), MPFROMLONG(1));
    32333233          if (hwndDir) {
     3234
     3235            if (x == 0) {
     3236              hwndDir0 = hwndDir;
     3237            }
    32343238            hwndC = WinWindowFromID(hwndDir, FID_CLIENT);
    32353239            if (hwndC) {
     
    33343338                              swp.cy,
    33353339                              swp.fl | SWP_MOVE |
    3336                               SWP_SIZE | SWP_SHOW | SWP_ZORDER |
     3340                              SWP_SIZE | SWP_SHOW |  SWP_ZORDER |
    33373341                              SWP_ACTIVATE);
    33383342            else if (swp.fl & (SWP_HIDE | SWP_MINIMIZE)) {
     
    33553359       SavePresParams(hwndPPSave, "DirCnr");
    33563360       WinDestroyWindow(hwndPPSave);
     3361    }
     3362    if (hwndDir0) {
     3363      WinSetFocus(HWND_DESKTOP, hwndDir0);
    33573364    }
    33583365  }
     
    46074614          if (saymsg(MB_YESNO | MB_DEFBUTTON2 | MB_ICONASTERISK, hwnd,
    46084615              GetPString(IDS_WARNINGTEXT),
    4609               "\"%s\" is the state name used by \"Save directory container state\". Any changes to this state will last only until FM/2 closes or this setting is disabled. Proceed with this change?", szStateName) == MBID_NO)
     4616              GetPString(IDS_SHUTDOWNSTATE_WARNING), szStateName) == MBID_NO)
    46104617              fAbortOperation = TRUE;
    46114618        }
Note: See TracChangeset for help on using the changeset viewer.