Changeset 1391 for trunk/dll/common.c


Ignore:
Timestamp:
Jan 12, 2009, 12:55:53 AM (17 years ago)
Author:
Gregg Young
Message:

Move nontranslated strings to init.c and codepage.c; use those strings in place of GetPString calls. Move other strings to a StringTable; minor cleanup and code changes to codepage.c to use a string array instead of GetPString calls. Ticket 340

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/common.c

    r1375 r1391  
    2323  06 Jul 08 GKY Update delete/undelete to include move to and open XWP trashcan
    2424  01 Jan 09 GKY Add option to rescan tree container on eject of removable media
     25  11 Jan 09 GKY Replace font names in the string file with global set at compile in init.c
    2526
    2627***********************************************************************/
     
    174175      case DIR_VIEW:
    175176      case DIR_FILTER:
    176 
    177       SetPresParams(hwnd, &RGBGREY, &RGBBLACK, &RGBBLACK, GetPString(IDS_8HELVTEXT));
     177      //fixme to allow user to change presparams 1-10-09 GKY
     178      SetPresParams(hwnd, &RGBGREY, &RGBBLACK, &RGBBLACK, FNT_8HELVETICA);
    178179      return rc;
    179180    }
     
    354355      UCHAR parm[2];
    355356      ULONG plen = sizeof(parm), dlen = 0L;
     357      APIRET rc;
    356358
    357359      switch (SHORT1FROMMP(cmd)) {
     
    368370      parm[1] = *dv - 'A';
    369371      DosError(FERR_DISABLEHARDERR);
    370       DosDevIOCtl(-1L,
    371                   8L, 0x40L, &parm, sizeof(parm), &plen, NULL, 0L, &dlen);
     372      rc = DosDevIOCtl(-1L, 8L, 0x40L, &parm, sizeof(parm), &plen, NULL, 0L, &dlen);
     373      DbgMsg(pszSrcFile, __LINE__, "Eject parm %i %i rc %i", parm[0], parm[1], rc);
    372374      if (cmd == IDM_EJECT &&
    373375          (fEjectFlpyScan ? TRUE : parm[1] > 1) &&
Note: See TracChangeset for help on using the changeset viewer.