home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / oslib / Examples / p3-162 < prev    next >
Encoding:
Text File  |  1994-05-13  |  391 b   |  16 lines

  1. #include "wimp.h"
  2.  
  3. #define ICON_COUNT 12
  4.  
  5. void ex (wimp_w w)
  6.  
  7. {  wimp_i icons [ICON_COUNT];
  8.  
  9.    wimp_which_icon (w, icons, wimp_ICON_SELECTED, wimp_ICON_SELECTED);
  10.       /*|icons| contains all selected icons*/
  11.  
  12.    wimp_which_icon (w, icons, wimp_ICON_ESG | wimp_ICON_SELECTED,
  13.          1 << wimp_ICON_ESG_SHIFT | wimp_ICON_SELECTED);
  14.       /*|icons| contains selected icons with E S G 1*/
  15. }
  16.