Annotation of os232sdk/toolkt20/c/samples/image/img_xtrn.h, revision 1.1.1.1

1.1       root        1: /*==============================================================*\
                      2:  *  img_xtrn.h - Image external declarations                    *
                      3:  *      Created 1989, 1990 IBM, Microsoft Corp.                 *
                      4:  *--------------------------------------------------------------*
                      5:  *                                                              *
                      6:  *  This header file contains the application wide function     *
                      7:  *  declarations and global external variables.                 *
                      8:  *                                                              *
                      9: \*==============================================================*/
                     10: 
                     11: /*--------------------------------------------------------------*\
                     12:  *  Global variables                                            *
                     13: \*--------------------------------------------------------------*/
                     14: extern HAB      vhab;                    /* anchor block handle */
                     15: extern HDC      vhdcMem;        /* memory device context handle */
                     16: extern HDC      vhdc;           /* window device context handle */
                     17: extern HPS      vhps;                        /* image PS handle */
                     18: extern HPS      vhpsMem;                    /* memory PS handle */
                     19: extern BOOL     vfImgLoaded;      /* initially image not loaded */
                     20: extern BOOL     vfDetail;        /* view non-detailed initially */
                     21: extern BOOL     vfMaximized;  /* initially window not maximized */
                     22: extern BOOL     vfHelpEnabled;    /* set when help installed ok */
                     23: extern HWND     vhwndFrame;        /* image window frame handle */
                     24: extern HWND     vhwndClient;       /* main window client handle */
                     25: extern HWND     vhwndVScroll;      /* vertical scrollbar handle */
                     26: extern HWND     vhwndHScroll;    /* horizontal scrollbar handle */
                     27: extern HWND     vhwndMenu;                   /* menu bar handle */
                     28: extern LONG     vlXScreen;                      /* screen width */
                     29: extern LONG     vlYScreen;                     /* screen height */
                     30: extern LONG     vlcxVScroll;         /* vertical scrollbar size */
                     31: extern LONG     vlcyHScroll;       /* horizontal scrollbar size */
                     32: extern HWND     vhwndViewForeClr;      /* foregrnd color handle */
                     33: extern HWND     vhwndViewBackClr;      /* backgrnd color handle */
                     34: extern LONG     vlcyTitle;                   /* titlebar height */
                     35: extern LONG     vlcyMenu;                     /* menubar height */
                     36: extern LONG     vlcxBorder;                /* size border width */
                     37: extern LONG     vlcyBorder;               /* size border height */
                     38: extern LONG     vlForeClr;          /* initial foreground color */
                     39: extern LONG     vlBackClr;          /* initial background color */
                     40: #if (defined(PORT_16) || defined(PORT_32))
                     41: extern PBYTE vpbImgBuf;                 /* image storage buffer */
                     42: #elif PORT_S132
                     43: extern BYTE _far16 *vpbImgBuf;          /* image storage buffer */
                     44: #else
                     45:                                  /* not defined for 16-bit port */
                     46: #endif
                     47: extern PFNWP    vpfnwpFrame;     /* main frame-window procedure */
                     48: extern SIZEL    vsizlImg;      /* width and height of the image */
                     49: extern ULONG    vulScrollYMax;        /* maximum Y scroll range */
                     50: extern ULONG    vulScrollXMax;        /* maximum X scroll range */
                     51: extern POINTL   vptlSave;              /* save/restore position */
                     52: extern HBITMAP  vhbm;                         /* bit-map handle */
                     53: extern HPOINTER vhptrWait;          /* system hourglass pointer */
                     54: extern HPOINTER vhptrArrow;             /* system arrow pointer */
                     55: 
                     56: /*--------------------------------------------------------------*\
                     57:  *  Entry point declarations                                    *
                     58: \*--------------------------------------------------------------*/
                     59: /* from img_pnt.c */
                     60: VOID PaintUnSizedImage(VOID);
                     61: VOID PaintSizedImage(VOID);
                     62: VOID PaintDrawImage(VOID);
                     63: 
                     64: /* from img_init.c */
                     65: USHORT Init(VOID);
                     66: VOID PASCAL ExitProc(USHORT usTermCode);
                     67: 
                     68: /* from img_size.c */
                     69: VOID SizeMainWindow(VOID);
                     70: BOOL SizeCalculateMaxWindow(PRECTL prclBound);
                     71: VOID SizePositionImage(MPARAM mp2);
                     72: VOID SizeVScroll(MPARAM mp2, RECTL rcl, POINTL ptl);
                     73: VOID SizeHScroll(MPARAM mp2, RECTL rcl, POINTL ptl);
                     74: 
                     75: /* from img_main.c */
                     76: BOOL cdecl main(VOID);
                     77: SHORT MessageBox(HWND hwndOwner, SHORT idMsg, SHORT idCaption,
                     78:                  SHORT fsStyle, BOOL fBeep);
                     79: MRESULT EXPENTRY MainWndProc(HWND hwnd, USHORT msg, MPARAM mp1, MPARAM mp2);
                     80: MRESULT EXPENTRY FrameWndProc(HWND hwnd, USHORT msg, MPARAM mp1, MPARAM mp2);
                     81: 
                     82: /* from img_dlg.c */
                     83: MRESULT EXPENTRY ColorDlgProc(HWND hwnd, USHORT msg, MPARAM mp1, MPARAM mp2);
                     84: MRESULT EXPENTRY AboutBoxDlgProc(HWND hwnd, USHORT msg, MPARAM mp1, MPARAM mp2);
                     85: 
                     86: /* from img_menu.c */
                     87: VOID MenuInit(MPARAM mp1, MPARAM mp2);
                     88: SHORT MenuGetColorItemId(SHORT idBase);
                     89: VOID MenuCheckItem(HWND hwndMenu, SHORT idItem, BOOL fCheck);
                     90: 
                     91: /* from img_view.c */
                     92: VOID ViewSwitchMode(VOID);
                     93: VOID ViewChangeColor(USHORT idColor);
                     94: VOID ViewSavePosition(VOID);
                     95: VOID ViewRestorePosition(VOID);
                     96: 
                     97: /* from img_file.c */
                     98: BOOL FileOpen(MPARAM mp2);
                     99: VOID FileExit(MPARAM mp2);
                    100: 
                    101: /* from img_help.c */
                    102: VOID HelpInit(VOID);
                    103: VOID HelpHelpForHelp(MPARAM mp2);
                    104: VOID HelpExtended(MPARAM mp2);
                    105: VOID HelpIndex(MPARAM mp2);
                    106: VOID HelpAbout(VOID);
                    107: VOID HelpDestroyInstance(VOID);
                    108: 
                    109: /* from img_util.c */
                    110: #if (defined(PORT_16) || defined(PORT_32))
                    111: LONG UtilFindFileSize(PSZ pszFilename);
                    112: BOOL UtilMemoryAllocate(USHORT cbSize, PBYTE FAR *ppByte);
                    113: BOOL UtilGetFileHandle(PSZ pszFilename, PHFILE phfile);
                    114: VOID UtilUpdateTitleText(HAB hab, HWND hwnd, PSZ pszFullFile);
                    115: #endif
                    116: #ifdef PORT_S132
                    117: LONG _far16 pascal UtilFindFileSize(CHAR _far16 *pszFilename);
                    118: BOOL _far16 pascal UtilMemoryAllocate(USHORT cbSize, BYTE _far16 * _far16 *ppByte);
                    119: BOOL _far16 pascal UtilGetFileHandle(CHAR _far16 *pszFilename, HFILE _far16 *phfile);
                    120: VOID _far16 pascal UtilUpdateTitleText(HAB hab, HWND hwnd, CHAR _far16 *pszFullFile);
                    121: #endif
                    122: #ifdef PORT_16
                    123: VOID UtilMemoryFree(SEL sel);
                    124: #elif PORT_S132
                    125: VOID _far16 pascal UtilMemoryFree(SEL sel);
                    126: #elif PORT_32
                    127: VOID UtilMemoryFree(PBYTE pByte);
                    128: #else
                    129: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.