Changeset 1842


Ignore:
Timestamp:
Aug 12, 2015, 7:10:27 AM (10 years ago)
Author:
Steven Levine
Message:

Comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fm3.c

    r1511 r1842  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2008 Steven H.Levine
     9  Copyright (c) 2008, 2015 Steven H.Levine
    1010
    1111  05 Jan 08 SHL Sync
    1212  18 Jul 08 SHL Add Fortify support
    1313  11 Dec 08 SHL Add exception handler support
     14  08 Aug 15 SHL Comments
    1415
    1516***********************************************************************/
     
    6768#         endif
    6869          hwndFrame = StartFM3(hab, argc, argv);
    69           if (hwndFrame != (HWND) 0) {
     70          if (hwndFrame != (HWND)0) {
    7071            for (;;) {
    7172              if (!WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0)) {
    72                 if (qmsg.hwnd)
    73                   qmsg.msg = WM_CLOSE;  // Map quit to close
    74                 else
    75                   break;
     73                // Get WM_QUIT
     74                if (!qmsg.hwnd)
     75                  break;                // Time to die if no window
     76                // Map quit to close
     77                // Must use System Menu or Ctrl-Alt-F4 accel to shutdown
     78                qmsg.msg = WM_CLOSE;
    7679              }
    7780              if (hwndBubble &&
    78                   ((qmsg.msg > (WM_BUTTON1DOWN - 1) &&
    79                     qmsg.msg < (WM_BUTTON3DBLCLK + 1)) ||
    80                    (qmsg.msg > (WM_CHORD - 1) &&
    81                     qmsg.msg < (WM_BUTTON3CLICK + 1))) &&
     81                  ((qmsg.msg > WM_BUTTON1DOWN - 1 &&
     82                    qmsg.msg < WM_BUTTON3DBLCLK + 1) ||
     83                   (qmsg.msg > WM_CHORD - 1 &&
     84                    qmsg.msg < WM_BUTTON3CLICK + 1)) &&
    8285                  WinIsWindowVisible(hwndBubble))
    83                 WinShowWindow(hwndBubble, FALSE);
     86              {
     87                WinShowWindow(hwndBubble, FALSE);       // Hide
     88              }
    8489              WinDispatchMsg(hab, &qmsg);
    85             }
     90            } // for
     91            // Time to die
    8692            if (WinIsWindow(hab, WinWindowFromID(hwndFrame, FID_CLIENT)))
    8793              WinSendMsg(WinWindowFromID(hwndFrame, FID_CLIENT), WM_CLOSE,
Note: See TracChangeset for help on using the changeset viewer.