| [26] | 1 | /* Original View help instance thing */ | 
|---|
|  | 2 |  | 
|---|
|  | 3 | typedef void* PIOINFO; | 
|---|
|  | 4 | typedef void* PMNODE; | 
|---|
|  | 5 | typedef void* PPAGE; | 
|---|
|  | 6 | typedef void* PHISTORYINFO; | 
|---|
|  | 7 | typedef void* PLIBRARYINFO; | 
|---|
|  | 8 | typedef void* PINXDATA; | 
|---|
|  | 9 | typedef void* PINDEX; | 
|---|
|  | 10 | typedef void* PTOCDATA; | 
|---|
|  | 11 | typedef USHORT COUNTU; | 
|---|
|  | 12 | typedef void* PTOCITEM; | 
|---|
|  | 13 | typedef void* PBMINFO; | 
|---|
|  | 14 | typedef void* PEXTLNKDATA; | 
|---|
|  | 15 | typedef USHORT INX; | 
|---|
|  | 16 | typedef void* PFONTDATA; | 
|---|
|  | 17 | typedef void* PUSERINFO; | 
|---|
|  | 18 | typedef USHORT CP; | 
|---|
|  | 19 |  | 
|---|
|  | 20 | typedef void* PHELPTABLEX; | 
|---|
|  | 21 |  | 
|---|
|  | 22 | /* define instance data */ | 
|---|
|  | 23 | typedef struct instance | 
|---|
|  | 24 | { | 
|---|
| [359] | 25 | PIOINFO      IOInfo;                    /* active database */ | 
|---|
|  | 26 | PIOINFO      IOInfoRoot;                /* list of database */ | 
|---|
| [26] | 27 | ULONG        LastError; | 
|---|
| [359] | 28 | USHORT       BmOrHm;                    /* TRUE BM else HM */ | 
|---|
|  | 29 | HWND         hwndInstance;              /* instance object window hwnd*/ | 
|---|
|  | 30 | HWND         BmHelpInstance;            /* handle to BM help inst */ | 
|---|
| [26] | 31 | PMNODE       MemRoot; | 
|---|
| [359] | 32 | PMNODE       TOCMemRoot; | 
|---|
| [26] | 33 | PMNODE       IndexMemRoot; | 
|---|
|  | 34 | USHORT       StatusFlag; | 
|---|
|  | 35 | USHORT       WindowStatus; | 
|---|
|  | 36 | HWND         CoverPageFhWnd; | 
|---|
|  | 37 | HWND         CoverPageChWnd; | 
|---|
|  | 38 | HWND         TOCFhWnd; | 
|---|
|  | 39 | HWND         TOCChWnd; | 
|---|
|  | 40 | HWND         IndexFhWnd; | 
|---|
|  | 41 | HWND         IndexChWnd; | 
|---|
|  | 42 | HWND         SearchFhWnd; | 
|---|
|  | 43 | HWND         HistoryFhWnd; | 
|---|
|  | 44 | HWND         LibraryFhWnd; | 
|---|
| [359] | 45 | PPAGE        PageRoot;                  /* active viewport ptr */ | 
|---|
|  | 46 | PPAGE        PageLinkRoot;              /* root of viewport list */ | 
|---|
|  | 47 | PPAGE        ParentPage;                /* Parent page of current page */ | 
|---|
| [26] | 48 | PHISTORYINFO HistoryInfo; | 
|---|
|  | 49 | PLIBRARYINFO LibraryInfo; | 
|---|
|  | 50 | PCH          SearchStr; | 
|---|
| [359] | 51 | USHORT       SearchFlag;                /* if set search page before display */ | 
|---|
|  | 52 | ULONG        FirstWord;                 /* previous page first word index */ | 
|---|
| [26] | 53 | USHORT       TotNumIndexEntries; | 
|---|
| [359] | 54 | PINDEX      *IndexRoot;                 /* pointer to the root of indexes array */ | 
|---|
| [26] | 55 | PCH          PageTitle; | 
|---|
| [359] | 56 | PTOCDATA     TOCData;                   /* pointer to the TOC control data struct */ | 
|---|
|  | 57 | /* @CGA */ | 
|---|
|  | 58 | COUNTU       TotNumTOCEntries;          /* total number of mult toc entry */ | 
|---|
|  | 59 | PTOCITEM    *TOCRoot;                   /* pointer to the first item in TOC array */ | 
|---|
|  | 60 | PINXDATA     IndexData;                 /* pointer to the INX control data struct */ | 
|---|
|  | 61 | PINDEX      *SearchIndexRoot;           /* pointer to the root of search index array */ | 
|---|
|  | 62 | BYTE         TOCUseCount;               /* use count for toc */ | 
|---|
|  | 63 | BYTE         IndexUseCount;             /* use count for Index */ | 
|---|
|  | 64 | USHORT       IndexMode;                 /* flag for ICmd or main Index mode */ | 
|---|
|  | 65 | PBMINFO      BMInfo;                    /* pointer to the bookmark info structure */ | 
|---|
|  | 66 | PFNWP        FrameProcAdr;              /* frame proc adr */ | 
|---|
|  | 67 | USHORT       LineHeight;                /* fix scroll line height */ | 
|---|
|  | 68 | USHORT       StdCharWidth;              /* default font width */ | 
|---|
|  | 69 | USHORT       StdCharDescender;          /* default max descender */ | 
|---|
|  | 70 | USHORT       CharHeight;                /* local font height */ | 
|---|
|  | 71 | USHORT       CharWidth;                 /* local font width */ | 
|---|
|  | 72 | USHORT       CharDescender;             /* loacal max descender */ | 
|---|
|  | 73 | USHORT       PMIconWidth;               /* + & - Icon width */ | 
|---|
|  | 74 | HBITMAP      HPBitmap;                  /* handle of + bitmap */ | 
|---|
|  | 75 | HBITMAP      HMBitmap;                  /* handle of - Bitmap */ | 
|---|
|  | 76 | USHORT       ScrX;                      /* screen height */ | 
|---|
|  | 77 | USHORT       ScrY;                      /* screen width */ | 
|---|
|  | 78 | USHORT       NextWindowID;              /* id for next toc window */ | 
|---|
|  | 79 | USHORT       CxBorder;                  /* thicknes of cx border */ | 
|---|
|  | 80 | USHORT       CyBorder;                  /* thicknes of cy border */ | 
|---|
|  | 81 | CP           GCPData; | 
|---|
|  | 82 | INX          ActiveTOCIndex;            /* TOC index for active page */ | 
|---|
|  | 83 | HACCEL       ChildSyshAccel;            /* common sys menu for all child wnd*/ | 
|---|
|  | 84 | HBITMAP      ChildSysHBitmap;           /* common sys menu bitmap handle */ | 
|---|
|  | 85 | HAB          hAB;                       /* apps hab if help manager */ | 
|---|
|  | 86 | HMODULE      hwndModule;                /* help dll module */ | 
|---|
|  | 87 | PCH          HelpWindowTitle;           /* Help window title */ | 
|---|
|  | 88 | PHELPTABLEX  RootHelpTable;             /* Main help table */ | 
|---|
|  | 89 | USHORT       HelpTableID;               /* Help table ID */ | 
|---|
|  | 90 | USHORT       ShowPanelID;               /* Show panel id flag */ | 
|---|
|  | 91 | USHORT       HelpHelpID;                /* Help on help panel ID */ | 
|---|
|  | 92 | HWND         hwndAssociated;            /* this instance is associated */ | 
|---|
|  | 93 | HWND         hwndActiveWindow;          /* active window handle */ | 
|---|
|  | 94 | HWND         hwndRelativeWindow;        /* Relative window handle */ | 
|---|
|  | 95 | HMODULE      hmodAccelActionBarModule; | 
|---|
|  | 96 | ULONG        idAccelTable;              /* @WRN */ | 
|---|
|  | 97 | ULONG        idActionBar;               /* @WRN */ | 
|---|
|  | 98 | PCH          GTutorial;                 /* globle tutorial name */ | 
|---|
|  | 99 | PCH          LTutorial;                 /* local tutorial name */ | 
|---|
|  | 100 | ULONG        HorzPelsPerPointSize; | 
|---|
|  | 101 | ULONG        VertPelsPerPointSize; | 
|---|
|  | 102 | HMODULE      hACVPModule;               /* globle AC viewport DLL handle */ | 
|---|
|  | 103 | HWND         ACVPComhWnd;               /* AC viewport communication hwnd */ | 
|---|
|  | 104 | PEXTLNKDATA  pExtLnkData;               /* TOC new style passing info */ | 
|---|
|  | 105 | HWND         BMBasehWnd;                /* book manager base window handle */ | 
|---|
|  | 106 | HWND         BMBookhWnd;                /* book manager book handle */ | 
|---|
|  | 107 | USHORT       Entry16; | 
|---|
|  | 108 | PRECTL       pCoverPageRect;            /* pointer to coverpage init window rect */ | 
|---|
|  | 109 | USHORT       usMode; | 
|---|
|  | 110 | PVOID        pUserData;                 /* user data info */ | 
|---|
|  | 111 | PFONTDATA    pPrtFontData;              /* FontData use in printing mode */ | 
|---|
|  | 112 | PUSERINFO    pUserInfoRoot;             /* userinfo list root */ | 
|---|
|  | 113 | HWND         hwndPrintDlg;              /* Print Dialog Window Handle */ | 
|---|
|  | 114 | HWND         hwndEntry;                 /* Window from which help was requested */ | 
|---|
|  | 115 | /* ie, which HELPTABLE entry was used */ | 
|---|
|  | 116 | BOOL         resourceFlag;              /* Help table flag in resource file */ | 
|---|
|  | 117 | BOOL         DLLError; | 
|---|
|  | 118 | USHORT       fIsDocBidi;                /* Bidi flag showing doc. lang. */ | 
|---|
|  | 119 | } INSTANCE, *PINSTANCE; | 
|---|
|  | 120 |  | 
|---|