Changeset 552 for trunk/dll/command.c


Ignore:
Timestamp:
Mar 1, 2007, 7:24:47 AM (18 years ago)
Author:
Gregg Young
Message:

font cleanup; new image and archiver masks; messages moved to string file; new drive flags including David's icons mostly working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/command.c

    r551 r552  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2004, 2006 Steven H. Levine
     9  Copyright (c) 2004, 2007 Steven H. Levine
    1010
    1111  01 Aug 04 SHL Rework lstrip/rstrip usage
     
    1515  15 Aug 06 SHL Better can't add message
    1616  18 Sep 06 GKY Add replace command and update okay to add if changed
     17  17 Feb 07 GKY Move error messages etc to string file
    1718
    1819***********************************************************************/
     
    638639        info = add_command(&temp);
    639640        if (!info)
     641        {
    640642          WinDismissDlg(hwnd, 0);
    641         /*{
    642            /* saymsg(MB_ENTER,
    643            hwnd,
     643          saymsg(MB_ENTER, hwnd,
    644644           GetPString(IDS_ERRORTEXT),
    645            // GetPString(IDS_CANTADDCOMMANDTEXT),
    646            "Can't add %s to command list", temp.title); // fixme to be in fm3dll.str
    647            }  */
     645                 GetPString(IDS_CANTADDCOMMANDTEXT),
     646                 temp.title);
     647         }
    648648        else {
    649649          CHAR env[1002];
     
    718718        if (!info) {
    719719          saymsg(MB_ENTER, hwnd, GetPString(IDS_ERRORTEXT),
    720                  // GetPString(IDS_CANTADDCOMMANDTEXT),
    721                  "Can't add %s to command list It has a duplicate title", temp.title);  // fixme to be in fm3dll.str
     720                 GetPString(IDS_CANTADDCOMMANDTEXTDUP), temp.title);
    722721        }
    723722        else {
     
    782781        WinQueryDlgItemText(hwnd, CMD_TITLE, 34, temp);
    783782        bstrip(temp);
    784         if (!kill_command(temp))
    785           Runtime_Error(pszSrcFile, __LINE__, "kill_command");
    786         else {
     783        if (kill_command(temp))
     784           {
    787785          x = (SHORT) WinSendDlgItemMsg(hwnd,
    788786                                        CMD_LISTBOX,
     
    827825        if (!info) {
    828826          saymsg(MB_ENTER, hwnd, GetPString(IDS_ERRORTEXT),
    829                  // GetPString(IDS_CANTADDCOMMANDTEXT),
    830                  "Can't add %s to command list", temp.title);   // fixme to be in fm3dll.str
     827                 GetPString(IDS_CANTADDCOMMANDTEXT),
     828                 temp.title);
    831829        }
    832830        else {
Note: See TracChangeset for help on using the changeset viewer.