Changeset 1722 for trunk/dll/errutil.c


Ignore:
Timestamp:
Feb 16, 2014, 9:17:15 PM (11 years ago)
Author:
Gregg Young
Message:

The rest of the files for CS 1721

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/errutil.c

    r1718 r1722  
    4040  07 Nov 13 SHL Update comments
    4141  15 Feb 14 GKY Improvements to saymsg2 some code cleanup
     42  16 Feb 14 GKY Rework readonly check on delete code so it actually works in a logical way
     43                and so it works with move to trashcan inabled.
    4244
    4345***********************************************************************/
     
    6062#include "init.h"                       // Data declares
    6163#include "wrappers.h"                   // xmallocz
     64#include "fm3dll2.h"
    6265
    6366#pragma data_seg(DATA1)
     
    398401  strcpy(mb2dBut[2].achText,GetPString(IDS_MB2DNO));
    399402  strcpy(mb2dBut[3].achText,GetPString(IDS_MB2DCANCELOP));
    400   mb2dBut[0].idButton = 1;
    401   mb2dBut[1].idButton = 2;
    402   mb2dBut[2].idButton = 3;
    403   mb2dBut[3].idButton = 4;
     403  mb2dBut[0].idButton = SM2_YES;
     404  mb2dBut[1].idButton = SM2_DONTASK;
     405  mb2dBut[2].idButton = SM2_NO;
     406  mb2dBut[3].idButton = SM2_CANCEL;
    404407  if (DefaultButton)
    405408    mb2dBut[DefaultButton - 1].flStyle = BS_DEFAULT;
     
    409412    pmbInfo->hIcon      = 0;
    410413    pmbInfo->cButtons   = 4;
    411     pmbInfo->flStyle    = MB_MOVEABLE | MB_SYSTEMMODAL | MB_ICONQUESTION ;
     414    pmbInfo->flStyle    = MB_MOVEABLE | MB_ICONQUESTION ;
    412415    pmbInfo->hwndNotify = NULLHANDLE;
    413416    for (i = 0; i < 4; i++) {
     
    415418    }
    416419    rc = WinMessageBox2(HWND_DESKTOP, hwnd,
    417                         szMsg, pszTitle, 1234,
     420                        szMsg, pszTitle, SM2_DIALOG,
    418421                        pmbInfo);
     422    WinSetFocus(HWND_DESKTOP, SM2_DIALOG);
    419423    free(pmbInfo);
    420424    return rc;
Note: See TracChangeset for help on using the changeset viewer.