Changeset 1402 for trunk/dll/notebook.c


Ignore:
Timestamp:
Mar 14, 2009, 6:17:59 PM (16 years ago)
Author:
Gregg Young
Message:

Remove variable aurgs from docopy & unlinkf (not used); Move more strings to PCSZs and string table; Move PCSZs to compile time initialization; Fix hang on startup caused by a drive scan and a dircnr scan trying to update a drive in the tree at the same time (related to the "treeswitch options); Code cleanup mainly removal of old printfs, SayMsgs, DbgMsg and unneeded %s.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/notebook.c

    r1400 r1402  
    19191919        if (hwndMain && !strcmp(realappname, FM3Str)) {
    19201920          // Save state and restore to refresh windows with new settings
    1921           if (SaveDirCnrState(hwndMain, GetPString(IDS_FM2TEMPTEXT)) > 0) {
     1921          if (SaveDirCnrState(hwndMain, PCSZ_FM2TEMPTEXT) > 0) {
    19221922            PostMsg(MainObjectHwnd, UM_RESTORE, MPVOID, MPFROMLONG(2));
    19231923//          PostMsg(hwndMain, UM_RESTORE, MPVOID, MPVOID);
    1924             PostMsg(MainObjectHwnd, UM_RESTORE, (PSZ)GetPString(IDS_FM2TEMPTEXT), MPVOID);
     1924            PostMsg(MainObjectHwnd, UM_RESTORE, (PSZ) PCSZ_FM2TEMPTEXT, MPVOID);
    19251925          }
    19261926        }
     
    35303530    if (hwndMain) {
    35313531      // Save state and restore to refresh windows with new settings
    3532       if (SaveDirCnrState(hwndMain, GetPString(IDS_FM2TEMPTEXT)) > 0) {
     3532      if (SaveDirCnrState(hwndMain, PCSZ_FM2TEMPTEXT) > 0) {
    35333533        // Tell window procedure to close container windows
    35343534        PostMsg(MainObjectHwnd, UM_RESTORE, MPVOID, MPFROMLONG(2));
    35353535        // Restore saved state
    3536         PostMsg(MainObjectHwnd, UM_RESTORE, (PSZ)GetPString(IDS_FM2TEMPTEXT), MPVOID);
     3536        PostMsg(MainObjectHwnd, UM_RESTORE, (PSZ) PCSZ_FM2TEMPTEXT, MPVOID);
    35373537      }
    35383538    }
Note: See TracChangeset for help on using the changeset viewer.