Changeset 1125 for trunk/dll/mainwnd2.c


Ignore:
Timestamp:
Aug 27, 2008, 6:35:43 PM (17 years ago)
Author:
John Small
Message:

Ticket 259: Support saving and restoring a toolbar with DirCnr states.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/mainwnd2.c

    r1039 r1125  
    700700          load_tools(NULL);
    701701        else {
    702           strcpy(lasttoolbox,
     702          strcpy(lasttoolbar,
    703703                 quicktool[SHORT1FROMMP(mp1) - IDM_QUICKTOOLSTART]);
    704           PrfWriteProfileString(fmprof, FM3Str, "LastToolBox", lasttoolbox);
    705         }
    706         BuildTools(WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT),
    707                                    MAIN_TOOLS), TRUE);
     704          PrfWriteProfileString(fmprof, FM3Str, "LastToolbar", lasttoolbar);
     705        }
     706        PostMsg(hwndToolback, UM_SETUP2, MPVOID, MPVOID);
    708707      }
    709708    }
     
    942941      PostMsg(hwnd, UM_BUILDDRIVEBAR, MPVOID, MPVOID);
    943942    load_tools(NULL);
    944     BuildTools(WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT),
    945                                MAIN_TOOLS), TRUE);
     943    PostMsg(hwndToolback, UM_SETUP2, MPVOID, MPVOID);
    946944    fRunning = TRUE;
    947945    return 0;
Note: See TracChangeset for help on using the changeset viewer.