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