home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / ahmsyscm / _setup.1 / AHMTSystemTray.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-11-12  |  3.2 KB  |  89 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'AHMTSystemTray.pas' rev: 3.00
  6.  
  7. #ifndef AHMTSystemTrayHPP
  8. #define AHMTSystemTrayHPP
  9. #include <AHMSystem.hpp>
  10. #include <ShellAPI.hpp>
  11. #include <Controls.hpp>
  12. #include <Graphics.hpp>
  13. #include <Menus.hpp>
  14. #include <Classes.hpp>
  15. #include <SysUtils.hpp>
  16. #include <Messages.hpp>
  17. #include <Windows.hpp>
  18. #include <SysInit.hpp>
  19. #include <System.hpp>
  20.  
  21. //-- user supplied -----------------------------------------------------------
  22.  
  23. namespace Ahmtsystemtray
  24. {
  25. //-- type declarations -------------------------------------------------------
  26. class DELPHICLASS TAHMSystemTray;
  27. class PASCALIMPLEMENTATION TAHMSystemTray : public Ahmsystem::TAHMSystemsComponent 
  28. {
  29.     typedef Ahmsystem::TAHMSystemsComponent inherited;
  30.     
  31. private:
  32.     bool FEnabled;
  33.     System::AnsiString FHint;
  34.     Graphics::TIcon* fIcon;
  35.     Menus::TPopupMenu* fPopupMenu;
  36.     bool FNormalIcon;
  37.     Classes::TNotifyEvent FOnClick;
  38.     Classes::TNotifyEvent FOnDblClick;
  39.     Controls::TMouseEvent FOnRightClick;
  40.     Classes::TNotifyEvent FOnMinimize;
  41.     Classes::TNotifyEvent FOnRestore;
  42.     _NOTIFYICONDATAA FTrayIconData;
  43.     HWND FWindowHandle;
  44.     bool FNewWindows;
  45.     bool fMinimized;
  46.     bool fNoTrayIcon;
  47.     void __fastcall SetPopupMenu(Menus::TPopupMenu* Value);
  48.     void __fastcall SetEnabled(bool Value);
  49.     void __fastcall SetHint(System::AnsiString Value);
  50.     void __fastcall SetIcon(Graphics::TIcon* value);
  51.     void __fastcall SetNormalIcon(bool Value);
  52.     
  53. protected:
  54.     void __fastcall FillTray(void);
  55.     void __fastcall EmptyTray(void);
  56.     void __fastcall UpdateTray(void);
  57.     void __fastcall WndProc(Messages::TMessage &Msg);
  58.     void __fastcall HandleRightClick(System::TObject* Sender);
  59.     void __fastcall HandleMinimize(System::TObject* Sender);
  60.     void __fastcall HandleRestore(System::TObject* Sender);
  61.     virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
  62.         );
  63.     
  64. public:
  65.     __fastcall virtual TAHMSystemTray(Classes::TComponent* Owner);
  66.     __fastcall virtual ~TAHMSystemTray(void);
  67.     __property Graphics::TIcon* Icon = {read=fIcon, write=SetIcon};
  68.     
  69. __published:
  70.     __property bool Enabled = {read=FEnabled, write=SetEnabled, default=0};
  71.     __property System::AnsiString Hint = {read=FHint, write=SetHint};
  72.     __property Menus::TPopupMenu* PopupMenu = {read=fPopupMenu, write=SetPopupMenu};
  73.     __property bool NormalIcon = {read=FNormalIcon, write=SetNormalIcon, default=0};
  74.     __property Classes::TNotifyEvent OnClick = {read=FOnClick, write=FOnClick};
  75.     __property Classes::TNotifyEvent OnDblClick = {read=FOnDblClick, write=FOnDblClick};
  76.     __property Controls::TMouseEvent OnRightClick = {read=FOnRightClick, write=FOnRightClick};
  77.     __property Classes::TNotifyEvent OnMinimize = {read=FOnMinimize, write=FOnMinimize};
  78.     __property Classes::TNotifyEvent OnRestore = {read=FOnRestore, write=FOnRestore};
  79. };
  80.  
  81. //-- var, const, procedure ---------------------------------------------------
  82.  
  83. }    /* namespace Ahmtsystemtray */
  84. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  85. using namespace Ahmtsystemtray;
  86. #endif
  87. //-- end unit ----------------------------------------------------------------
  88. #endif    // AHMTSystemTray
  89.