home *** CD-ROM | disk | FTP | other *** search
-
- #include "imgdcon.h"
-
-
- char szString[128]; /* variable to load resource strings */
-
- char szAppName[20]; /* class name for the window */
- HWND hInst;
- HWND hWndMain; /* handle of the main window */
- HWND hActive=0; /* handle of the active picture window */
- HMENU hMenu; /* handle of the application menu */
- HCURSOR hCursorNormal,hCursorBusy; /* handles of used cursor types */
- HANDLE hAccel; /* handle of the application accelerators */
-
- typedef struct {
- FRAME Frame;
- FILEINFO FileInfo;
- HWND hWndPic;
- short offx,offy;
- WORD cFrame;
- } PICTURE; /* Structure PICTURE holds all informations neccessary
- to handle one image on the screen. Structures FRAME
- and FILEINFO can be found in syspic.h and image_ls.h */
-
- /* Windows service routines */
-
- LONG FAR PASCAL WndProc(HWND, WORD, WORD, LONG);
- LONG FAR PASCAL PicWndProc(HWND, WORD, WORD, LONG);
- BOOL FAR PASCAL AboutDlgProc(HWND, WORD, WORD, LONG);
- BOOL FAR PASCAL PicInfoDlgProc(HWND, WORD, WORD, LONG);
- BOOL FAR PASCAL FrameSelectDlgProc (HWND, WORD, WORD, LONG);
-
- /* Function prototypes */
-
- short nCwRegisterClasses(void);
- void CwUnRegisterClasses(void);
- void LoadSaveData(short mode);
- void NewPicture(short nPN, LPSTR szTitle);
- void DisplayPicture(short i, HDC hDC);
- void File2Name(LPSTR dest, LPSTR source);
- void CheckActiveWindow();
- short FindEmptySlot();
-
-