Changeset 1155 for trunk/global.c


Ignore:
Timestamp:
Sep 5, 2008, 11:38:38 PM (17 years ago)
Author:
John Small
Message:

Ticket 187: Draft 1: Functions only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/global.c

    r907 r1155  
    1919
    2020#include "dll\fm3dll.h"
     21#include "dll\seeall.h"                 // StartSeeAll
    2122#include "dll\fm3str.h"
    2223
     
    3839    if (hmq) {
    3940      if (InitFM3DLL(hab, argc, argv)) {
    40         for (x = 1; x < argc; x++) {
    41           if (!strchr("/;,`\'", *argv[x]) && !*fullname &&
    42               (IsRoot(argv[x]) || IsFile(argv[x]) == 0)) {
    43             if (IsRoot(argv[x]))
    44               strcpy(fullname, argv[x]);
    45             else if (DosQueryPathInfo(argv[x],
    46                                       FIL_QUERYFULLNAME,
    47                                       fullname, sizeof(fullname)))
    48               *fullname = 0;
    49           }
    50         }
    51         hwndFrame = StartSeeAll(HWND_DESKTOP, TRUE, fullname);
    52         if (hwndFrame) {
    53           for (;;) {
    54             if (!WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0)) {
    55               if (qmsg.hwnd)
    56                 qmsg.msg = WM_CLOSE;
    57               else
    58                 break;
    59             }
    60             if (hwndBubble &&
    61                 ((qmsg.msg > (WM_BUTTON1DOWN - 1) &&
    62                   qmsg.msg < (WM_BUTTON3DBLCLK + 1)) ||
    63                 (qmsg.msg > (WM_CHORD - 1) &&
    64                   qmsg.msg < (WM_BUTTON3CLICK + 1))) &&
    65                 WinIsWindowVisible(hwndBubble))
    66               WinShowWindow(hwndBubble, FALSE);
    67             WinDispatchMsg(hab, &qmsg);
    68           }
    69           DosSleep(125L);
    70         }
     41        for (x = 1; x < argc; x++) {
     42          if (!strchr("/;,`\'", *argv[x]) && !*fullname &&
     43              (IsRoot(argv[x]) || IsFile(argv[x]) == 0)) {
     44            if (IsRoot(argv[x]))
     45              strcpy(fullname, argv[x]);
     46            else if (DosQueryPathInfo(argv[x],
     47                                      FIL_QUERYFULLNAME,
     48                                      fullname, sizeof(fullname)))
     49              *fullname = 0;
     50          }
     51        }
     52        hwndFrame = StartSeeAll(HWND_DESKTOP, TRUE, fullname);
     53        if (hwndFrame) {
     54          for (;;) {
     55            if (!WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0)) {
     56              if (qmsg.hwnd)
     57                qmsg.msg = WM_CLOSE;
     58              else
     59                break;
     60            }
     61            if (hwndBubble &&
     62                ((qmsg.msg > (WM_BUTTON1DOWN - 1) &&
     63                  qmsg.msg < (WM_BUTTON3DBLCLK + 1)) ||
     64                (qmsg.msg > (WM_CHORD - 1) &&
     65                  qmsg.msg < (WM_BUTTON3CLICK + 1))) &&
     66                WinIsWindowVisible(hwndBubble))
     67              WinShowWindow(hwndBubble, FALSE);
     68            WinDispatchMsg(hab, &qmsg);
     69          }
     70          DosSleep(125L);
     71        }
    7172      }
    7273      DosSleep(125L);
Note: See TracChangeset for help on using the changeset viewer.