Changeset 551 for trunk/databar.c
- Timestamp:
- Feb 28, 2007, 2:33:51 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/databar.c
r273 r551 32 32 #ifdef NEVER 33 33 34 VOID APIENTRY deinit (ULONG why) { 34 VOID APIENTRY deinit(ULONG why) 35 { 35 36 36 if (fmprof)37 if (fmprof) 37 38 PrfCloseProfile(fmprof); 38 fmprof = (HINI) 0;39 fmprof = (HINI) 0; 39 40 40 41 flushall(); 41 42 42 DosExitList(EXLST_REMOVE, deinit);43 DosExitList(EXLST_REMOVE, deinit); 43 44 } 44 45 45 46 #endif 46 47 47 int main (int argc,char *argv[]) { 48 int main(int argc, char *argv[]) 49 { 48 50 49 HAB 50 HMQ 51 QMSG 51 HAB hab; 52 HMQ hmq; 53 QMSG qmsg; 52 54 53 strcpy(appname, "DATABAR");55 strcpy(appname, "DATABAR"); 54 56 55 57 # ifdef NEVER 56 DosExitList(EXLST_ADD, deinit);58 DosExitList(EXLST_ADD, deinit); 57 59 # endif 58 60 59 61 hab = WinInitialize(0); 60 if (hab) {61 hmq = WinCreateMsgQueue(hab, 384);62 if (hmq) {63 if (InitFM3DLL(hab,argc,argv)) {64 if(CreateDataBar(HWND_DESKTOP,0)) {65 while(WinGetMsg(hab,&qmsg,(HWND)0,0,0))66 WinDispatchMsg(hab,&qmsg);67 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 } 68 70 } 69 71 WinDestroyMsgQueue(hmq); … … 73 75 return 0; 74 76 } 75
Note:
See TracChangeset
for help on using the changeset viewer.