Changeset 1451


Ignore:
Timestamp:
Aug 8, 2009, 10:12:04 PM (16 years ago)
Author:
Gregg Young
Message:

Change WM_USER numbers to account for the fact that some values have been used by the toolkit; Fix unexpected behavior when doubleclick on dircnr dir icon; Provide option to tun off the drive exclude dialogg on startup.

Location:
trunk/dll
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/dircnrs.c

    r1444 r1451  
    367367      NOTIFYRECORDENTER nr;
    368368
    369       memset(&nr, 0, sizeof(NOTIFYRECORDENTER));
    370       nr.hwndCnr = WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT), DIR_CNR);
    371       WinSendMsg(WinQueryWindow(hwnd, QW_PARENT),
    372                  WM_CONTROL, MPFROM2SHORT(DIR_CNR, CN_ENTER), MPFROMP(&nr));
     369      if (WinQueryWindowUShort(hwnd, QWS_ID) != DIR_FOLDERICON) {
     370        memset(&nr, 0, sizeof(NOTIFYRECORDENTER));
     371        nr.hwndCnr = WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT), DIR_CNR);
     372        WinSendMsg(WinQueryWindow(hwnd, QW_PARENT),
     373                   WM_CONTROL, MPFROM2SHORT(DIR_CNR, CN_ENTER), MPFROMP(&nr));
     374      }
    373375    }
    374376    break;
  • trunk/dll/filldir.c

    r1450 r1451  
    16461646
    16471647    // 10 Jan 08 SHL fixme to understand fFirstTime
    1648     if (*suggest || (!(driveflags[1] & DRIVE_IGNORE) && fFirstTime)) {
     1648    if (!fDontSuggestAgain &&(*suggest || (!(driveflags[1] & DRIVE_IGNORE) && fFirstTime))) {
    16491649      if (!DosDevConfig(&info, DEVINFO_FLOPPY) && info == 1) {
    16501650        if (!*suggest) {
     
    16651665      }
    16661666      strcat(suggest, " %*");
    1667       if (saymsg(MB_YESNO | MB_ICONEXCLAMATION,
    1668                  (hwndParent) ? hwndParent : hwndCnr,
    1669                  GetPString(IDS_SUGGESTTITLETEXT),
    1670                  GetPString(IDS_SUGGEST1TEXT),
    1671                  (includesyours) ? GetPString(IDS_SUGGEST2TEXT) : NullStr,
    1672                  suggest) == MBID_YES) {
     1667      saymsg(MB_YESNOCANCEL | MB_ICONEXCLAMATION,
     1668             (hwndParent) ? hwndParent : hwndCnr,
     1669             GetPString(IDS_SUGGESTTITLETEXT),
     1670             GetPString(IDS_SUGGEST1TEXT),
     1671             (includesyours) ? GetPString(IDS_SUGGEST2TEXT) : NullStr,
     1672             suggest);
     1673      if (MBID_YES) {
    16731674        char s[64];
    16741675
     
    16891690        WinCreateObject(WPProgram, "Databar", s, FM3Tools, CO_UPDATEIFEXISTS);
    16901691      }
     1692      else if (MBID_CANCEL) {
     1693        fDontSuggestAgain = TRUE;
     1694        PrfWriteProfileData(fmprof, appname, "DontSuggestAgain", &fDontSuggestAgain, sizeof(BOOL));
     1695      }
    16911696    }
    16921697  }
  • trunk/dll/fm3dll2.h

    r1444 r1451  
    666666
    667667// User messages
    668 #define UM_PAINT            (WM_USER)
    669 #define UM_SETUP            (WM_USER + 1)
     668// WM_USER used in AVSSHELL.H & ODRES.H (IBM Toolkit)
     669// WM_USER +1 used in ODRES.H (IBM Toolkit)
    670670#define UM_RESCAN           (WM_USER + 2)
    671671#define UM_INITIALSIZE      (WM_USER + 3)
     
    676676#define UM_FIXEDITNAME      (WM_USER + 8)
    677677#define UM_UPDATERECORD     (WM_USER + 9)
    678 #define UM_SETDIR           (WM_USER + 10)
     678// WM_USER +10 used in DSRES.H (IBM Toolkit)
    679679#define UM_CONTAINER_FILLED (WM_USER + 11)
    680680#define UM_STRETCH          (WM_USER + 12)
     
    706706#define UM_SETUP3           (WM_USER + 38)
    707707#define UM_CONTEXTMENU      (WM_USER + 39)
    708 #define UM_FILLUSERLIST     (WM_USER + 40)
    709 #define UM_CONTAINERDIR     (WM_USER + 41)
    710 #define UM_SETUP4           (WM_USER + 42)
     708// WM_USER + 40-42 used in PMSTDDLG.h (IBM TOOLKIT and Open Watcom)
    711709#define UM_FILLSETUPLIST    (WM_USER + 43)
    712710#define UM_ARRANGEICONS     (WM_USER + 44)
     
    716714#define UM_ADDTOMENU        (WM_USER + 48)
    717715#define UM_COLLECT          (WM_USER + 49)
    718 #define UM_RESTOREDC        (WM_USER + 50)
    719 #define UM_MINIMIZE         (WM_USER + 51)
    720 #define UM_MAXIMIZE         (WM_USER + 52)
    721 #define UM_BUTTON1MOTIONSTART (WM_USER + 53)
    722 #define UM_SETUP6           (WM_USER + 54)
    723 #define UM_FILLBUTTONLIST   (WM_USER + 55)
     716// WM_USER + 50-55 used in PMSTDDLG.h (IBM TOOLKIT and Open Watcom)
    724717#define UM_SETUSERLISTNAME  (WM_USER + 56)
    725718#define UM_FILTER           (WM_USER + 57)
     
    741734#define UM_HIDENOTSELECTED  (WM_USER + 73)
    742735#define UM_FIRSTTIME        (WM_USER + 74)
     736#define UM_FILLUSERLIST     (WM_USER + 75)
     737#define UM_CONTAINERDIR     (WM_USER + 76)
     738#define UM_SETUP4           (WM_USER + 77)
     739#define UM_RESTOREDC        (WM_USER + 78)
     740#define UM_MINIMIZE         (WM_USER + 79)
     741#define UM_MAXIMIZE         (WM_USER + 80)
     742#define UM_BUTTON1MOTIONSTART (WM_USER + 81)
     743#define UM_SETUP6           (WM_USER + 82)
     744#define UM_FILLBUTTONLIST   (WM_USER + 83)
     745#define UM_PAINT            (WM_USER + 84)
     746#define UM_SETUP            (WM_USER + 85)
     747#define UM_SETDIR           (WM_USER + 86)
     748// WM_USER + 1000 used in FTPAPI.H (IBM Toolkit)
    743749
    744750#define COLR_WHITE          0
  • trunk/dll/fm3res.rc

    r1444 r1451  
    32883288
    32893289    // Add strings that need to be combined by GetPString here
    3290     IDS_SUGGEST1TEXT1                     "Based on what I've seen while scanning your drives, I would like to suggest the following Parameters for your FM/2 program object (explanation:  each letter following the '/' character is a drive that probably should be excluded from viewing by FM/2"
    3291     IDS_SUGGEST1TEXT2                     " (see READ.ME), and the '%%*' on the end just enables drag-and-drop to the program object%s):\r\r""%s""\r\rWould you like me to automagically place this in the Parameters field of the FM/2 program objects (note:  existing Parameters will be replaced)?"
     3290    IDS_SUGGEST1TEXT1                     "Based on this scan of your drives, I would like to suggest the following parameters for your FM/2 program object (each letter following the '/' character is a drive that probably should be excluded from viewing by FM/2 (see README), and the '%%*' on the"
     3291    IDS_SUGGEST1TEXT2                     " end enables drag-and-drop to the program object%s):\r\r""%s""\r\rWould you like me to automatically place this in the parameters field of the FM/2 program objects (note: existing Parameters will be replaced)? Cancel = don't show this message again."
    32923292    IDS_ARCHIVERBB2TEXT1                  ";format for this archiver.bb2 file (each entry has 21 lines):\n;\n; 1st line:  ID of archiver (like ARC, LHARC, PKZIP, etc.; human consumption)\n; 2nd line:  normal extension for archives (like ZIP, ARC, LZH; note no period)\n; 3rd line:  offset into"
    32933293    IDS_ARCHIVERBB2TEXT2                  " file to signature\n; 4th line:  list command\n; 5th line:  extract command\n; 6th line:  extract w/ directories command\n; 7th line:  test archive command\n; 8th line:  add/create command\n; 9th line: add/create w/ paths command\n;10th line: add/create"
  • trunk/dll/init.c

    r1450 r1451  
    192192ULONG ulTimeFmt;
    193193ULONG ulDateFmt;
     194BOOL fDontSuggestAgain;
    194195BOOL fInitialDriveScan;
    195196BOOL fAmAV2;
     
    12401241    return 0; //already complained
    12411242  size = sizeof(BOOL);
     1243  PrfQueryProfileData(fmprof, appname, "DontSuggestAgain", &fDontSuggestAgain, &size);
     1244  size = sizeof(BOOL);
    12421245  PrfQueryProfileData(fmprof, appname, "ShowTarget", &fShowTarget, &size);
    12431246  size = sizeof(BOOL);
  • trunk/dll/init.h

    r1450 r1451  
    169169extern PCSZ WC_TREESTATUS;
    170170extern PCSZ WC_VIEWSTATUS;
     171extern BOOL fDontSuggestAgain;
    171172extern BOOL fInitialDriveScan;
    172173extern BOOL fAmAV2;
Note: See TracChangeset for help on using the changeset viewer.