Changeset 1400 for trunk/dll/newview.c


Ignore:
Timestamp:
Mar 8, 2009, 6:50:25 PM (17 years ago)
Author:
Gregg Young
Message:

Remainder of changes to rename commafmt.h/c (Ticket 28, 82); Additional strings moved to PCSZs in init.c (Ticket 6); Added WriteDetailsSwitches used it and LoadDetailsSwitches to consolidate inline code (Ticket 343, 344)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/newview.c

    r1398 r1400  
    3636  07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook.
    3737  07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error
     38  08 Mar 09 GKY Renamed commafmt.h i18nutil.h
     39  08 Mar 09 GKY Additional strings move to PCSZs in init.c
    3840
    3941***********************************************************************/
     
    8385#include "chklist.h"                    // PopupMenu
    8486#include "viewer.h"                     // StartMLEEditor
    85 #include "commafmt.h"                   // commafmt
     87#include "i18nutil.h"                   // commafmt
    8688#include "getnames.h"                   // export_filename
    8789#include "literal.h"                    // literal
     
    18231825                        PP_FONTNAMESIZE,
    18241826                        strlen(FNT_8HELVETICA) + 1,
    1825                         FNT_8HELVETICA);
     1827                        (PVOID) FNT_8HELVETICA);
    18261828      }
    18271829      temphwnd = WinCreateWindow(hwndFrame,
     
    18441846                        PP_FONTNAMESIZE,
    18451847                        strlen(FNT_8HELVETICA) + 1,
    1846                         FNT_8HELVETICA);
     1848                        (PVOID) FNT_8HELVETICA);
    18471849      }
    18481850      WinStartTimer(WinQueryAnchorBlock(hwnd), hwnd, ID_TIMER5, 1000L);
     
    24692471
    24702472                    size = sizeof(WPSDefaultHttpRun);
    2471                     PrfQueryProfileData(HINI_USERPROFILE, "WPURLDEFAULTSETTINGS",
     2473                    PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS,
    24722474                                        "DefaultBrowserExe", WPSDefaultHttpRun, &size);
    24732475                    size = sizeof(WPSDefaultHttpRunDir);
    2474                     PrfQueryProfileData(HINI_USERPROFILE, "WPURLDEFAULTSETTINGS",
     2476                    PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS,
    24752477                                        "DefaultWorkingDir", WPSDefaultHttpRunDir, &size);
    24762478                    runemf2(SEPARATE | WINDOWED,
    24772479                            hwnd, pszSrcFile, __LINE__,
    24782480                            WPSDefaultHttpRunDir,
    2479                             fLibPathStrictHttpRun ? "SET LIBPATHSTRICT=TRUE" : NULL,
     2481                            fLibPathStrictHttpRun ? pLibPathStrict : NULL,
    24802482                            "%s %s", WPSDefaultHttpRun, urld->url);
    24812483                  }
     
    24842486                            hwnd, pszSrcFile, __LINE__,
    24852487                            httprundir,
    2486                             fLibPathStrictHttpRun ? "SET LIBPATHSTRICT=TRUE" : NULL,
     2488                            fLibPathStrictHttpRun ? pLibPathStrict : NULL,
    24872489                            "%s %s", httprun, urld->url);
    24882490                }
     
    24952497
    24962498                    size = sizeof(WPSDefaultFtpRun);
    2497                     PrfQueryProfileData(HINI_USERPROFILE, "WPURLDEFAULTSETTINGS",
     2499                    PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS,
    24982500                                        "DefaultBrowserExe", WPSDefaultFtpRun, &size);
    24992501                    size = sizeof(WPSDefaultFtpRunDir);
    2500                     PrfQueryProfileData(HINI_USERPROFILE, "WPURLDEFAULTSETTINGS",
     2502                    PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS,
    25012503                                        "DefaultWorkingDir", WPSDefaultFtpRunDir, &size);
    25022504                    runemf2(SEPARATE | WINDOWED,
    25032505                            hwnd, pszSrcFile, __LINE__,
    25042506                            WPSDefaultFtpRunDir,
    2505                             fLibPathStrictFtpRun ? "SET LIBPATHSTRICT=TRUE" : NULL,
     2507                            fLibPathStrictFtpRun ? pLibPathStrict : NULL,
    25062508                            "%s %s", WPSDefaultFtpRun, urld->url);
    25072509                  }
     
    25102512                            hwnd, pszSrcFile, __LINE__,
    25112513                            ftprundir,
    2512                             fLibPathStrictFtpRun ? "SET LIBPATHSTRICT=TRUE" : NULL,
     2514                            fLibPathStrictFtpRun ? pLibPathStrict : NULL,
    25132515                            "%s %s", ftprun, urld->url);
    25142516                }
     
    25202522                          hwnd, pszSrcFile, __LINE__,
    25212523                          mailrundir,
    2522                           fLibPathStrictMailRun ? "SET LIBPATHSTRICT=TRUE" : NULL,
     2524                          fLibPathStrictMailRun ? pLibPathStrict : NULL,
    25232525                          "%s %s", mailrun, urld->url);
    25242526                }
     
    26372639                          PP_FONTNAMESIZE,
    26382640                          strlen(FNT_8HELVETICA) + 1,
    2639                           FNT_8HELVETICA);
     2641                          (PVOID) FNT_8HELVETICA);
    26402642      }
    26412643      if (ad->hwndPopup) {
Note: See TracChangeset for help on using the changeset viewer.