home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / msysjour / vol05 / 01 / pmaccess / pmaccess.h < prev    next >
Text File  |  1989-12-11  |  1KB  |  30 lines

  1. /* pmaccess.h RHS 7/15/89
  2.  *
  3.  * macros and typedefs for dipop.c
  4.  */
  5.  
  6.  
  7. #define    BTOGGLE  0x0001
  8. #define    BPRESS   0x0002
  9. #define    INPUT    0X0003
  10.  
  11. typedef    struct _button
  12.     {
  13.     char        *text;                          // text to be displayed
  14.     USHORT      startrow;                       // upper row
  15.     USHORT      startcol;                       // left column
  16.     USHORT      endrow;                         // lower row
  17.     USHORT      endcol;                         // right column
  18.     BYTE        attribute;                      // color attribute
  19.     USHORT      type;                           // type of object
  20.     USHORT      left_button_val;                // mouse left button event
  21.     USHORT      right_button_val;               // mouse right button event
  22.     USHORT      accelerator;                    // keyboard event
  23.     USHORT      state;                          // button state: on or off
  24.     } BUTTON;
  25.  
  26.  
  27. #define    MOUMSG(ptr)    ((MOUEVENTINFO *)ptr)
  28. #define    KBDMSG(ptr)    ((KBDKEYINFO *)ptr)
  29.  
  30.