home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Frameworks / TransSkel 3.18 / Source / Dialog Item Stuff / SkelSetDlogProc.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-03  |  377 b   |  22 lines  |  [TEXT/KAHL]

  1. /*
  2.  * Set procedure associated with dialog user item.
  3.  *
  4.  * If you are passing compiling PowerPC code, proc should be a pointer to
  5.  * a routine descriptor.
  6.  */
  7.  
  8.  
  9. # include    "TransSkel.h"
  10.  
  11.  
  12. pascal void
  13. SkelSetDlogProc (DialogPtr d, short item, UserItemUPP proc)
  14. {
  15. short    type;
  16. Handle    h;
  17. Rect    r;
  18.  
  19.     GetDItem (d, item, &type, &h, &r);
  20.     SetDItem (d, item, type, (Handle) proc, &r);
  21. }
  22.