Last change
on this file since 551 was 551, checked in by Gregg Young, 18 years ago |
Indentation cleanup
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.2 KB
|
Rev | Line | |
---|
[273] | 1 |
|
---|
| 2 | /***********************************************************************
|
---|
| 3 |
|
---|
| 4 | $Id: databar.c 551 2007-02-28 01:33:51Z gyoung $
|
---|
| 5 |
|
---|
| 6 | databar applet
|
---|
| 7 |
|
---|
| 8 | Copyright (c) 1993-98 M. Kimes
|
---|
| 9 | Copyright (c) 2005 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 |
|
---|
[2] | 18 | #define INCL_DOS
|
---|
| 19 | #define INCL_WIN
|
---|
[273] | 20 | #include <os2.h>
|
---|
[2] | 21 |
|
---|
| 22 | #include <stdarg.h>
|
---|
| 23 | #include <stdio.h>
|
---|
| 24 | #include <stdlib.h>
|
---|
| 25 | #include <string.h>
|
---|
| 26 | #include <ctype.h>
|
---|
[273] | 27 |
|
---|
[2] | 28 | #include "dll\fm3dll.h"
|
---|
[273] | 29 | #include "dll\datamin.h"
|
---|
[2] | 30 | #include "dll\fm3dlg.h"
|
---|
| 31 |
|
---|
| 32 | #ifdef NEVER
|
---|
| 33 |
|
---|
[551] | 34 | VOID APIENTRY deinit(ULONG why)
|
---|
| 35 | {
|
---|
[2] | 36 |
|
---|
[551] | 37 | if (fmprof)
|
---|
[2] | 38 | PrfCloseProfile(fmprof);
|
---|
[551] | 39 | fmprof = (HINI) 0;
|
---|
[2] | 40 |
|
---|
| 41 | flushall();
|
---|
| 42 |
|
---|
[551] | 43 | DosExitList(EXLST_REMOVE, deinit);
|
---|
[2] | 44 | }
|
---|
| 45 |
|
---|
| 46 | #endif
|
---|
| 47 |
|
---|
[551] | 48 | int main(int argc, char *argv[])
|
---|
| 49 | {
|
---|
[2] | 50 |
|
---|
[551] | 51 | HAB hab;
|
---|
| 52 | HMQ hmq;
|
---|
| 53 | QMSG qmsg;
|
---|
[2] | 54 |
|
---|
[551] | 55 | strcpy(appname, "DATABAR");
|
---|
[273] | 56 |
|
---|
| 57 | # ifdef NEVER
|
---|
[551] | 58 | DosExitList(EXLST_ADD, deinit);
|
---|
[273] | 59 | # endif
|
---|
| 60 |
|
---|
[2] | 61 | hab = WinInitialize(0);
|
---|
[551] | 62 | if (hab) {
|
---|
| 63 | hmq = WinCreateMsgQueue(hab, 384);
|
---|
| 64 | if (hmq) {
|
---|
| 65 | if (InitFM3DLL(hab, argc, argv)) {
|
---|
| 66 | if (CreateDataBar(HWND_DESKTOP, 0)) {
|
---|
| 67 | while (WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0))
|
---|
| 68 | WinDispatchMsg(hab, &qmsg);
|
---|
| 69 | }
|
---|
[2] | 70 | }
|
---|
| 71 | WinDestroyMsgQueue(hmq);
|
---|
| 72 | }
|
---|
| 73 | WinTerminate(hab);
|
---|
| 74 | }
|
---|
| 75 | return 0;
|
---|
| 76 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.