| 1 |
|
|---|
| 2 | /***********************************************************************
|
|---|
| 3 |
|
|---|
| 4 | $Id: databar.c 1203 2008-09-13 06:46:02Z 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\notebook.h" // Data declaration(s)
|
|---|
| 26 | #include "dll\notebook.h" // Data declaration(s)
|
|---|
| 27 | #include "dll\datamin.h"
|
|---|
| 28 | #include "dll\fm3dlg.h"
|
|---|
| 29 | #include "dll\init.h" // InitFM3DLL
|
|---|
| 30 |
|
|---|
| 31 | #ifdef NEVER // 05 Jan 08 SHL fixme to be gone?
|
|---|
| 32 |
|
|---|
| 33 | VOID APIENTRY deinit(ULONG why)
|
|---|
| 34 | {
|
|---|
| 35 | if (fmprof)
|
|---|
| 36 | PrfCloseProfile(fmprof);
|
|---|
| 37 | fmprof = (HINI) 0;
|
|---|
| 38 |
|
|---|
| 39 | flushall();
|
|---|
| 40 |
|
|---|
| 41 | DosExitList(EXLST_REMOVE, deinit);
|
|---|
| 42 | }
|
|---|
| 43 |
|
|---|
| 44 | #endif
|
|---|
| 45 |
|
|---|
| 46 | int main(int argc, char *argv[])
|
|---|
| 47 | {
|
|---|
| 48 | HAB hab;
|
|---|
| 49 | HMQ hmq;
|
|---|
| 50 | QMSG qmsg;
|
|---|
| 51 |
|
|---|
| 52 | strcpy(appname, "DATABAR");
|
|---|
| 53 |
|
|---|
| 54 | # ifdef NEVER
|
|---|
| 55 | DosExitList(EXLST_ADD, deinit);
|
|---|
| 56 | # endif
|
|---|
| 57 |
|
|---|
| 58 | hab = WinInitialize(0);
|
|---|
| 59 | if (hab) {
|
|---|
| 60 | hmq = WinCreateMsgQueue(hab, 384);
|
|---|
| 61 | if (hmq) {
|
|---|
| 62 | if (InitFM3DLL(hab, argc, argv)) {
|
|---|
| 63 | if (CreateDataBar(HWND_DESKTOP, 0)) {
|
|---|
| 64 | while (WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0))
|
|---|
| 65 | WinDispatchMsg(hab, &qmsg);
|
|---|
| 66 | }
|
|---|
| 67 | }
|
|---|
| 68 | WinDestroyMsgQueue(hmq);
|
|---|
| 69 | }
|
|---|
| 70 | WinTerminate(hab);
|
|---|
| 71 | }
|
|---|
| 72 | return 0;
|
|---|
| 73 | }
|
|---|