home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C++ / Applications / PICSee Dust 1.01 / Tertiary Source / MovableModalDialogs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-13  |  1.5 KB  |  44 lines  |  [TEXT/CWIE]

  1. #ifndef MOVABLEMODALDIALOGS_H_
  2. #define MOVABLEMODALDIALOGS_H_
  3.  
  4. typedef void (*AdjustMenusProc)(void);
  5.  
  6. typedef Boolean (*DialogFilterHandler)(DialogPtr targetDlog, EventRecord *theEvt);
  7.  
  8. typedef void (*DialogUpdateHandler)(DialogPtr targetDlog, EventRecord *theEvt, Boolean frontMost);
  9. typedef void (*DialogHitHandler)(DialogPtr targetDlog, EventRecord *theEvt, short itemHit);
  10. typedef DialogFilterHandler DialogKeyHandler;
  11. typedef void (*DialogActivateHandler)(DialogPtr targetDlog, Boolean activate);
  12. typedef void (*DialogIdleHandler)(DialogPtr targetDlog);
  13.  
  14. // ---------------------------------------------------------------------------
  15.  
  16. /*
  17.     Since modeless and movable modeless dialogs are handled almost
  18.     exactly identical, you may register BOTH modeless and movable
  19.     dialog boxes.
  20. */
  21.  
  22. void InitMovableModalDialogs(AdjustMenusProc adjustMenus);
  23.  
  24. void RegisterMovableModalDialog(
  25.     DialogPtr                theDialog,
  26.     DialogHitHandler        hitProc,
  27.     DialogKeyHandler        keyProc,
  28.     DialogUpdateHandler        updateProc,
  29.     DialogActivateHandler    activateProc,
  30.     DialogIdleHandler        idleProc);
  31.  
  32. void UnregisterMovableModalDialog(DialogPtr theDialog);
  33.  
  34. void HandleContentClickModeless(EventRecord *theEvt, DialogPtr theDialog, short itemHit);
  35. Boolean HandleKeyDownModeless(DialogPtr theDialog, EventRecord *theEvt);
  36. void HandleActivateModeless(DialogPtr theDialog, Boolean activate);
  37. void HandleIdleModeless(DialogPtr theDialog);
  38.  
  39. void HandleUpdateDialog(DialogPtr theDialog, EventRecord *theEvt, Boolean inBackground);
  40.  
  41.  
  42. Boolean IsMovableModal(WindowPtr thisWindow);
  43.  
  44. #endif // MOVABLEMODALDIALOGS_H_