Unit1.h
上传用户:lhxd_sz
上传日期:2014-10-02
资源大小:38814k
文件大小:1k
源码类别:

VC书籍

开发平台:

C++ Builder

  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <shellapi.hpp>
  10. #include <Messages.hpp>
  11. #include <Windows.hpp>
  12. #include <SysUtils.hpp>
  13. #include <Menus.hpp>
  14. //Classes
  15. //Graphics
  16. //Controls
  17. //Forms,
  18. //Dialogs, Menus;
  19. //---------------------------------------------------------------------------
  20. class TForm1 : public TForm
  21. {
  22. __published: // IDE-managed Components
  23.         TPopupMenu *PopupMenu1;
  24.         TMenuItem *N1;
  25.         TMenuItem *N2;
  26.         void __fastcall FormShow(TObject *Sender);
  27.         void __fastcall N2Click(TObject *Sender);
  28.         void __fastcall N1Click(TObject *Sender);
  29. private: // User declarations
  30. public: // User declarations
  31.         __fastcall TForm1(TComponent* Owner);
  32.         __fastcall ~TForm1();
  33.         TIcon *MyIcon;
  34.         void virtual __fastcall IconClick(TMessage& Msg);
  35. BEGIN_MESSAGE_MAP
  36.   MESSAGE_HANDLER(WM_USER+100,TMessage,IconClick)
  37. END_MESSAGE_MAP(TForm)
  38. };
  39. //---------------------------------------------------------------------------
  40. extern PACKAGE TForm1 *Form1;
  41. //---------------------------------------------------------------------------
  42. #endif
  43.