Changeset 1454


Ignore:
Timestamp:
Sep 13, 2009, 1:27:47 AM (16 years ago)
Author:
Gregg Young
Message:

Add submenu to view ini that includes fm3.ini, the user ini and the system ini as open choices (ticket 366)

Location:
trunk/dll
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/fm3dll2.h

    r1451 r1454  
    2727  27 Jun 09 GKY Remove IDM_DRIVEATEXT (3950) Drivebar update
    2828  13 Jul 09 SHL Rename timer ids
     29  12 Sep 09 GKY Add FM3.INI User ini and system ini to submenu for view ini
    2930
    3031  Align with spaces only - no tabs please
     
    404405#define IDM_SYSTEMSUBMENU   2014
    405406#define IDM_BOOKSELFSUBMENU 2015
     407#define IDM_INIVIEWERFM2    2016
     408#define IDM_INIVIEWERSUBMENU 2017
     409#define IDM_INIVIEWERSYS    2018
    406410
    407411#define IDM_CONFIGMENU      3000
  • trunk/dll/fm3res.rc

    r1451 r1454  
    5353                and rescans drive in tree container depending on container focus, greyed out
    5454                inappropriate menu context choices
     55  12 Sep 09 GKY Add FM3.INI User ini and system ini to submenu for view ini             
    5556
    5657***********************************************************************/
     
    236237         MENUITEM "DataBar",           IDM_DATABAR
    237238         MENUITEM "",                  -1,               MIS_SEPARATOR
    238          MENUITEM "~INI viewer",       IDM_INIVIEWER
     239         SUBMENU "~INI viewer", IDM_INIVIEWERSUBMENU
     240         {
     241                MENUITEM "OS/2 ~User INI",    IDM_INIVIEWER
     242                MENUITEM "OS/2 ~Sys INI",     IDM_INIVIEWERSYS
     243                MENUITEM "~FM2 INI",          IDM_INIVIEWERFM2
     244         }
    239245         MENUITEM "~Kill processes",   IDM_KILLPROC
    240246         MENUITEM "I~nstant CMD file", IDM_INSTANT
  • trunk/dll/inis.c

    r1402 r1454  
    3535  08 Mar 09 GKY Removed variable aurguments from docopyf and unlinkf (not used)
    3636  14 Mar 09 GKY Additional strings move to PCSZs
     37  12 Sep 09 GKY Add FM3.INI User ini and system ini to submenu for view ini
    3738
    3839***********************************************************************/
     
    15121513  FCF_TITLEBAR | FCF_MINMAX | FCF_MENU | FCF_ACCELTABLE | FCF_NOBYTEALIGN;
    15131514
    1514 HWND StartIniEditor(HWND hwnd, CHAR * fname, INT flags)
     1515HWND StartIniEditor(HWND hwnd, CHAR *fname, INT flags)
    15151516{
    15161517  /*
     
    20912092    else {
    20922093      if (mp1) {
    2093         strcpy(inidata->ininame, (CHAR *)mp1);
    2094         inidata->hini = PrfOpenProfile(WinQueryAnchorBlock(hwnd),
    2095                                        inidata->ininame);
    2096         free(mp1);
     2094        if (!strcmp((CHAR *)mp1, "SYS")) {
     2095          inidata->hini = HINI_SYSTEMPROFILE;
     2096          free(mp1);
     2097        }
     2098        else
     2099        {
     2100          strcpy(inidata->ininame, (CHAR *)mp1);
     2101          inidata->hini = PrfOpenProfile(WinQueryAnchorBlock(hwnd),
     2102                                         inidata->ininame);
     2103          free(mp1);
     2104        }
    20972105      }
    20982106      else
  • trunk/dll/mainwnd.c

    r1444 r1454  
    9797                inappropriate menu context choices
    9898  22 Jul 09 GKY Code changes to use semaphores to serialize drive scanning
     99  12 Sep 09 GKY Add FM3.INI User ini and system ini to submenu for view ini
    99100
    100101***********************************************************************/
     
    53455346    break;
    53465347
     5348  case IDM_INIVIEWERSYS:
     5349    StartIniEditor(hwnd, "SYS", 4);
     5350    break;
     5351
     5352  case IDM_INIVIEWERFM2:
     5353    StartIniEditor(hwnd, profile, 4);
     5354    break;
     5355
    53475356  case IDM_EDITASSOC:
    53485357    EditAssociations(hwnd);
  • trunk/dll/mainwnd2.c

    r1444 r1454  
    3232                letter windows; Use button ID to identify drive letter for processing.
    3333  22 Jul 09 GKY Code changes to use semaphores to serialize drive scanning
     34  12 Sep 09 GKY Add FM3.INI User ini and system ini to submenu for view ini
    3435
    3536***********************************************************************/
     
    436437  case IDM_DOSCOMMANDLINE:
    437438  case IDM_INIVIEWER:
     439  case IDM_INIVIEWERFM2:
     440  case IDM_INIVIEWERSYS:
    438441  case IDM_EDITASSOC:
    439442  case IDM_COMMANDLINE:
Note: See TracChangeset for help on using the changeset viewer.