home *** CD-ROM | disk | FTP | other *** search
/ ...taking it to the Macs! / ...taking it to the Macs!.iso / Extras / ActiveX Mac SDK / ActiveX SDK / Containers / SimpleApp / menus.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-26  |  675 b   |  47 lines  |  [TEXT/CWIE]

  1.  
  2. #include "menus.h"
  3. #include "Protos.h"
  4. #include "headers.h"
  5. #include "CSimpleAppSite.h"
  6. #include "App.h"
  7.  
  8. void AdjustMenus(void)
  9. {
  10. }
  11.  
  12. void DoAppleMenu(short MenuID, short MenuItem)
  13. {
  14. #pragma unused (MenuID, MenuItem)
  15. }
  16.  
  17. void DoFileMenu(short MenuItem)
  18. {
  19.     switch (MenuItem)
  20.     {
  21.         case iOpen:
  22.             {
  23.                 StandardFileReply    Reply;
  24.                 SFTypeList            TypeList = { 'shlb' };
  25.  
  26.                 ::StandardGetFile(NULL, 1, TypeList, &Reply);
  27.                 if (Reply.sfGood)
  28.                     CreateControlFromFileSpec(&Reply.sfFile);
  29.             }
  30.             break;
  31.         case iQuit:
  32.             ExitToShell();
  33.             break;
  34.     }
  35. }
  36.  
  37. void DoEditMenu(short MenuItem)
  38. {
  39. #pragma unused (MenuItem)
  40. }
  41.  
  42.  
  43. void DoColorMenu(short MenuItem)
  44. {
  45. #pragma unused (MenuItem)
  46. }
  47.