home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / cppbeta / ibmcli / icmdevt.in_ / ICMDEVT.INL
Encoding:
Text File  |  1992-10-25  |  854 b   |  23 lines

  1. inline ICommandEvent::ICommandEvent(IEvent& evt)
  2. /**************************************************************/
  3. /* Constructor.                                               */
  4. /**************************************************************/
  5.   : IEvent(evt)
  6. {;}
  7.  
  8. inline unsigned long ICommandEvent::commandId() const
  9. /**************************************************************/
  10. /* Get the ID. Such as push-button ID, menu-item ID etc.      */
  11. /**************************************************************/
  12. {
  13.    return param1().number1();
  14. }
  15.  
  16. inline unsigned long ICommandEvent::sourceId() const
  17. /**************************************************************/
  18. /* Return an ID that identify the source of the command event.*/
  19. /**************************************************************/
  20. {
  21.    return param2().number1();
  22. }
  23.