home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / windows / c / itool3 / source / img_demo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-13  |  1.4 KB  |  44 lines

  1.  
  2. #include "imgdcon.h"
  3.  
  4.  
  5. char szString[128];   /* variable to load resource strings         */
  6.  
  7. char szAppName[20];   /* class name for the window               */
  8. HWND hInst;
  9. HWND hWndMain;        /* handle of the main window */
  10. HWND hActive=0;      /* handle of the active picture window */
  11. HMENU hMenu;          /* handle of the application menu */
  12. HCURSOR hCursorNormal,hCursorBusy; /* handles of used cursor types */
  13. HANDLE hAccel;          /* handle of the application accelerators */
  14.  
  15. typedef struct {
  16.     FRAME       Frame;
  17.      FILEINFO  FileInfo;
  18.     HWND      hWndPic;
  19.     short       offx,offy;
  20.     WORD      cFrame;
  21. } PICTURE;            /* Structure PICTURE holds all informations neccessary
  22.                     to handle one image on the screen. Structures FRAME
  23.                          and FILEINFO can be found in syspic.h and image_ls.h */
  24.  
  25. /* Windows service routines */
  26.  
  27. LONG FAR PASCAL WndProc(HWND, WORD, WORD, LONG);
  28. LONG FAR PASCAL PicWndProc(HWND, WORD, WORD, LONG);
  29. BOOL FAR PASCAL AboutDlgProc(HWND, WORD, WORD, LONG);
  30. BOOL FAR PASCAL PicInfoDlgProc(HWND, WORD, WORD, LONG);
  31. BOOL FAR PASCAL FrameSelectDlgProc (HWND, WORD, WORD, LONG);
  32.  
  33. /* Function prototypes */
  34.  
  35. short nCwRegisterClasses(void);
  36. void CwUnRegisterClasses(void);
  37. void LoadSaveData(short mode);
  38. void NewPicture(short nPN, LPSTR szTitle);
  39. void DisplayPicture(short i, HDC hDC);
  40. void File2Name(LPSTR dest, LPSTR source);
  41. void CheckActiveWindow();
  42. short FindEmptySlot();
  43.  
  44.