source: trunk/vcollect.c@ 1216

Last change on this file since 1216 was 1216, checked in by John Small, 17 years ago

Ticket 187: Move data declarations/definitions out of fm3dll.h

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
RevLine 
[907]1
2/***********************************************************************
3
4 $Id: vcollect.c 1216 2008-09-13 06:54:29Z jbs $
5
6 Collector applet
7
8 Copyright (c) 1993-98 M. Kimes
9 Copyright (c) 2007, 2008 Steven H.Levine
10
11 05 Jan 08 SHL Sync
12
13***********************************************************************/
14
15#include <string.h>
16
[2]17#define INCL_DOS
18#define INCL_WIN
19
[1176]20#include "dll\fm3dll.h"
[1216]21#include "dll\mainwnd.h" // Data declaration(s)
22#include "dll\notebook.h" // Data declaration(s)
[907]23#include "dll\fm3str.h"
[1176]24#include "dll\init.h" // InitFM3DLL
[1216]25#include "dll\collect.h" // StartCollector
[2]26
[551]27int main(int argc, char *argv[])
28{
29 HAB hab;
30 HMQ hmq;
31 QMSG qmsg;
32 HWND hwndFrame;
33 int x;
34 BOOL seekandscan = FALSE;
[2]35
[551]36 strcpy(appname, "VCOLLECT");
[2]37 DosError(FERR_DISABLEHARDERR);
[551]38 for (x = 1; x < argc; x++) {
39 if (*argv[x] == '*' && argv[x][1] == '*') {
[2]40 seekandscan = TRUE;
41 break;
42 }
43 }
44 hab = WinInitialize(0);
[551]45 if (hab) {
46 hmq = WinCreateMsgQueue(hab, 1024);
47 if (hmq) {
48 if (InitFM3DLL(hab, argc, argv)) {
49 hwndFrame = StartCollector(HWND_DESKTOP, 0);
50 if (hwndFrame) {
51 if (hwndHelp)
52 WinAssociateHelpInstance(hwndHelp, hwndFrame);
53 if (seekandscan)
54 WinPostMsg(WinWindowFromID(hwndFrame, FID_CLIENT), WM_COMMAND,
55 MPFROM2SHORT(IDM_GREP, 0), MPVOID);
56 while (WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0)) {
57 if (hwndBubble &&
58 ((qmsg.msg > (WM_BUTTON1DOWN - 1) &&
59 qmsg.msg < (WM_BUTTON3DBLCLK + 1)) ||
60 (qmsg.msg > (WM_CHORD - 1) &&
61 qmsg.msg < (WM_BUTTON3CLICK + 1))) &&
62 WinIsWindowVisible(hwndBubble))
63 WinShowWindow(hwndBubble, FALSE);
64 WinDispatchMsg(hab, &qmsg);
65 }
66 DosSleep(125L);
67 }
[2]68 }
69 DosSleep(125L);
70 WinDestroyMsgQueue(hmq);
71 }
72 WinTerminate(hab);
73 }
74 return 0;
75}
Note: See TracBrowser for help on using the repository browser.