| 
            Last change
 on this file since 636 was             551, checked in by Gregg Young, 19 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
           | 
        
      
      
| Line |   | 
|---|
| 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 | 
 | 
|---|
| 18 | #define INCL_DOS
 | 
|---|
| 19 | #define INCL_WIN
 | 
|---|
| 20 | #include <os2.h>
 | 
|---|
| 21 | 
 | 
|---|
| 22 | #include <stdarg.h>
 | 
|---|
| 23 | #include <stdio.h>
 | 
|---|
| 24 | #include <stdlib.h>
 | 
|---|
| 25 | #include <string.h>
 | 
|---|
| 26 | #include <ctype.h>
 | 
|---|
| 27 | 
 | 
|---|
| 28 | #include "dll\fm3dll.h"
 | 
|---|
| 29 | #include "dll\datamin.h"
 | 
|---|
| 30 | #include "dll\fm3dlg.h"
 | 
|---|
| 31 | 
 | 
|---|
| 32 | #ifdef NEVER
 | 
|---|
| 33 | 
 | 
|---|
| 34 | VOID APIENTRY deinit(ULONG why)
 | 
|---|
| 35 | {
 | 
|---|
| 36 | 
 | 
|---|
| 37 |   if (fmprof)
 | 
|---|
| 38 |     PrfCloseProfile(fmprof);
 | 
|---|
| 39 |   fmprof = (HINI) 0;
 | 
|---|
| 40 | 
 | 
|---|
| 41 |   flushall();
 | 
|---|
| 42 | 
 | 
|---|
| 43 |   DosExitList(EXLST_REMOVE, deinit);
 | 
|---|
| 44 | }
 | 
|---|
| 45 | 
 | 
|---|
| 46 | #endif
 | 
|---|
| 47 | 
 | 
|---|
| 48 | int main(int argc, char *argv[])
 | 
|---|
| 49 | {
 | 
|---|
| 50 | 
 | 
|---|
| 51 |   HAB hab;
 | 
|---|
| 52 |   HMQ hmq;
 | 
|---|
| 53 |   QMSG qmsg;
 | 
|---|
| 54 | 
 | 
|---|
| 55 |   strcpy(appname, "DATABAR");
 | 
|---|
| 56 | 
 | 
|---|
| 57 | # ifdef NEVER
 | 
|---|
| 58 |   DosExitList(EXLST_ADD, deinit);
 | 
|---|
| 59 | # endif
 | 
|---|
| 60 | 
 | 
|---|
| 61 |   hab = WinInitialize(0);
 | 
|---|
| 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 |         }
 | 
|---|
| 70 |       }
 | 
|---|
| 71 |       WinDestroyMsgQueue(hmq);
 | 
|---|
| 72 |     }
 | 
|---|
| 73 |     WinTerminate(hab);
 | 
|---|
| 74 |   }
 | 
|---|
| 75 |   return 0;
 | 
|---|
| 76 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.