home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / imagefx_sdk / str / sample.c < prev    next >
C/C++ Source or Header  |  1980-01-10  |  634b  |  32 lines

  1. /*
  2.  * Sample localized hook.
  3.  *
  4.  */
  5.  
  6. #include <scan/hooks.h>
  7. #include <scan/previnfo.h>
  8.  
  9.  
  10. char *HookName = "Sample";
  11. char *HookVersion = "\0$VER: Sample 1.0.0 (4.6.94)";
  12.  
  13. #include "sample_strings.h"
  14.  
  15. void hook_main (int argc, char **argv)
  16. {
  17.    InfoRequest(HookGetStr(TXT_msg1));
  18.    InfoRequest(HookGetStr(TXT_msg2));
  19.    InfoRequest(HookGetStr(TXT_msg3));
  20.  
  21.    /*
  22.     * Warning:  I don't know how ImageFX will react to this
  23.     *           minimal tag list.
  24.     */
  25.  
  26.    DoPreviewWindow(
  27.                      DPW_Text,      HookTextArray,
  28.                      DPW_TitleID,   TXT_title,
  29.                      TAG_END
  30.                   );
  31. }
  32.