Changeset 1394 for trunk/dll/newview.c


Ignore:
Timestamp:
Feb 5, 2009, 5:17:25 AM (17 years ago)
Author:
Steven Levine
Message:

Ticket 340: Convert GetPString to use STRINGTABLE.

Drop fm3dll.str and mkstr.exe from makefiles and wpi builders

Convert many functions to expect PCSZ arguments.
Correct walk, compare and dirsizes dialog setups to ignore saved dialog size
Drop copyright.c logic from makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/newview.c

    r1391 r1394  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2001, 2008 Steven H. Levine
     9  Copyright (c) 2001, 2009 Steven H. Levine
    1010
    1111  01 Dec 03 SHL Comments
     
    519519            && !WinQueryCapture(HWND_DESKTOP)) {
    520520
    521           char *s = NULL;
     521          PCSZ s = NULL;
    522522
    523523          switch (id) {
     
    18141814                   IDS_WINCREATEWINDOW);
    18151815      else {
    1816         //fixme to allow user to change presparams 1-10-09 GKY
     1816        //fixme to allow user to change presparams 1-10-09 GKY
    18171817        WinSetPresParam(temphwnd,
    18181818                        PP_FONTNAMESIZE,
     
    18351835                   IDS_WINCREATEWINDOW);
    18361836      else {
    1837         //fixme to allow user to change presparams 1-10-09 GKY
     1837        //fixme to allow user to change presparams 1-10-09 GKY
    18381838        WinSetPresParam(temphwnd,
    18391839                        PP_FONTNAMESIZE,
     
    26272627        ad->hwndPopup =
    26282628          WinLoadMenu(HWND_DESKTOP, FM3ModHandle, NEWVIEW_POPUP);
    2629         if (ad->hwndPopup)
    2630           //fixme to allow user to change presparams 1-10-09 GKY
     2629        if (ad->hwndPopup)
     2630          //fixme to allow user to change presparams 1-10-09 GKY
    26312631          WinSetPresParam(ad->hwndPopup,
    26322632                          PP_FONTNAMESIZE,
     
    36993699            sip.ret = s;
    37003700            *s = 0;
    3701             sip.prompt = ss;
    37023701            sip.inputlen = 34;
    37033702            sip.title = (SHORT1FROMMP(mp1) == IDM_GOTOLINE) ?
    37043703              GetPString(IDS_NVLINEJUMPTITLETEXT) :
    37053704              GetPString(IDS_NVBYTEJUMPTITLETEXT);
    3706             sprintf(sip.prompt,
     3705            sprintf(ss,
    37073706                    GetPString(IDS_NVJUMPTEXT),
    37083707                    (SHORT1FROMMP(mp1) == IDM_GOTOLINE) ?
     
    37143713                    (SHORT1FROMMP(mp1) == IDM_GOTOLINE) ?
    37153714                    ad->numlines : ad->textsize - 1);
     3715            sip.prompt = ss;
    37163716            WinDlgBox(HWND_DESKTOP,
    37173717                      hwnd, InputDlgProc, FM3ModHandle, STR_FRAME, &sip);
Note: See TracChangeset for help on using the changeset viewer.