Changeset 875 for trunk/dll/notebook.c


Ignore:
Timestamp:
Nov 24, 2007, 12:14:45 AM (18 years ago)
Author:
Gregg Young
Message:

Used global variable to link presparams to main menu window for both drop down and pop up menus

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/notebook.c

    r796 r875  
    5454MRESULT EXPENTRY CfgADlgProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
    5555{
     56  ULONG  ulResult;
     57
    5658  switch (msg) {
    5759  case WM_INITDLG:
     
    203205
    204206        MakeFullName(extractpath);
    205         if (IsFile(extractpath)) {
    206           Runtime_Error(pszSrcFile, __LINE__, "%s not a directory",
    207                         extractpath);
    208           *extractpath = 0;
     207        if (IsFile(extractpath)) {
     208          ulResult = saymsg(MB_YESNOCANCEL | MB_ICONQUESTION | MB_DEFBUTTON1, HWND_DESKTOP,
     209                     "Bad pathname", "%s is not a valid directory\nDo you wish to delete it?",
     210                            extractpath);
     211          if (ulResult == MBID_YES)
     212            *extractpath = 0;
     213          if (ulResult == MBID_CANCEL){
     214            WinDlgBox(HWND_DESKTOP,
     215                    hwnd,
     216                    CfgDlgProc, FM3ModHandle, CFG_FRAME, (PVOID) "Archive");
     217            break;
     218          }
    209219        }
    210220      }
Note: See TracChangeset for help on using the changeset viewer.