home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / canvas / vportbmp / vportbmp.rc < prev    next >
Encoding:
Text File  |  1996-10-29  |  2.2 KB  |  77 lines

  1. /**********************************************************
  2. / Canvas - IViewPort that Scrolls a Bitmap
  3. /
  4. / Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
  5. / Copyright (c) 1997 John Wiley & Sons, Inc. 
  6. / All Rights Reserved.
  7. **********************************************************/
  8. #include <icconst.h>    // for IC_DEFAULT_FRAME_ID
  9. #include "vportbmp.h"
  10.  
  11. #ifdef IC_PM /* OS/2 resource */
  12.  
  13. #include <os2.h>
  14.  
  15. BITMAP ID_FOUNTAIN_BMP  .\os2\fountain.bmp
  16. BITMAP ID_KIDS_BMP      .\os2\kids.bmp
  17. BITMAP ID_OLDBOOK_BMP   .\os2\thebook.bmp
  18.  
  19. MENU IC_DEFAULT_FRAME_ID
  20. {
  21.   SUBMENU "~Bitmap",              ID_BITMAP
  22.   {
  23.     MENUITEM "~Double size",      ID_DOUBLE_SIZE
  24.     MENUITEM "~Halve size",       ID_HALVE_SIZE
  25.     MENUITEM SEPARATOR
  26.     MENUITEM "~Fountain",         ID_FOUNTAIN_BMP
  27.     MENUITEM "~Kids",             ID_KIDS_BMP
  28.     MENUITEM "First ~book",       ID_OLDBOOK_BMP
  29.   }
  30.   SUBMENU "~View port",           ID_VIEWPORT
  31.   {
  32.     MENUITEM "Scroll to ~top",    ID_SCROLL_TO_TOP
  33.     MENUITEM "Scroll to ~center", ID_SCROLL_TO_VERT_MIDDLE
  34.     MENUITEM "Scroll to ~bottom", ID_SCROLL_TO_BOTTOM
  35.     MENUITEM SEPARATOR
  36.     MENUITEM "Scroll to ~left",   ID_SCROLL_TO_LEFT
  37.     MENUITEM "Scroll to ce~nter", ID_SCROLL_TO_MIDDLE
  38.     MENUITEM "Scroll to ~right",  ID_SCROLL_TO_RIGHT
  39.   }
  40. }
  41.  
  42. #else /* Windows resource */
  43.  
  44. ID_FOUNTAIN_BMP BITMAP  .\win\fountain.bmp
  45. ID_KIDS_BMP     BITMAP  .\win\kids.bmp
  46. ID_OLDBOOK_BMP  BITMAP  .\win\thebook.bmp
  47.  
  48. IC_DEFAULT_FRAME_ID MENUEX
  49. {
  50.   POPUP "&Bitmap"
  51.   {
  52.     MENUITEM "&Double size",      ID_DOUBLE_SIZE
  53.     MENUITEM "&Halve size",       ID_HALVE_SIZE
  54.     MENUITEM SEPARATOR
  55.     MENUITEM "&Fountain",         ID_FOUNTAIN_BMP
  56.     MENUITEM "&Kids",             ID_KIDS_BMP
  57.     MENUITEM "First &book",       ID_OLDBOOK_BMP
  58.   }
  59.   POPUP "&View port"
  60.   {
  61.     MENUITEM "Scroll to &top",    ID_SCROLL_TO_TOP
  62.     MENUITEM "Scroll to ¢er", ID_SCROLL_TO_VERT_MIDDLE
  63.     MENUITEM "Scroll to &bottom", ID_SCROLL_TO_BOTTOM
  64.     MENUITEM SEPARATOR
  65.     MENUITEM "Scroll to &left",   ID_SCROLL_TO_LEFT
  66.     MENUITEM "Scroll to ce&nter", ID_SCROLL_TO_MIDDLE
  67.     MENUITEM "Scroll to &right",  ID_SCROLL_TO_RIGHT
  68.   }
  69. }
  70.  
  71. #endif
  72.  
  73. STRINGTABLE PRELOAD
  74. {
  75.   IC_DEFAULT_FRAME_ID,  "Scrollable Bitmaps"
  76. }
  77.