home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 May / Chip_2002-05_cd1.bin / chplus / cpp / 3 / ikona.exe / traymain.h < prev   
C/C++ Source or Header  |  1998-02-09  |  2KB  |  65 lines

  1. //----------------------------------------------------------------------------
  2. //Borland C++Builder
  3. //Copyright (c) 1987, 1998 Borland International Inc. All Rights Reserved.
  4. //----------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #ifndef traymainH
  7. #define traymainH
  8. //---------------------------------------------------------------------------
  9. #include <Forms.hpp>
  10. #include <StdCtrls.hpp>
  11. #include <Controls.hpp>
  12. #include <Classes.hpp>
  13. #include <ExtCtrls.hpp>
  14. #include <Menus.hpp>
  15. #define MYWM_NOTIFY         (WM_APP+100)
  16. #define IDC_MYICON                     1006
  17. extern HINSTANCE g_hinst;
  18. LRESULT IconDrawItem(LPDRAWITEMSTRUCT lpdi);
  19. //---------------------------------------------------------------------------
  20. class TForm1 : public TForm
  21. {
  22. __published:
  23.     TButton *Button1;
  24.     TCheckBox *CheckBox1;
  25.     TRadioButton *RadioButton1;
  26.     TRadioButton *RadioButton2;
  27.     TEdit *Edit1;
  28.     TEdit *Edit2;
  29.     TImage *Image2;
  30.     TImage *Image1;
  31.     TLabel *Label1;
  32.     TLabel *Label2;
  33.     TPopupMenu *PopupMenu1;
  34.     TMenuItem *Properties1;
  35.     TMenuItem *ToggleState1;
  36.     TMenuItem *Shutdown1;
  37.     void __fastcall FormDestroy(TObject *Sender);
  38.     void __fastcall CheckBox1Click(TObject *Sender);
  39.     void __fastcall Button1Click(TObject *Sender);
  40.     void __fastcall RadioButtonClick(TObject *Sender);
  41.     void __fastcall EditKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
  42.     void __fastcall Properties1Click(TObject *Sender);
  43.     void __fastcall ToggleState1Click(TObject *Sender);
  44.     void __fastcall Shutdown1Click(TObject *Sender);
  45.     
  46.     
  47. private:        // private user declarations
  48.     void __fastcall DrawItem(TMessage& Msg);
  49.     void __fastcall MyNotify(TMessage& Msg);
  50.     bool __fastcall TrayMessage(DWORD dwMessage);
  51.     HANDLE __fastcall IconHandle(void);
  52.     void __fastcall ToggleState(void);
  53.     PSTR __fastcall TipText(void);
  54. public:         // public user declarations
  55.     virtual __fastcall TForm1(TComponent* Owner);
  56. BEGIN_MESSAGE_MAP
  57. MESSAGE_HANDLER(WM_DRAWITEM,TMessage,DrawItem)
  58. MESSAGE_HANDLER(MYWM_NOTIFY,TMessage,MyNotify)
  59. END_MESSAGE_MAP(TForm)
  60. };
  61. //---------------------------------------------------------------------------
  62. extern TForm1 *Form1;
  63. //---------------------------------------------------------------------------
  64. #endif
  65.