|
Last change
on this file since 27 was 2, checked in by root, 23 years ago |
|
Initial revision
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
|
File size:
2.0 KB
|
| Rev | Line | |
|---|
| [2] | 1 | #define INCL_DOS
|
|---|
| 2 | #define INCL_WIN
|
|---|
| 3 |
|
|---|
| 4 | #include <os2.h>
|
|---|
| 5 | #include <stdarg.h>
|
|---|
| 6 | #include <stdio.h>
|
|---|
| 7 | #include <stdlib.h>
|
|---|
| 8 | #include <string.h>
|
|---|
| 9 | #include <ctype.h>
|
|---|
| 10 | #include "dll\fm3dll.h"
|
|---|
| 11 | #include "dll\fm3str.h"
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 | int main (int argc,char *argv[]) {
|
|---|
| 15 |
|
|---|
| 16 | HAB hab;
|
|---|
| 17 | HMQ hmq;
|
|---|
| 18 | QMSG qmsg;
|
|---|
| 19 | HWND hwndFrame;
|
|---|
| 20 | static CHAR fullname[CCHMAXPATH];
|
|---|
| 21 | INT x;
|
|---|
| 22 |
|
|---|
| 23 | *fullname = 0;
|
|---|
| 24 | strcpy(appname,"SEEALL");
|
|---|
| 25 | DosError(FERR_DISABLEHARDERR);
|
|---|
| 26 | hab = WinInitialize(0);
|
|---|
| 27 | if(hab) {
|
|---|
| 28 | hmq = WinCreateMsgQueue(hab,1024);
|
|---|
| 29 | if(hmq) {
|
|---|
| 30 | if(InitFM3DLL(hab,argc,argv)) {
|
|---|
| 31 | for(x = 1;x < argc;x++) {
|
|---|
| 32 | if(!strchr("/;,`\'",*argv[x]) && !*fullname &&
|
|---|
| 33 | (IsRoot(argv[x]) || IsFile(argv[x]) == 0)) {
|
|---|
| 34 | if(IsRoot(argv[x]))
|
|---|
| 35 | strcpy(fullname,argv[x]);
|
|---|
| 36 | else if(DosQueryPathInfo(argv[x],
|
|---|
| 37 | FIL_QUERYFULLNAME,
|
|---|
| 38 | fullname,
|
|---|
| 39 | sizeof(fullname)))
|
|---|
| 40 | *fullname = 0;
|
|---|
| 41 | }
|
|---|
| 42 | }
|
|---|
| 43 | hwndFrame = StartSeeAll(HWND_DESKTOP,
|
|---|
| 44 | TRUE,
|
|---|
| 45 | fullname);
|
|---|
| 46 | if(hwndFrame) {
|
|---|
| 47 | for(;;) {
|
|---|
| 48 | if(!WinGetMsg(hab,
|
|---|
| 49 | &qmsg,
|
|---|
| 50 | (HWND)0,
|
|---|
| 51 | 0,
|
|---|
| 52 | 0)) {
|
|---|
| 53 | if(qmsg.hwnd)
|
|---|
| 54 | qmsg.msg = WM_CLOSE;
|
|---|
| 55 | else
|
|---|
| 56 | break;
|
|---|
| 57 | }
|
|---|
| 58 | if(hwndBubble &&
|
|---|
| 59 | ((qmsg.msg > (WM_BUTTON1DOWN - 1) &&
|
|---|
| 60 | qmsg.msg < (WM_BUTTON3DBLCLK + 1)) ||
|
|---|
| 61 | (qmsg.msg > (WM_CHORD - 1) &&
|
|---|
| 62 | qmsg.msg < (WM_BUTTON3CLICK + 1))) &&
|
|---|
| 63 | WinIsWindowVisible(hwndBubble))
|
|---|
| 64 | WinShowWindow(hwndBubble,FALSE);
|
|---|
| 65 | WinDispatchMsg(hab,&qmsg);
|
|---|
| 66 | }
|
|---|
| 67 | DosSleep(125L);
|
|---|
| 68 | }
|
|---|
| 69 | }
|
|---|
| 70 | DosSleep(125L);
|
|---|
| 71 | WinDestroyMsgQueue(hmq);
|
|---|
| 72 | }
|
|---|
| 73 | WinTerminate(hab);
|
|---|
| 74 | }
|
|---|
| 75 | return 0;
|
|---|
| 76 | }
|
|---|
| 77 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.