home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / ADDONINC.PAK / IIDEUI.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  1.2 KB  |  46 lines

  1. #ifndef __IIDEUI_H_
  2. #define __IIDEUI_H_
  3.  
  4. #include <windows.h>
  5. #include <objbase.h>
  6. #include <ideaddon\iideui.uid>
  7. #include <ideaddon\common.h>
  8.  
  9. class IIdeUI : public IUnknown
  10. {
  11.   public:
  12.     //
  13.     // Addons can call this to post the hourglass cursor
  14.     //
  15.     virtual void BCWADDON_CMETHOD StartWait() = 0;
  16.     //
  17.     // This routine will remove the hourglass cursor.
  18.     // 
  19.     virtual void BCWADDON_CMETHOD StopWait() = 0;
  20.     //
  21.     // Addons call this to enforce the desired state of the hourglass
  22.     // cursor. For example, when displaying a dialog which forces the 
  23.     // hourglass off. 
  24.     //
  25.     virtual void BCWADDON_CMETHOD RespectWait() = 0;
  26.  
  27.     //
  28.     // The following functions will display the various flavors of the 
  29.     // IDE's messageboxes. 
  30.     //
  31.     virtual short BCWADDON_CMETHOD 
  32.     ErrorBox(HWND parent, const char* msg) = 0;
  33.  
  34.     virtual int BCWADDON_CMETHOD   
  35.     GetYesNoBox(HWND parent, const char* msg) = 0;
  36.  
  37.     virtual int BCWADDON_CMETHOD   
  38.     DoOkCancelBox(HWND parent, const char* msg) = 0;
  39.  
  40.     virtual int BCWADDON_CMETHOD 
  41.     InfoBox(HWND parent, const char* msg) = 0;
  42. };
  43.  
  44.  
  45. #endif // __IIDEUI_H_
  46.