source: trunk/databar.c@ 1176

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

Ticket 187: Draft 2: Move remaining function declarations

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.2 KB
Line 
1
2/***********************************************************************
3
4 $Id: databar.c 1176 2008-09-10 21:52:46Z jbs $
5
6 databar applet
7
8 Copyright (c) 1993-98 M. Kimes
9 Copyright (c) 2005, 2008 Steven H. Levine
10
11 Oct 15 21:42:56 2002 967 ______ databar.c
12
13 15 Oct 02 SHL Baseline
14 07 Dec 05 SHL Avoid warnings
15
16***********************************************************************/
17
18#include <string.h>
19
20#define INCL_DOS
21#define INCL_WIN
22#define INCL_LONGLONG
23
24#include "dll\fm3dll.h"
25#include "dll\datamin.h"
26#include "dll\fm3dlg.h"
27#include "dll\init.h" // InitFM3DLL
28
29#ifdef NEVER // 05 Jan 08 SHL fixme to be gone?
30
31VOID APIENTRY deinit(ULONG why)
32{
33 if (fmprof)
34 PrfCloseProfile(fmprof);
35 fmprof = (HINI) 0;
36
37 flushall();
38
39 DosExitList(EXLST_REMOVE, deinit);
40}
41
42#endif
43
44int main(int argc, char *argv[])
45{
46 HAB hab;
47 HMQ hmq;
48 QMSG qmsg;
49
50 strcpy(appname, "DATABAR");
51
52# ifdef NEVER
53 DosExitList(EXLST_ADD, deinit);
54# endif
55
56 hab = WinInitialize(0);
57 if (hab) {
58 hmq = WinCreateMsgQueue(hab, 384);
59 if (hmq) {
60 if (InitFM3DLL(hab, argc, argv)) {
61 if (CreateDataBar(HWND_DESKTOP, 0)) {
62 while (WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0))
63 WinDispatchMsg(hab, &qmsg);
64 }
65 }
66 WinDestroyMsgQueue(hmq);
67 }
68 WinTerminate(hab);
69 }
70 return 0;
71}
Note: See TracBrowser for help on using the repository browser.