ufrmMain.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //---------------------------------------------------------------------------
  2. #ifndef ufrmMainH
  3. #define ufrmMainH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include "uIFormShow.hpp"
  10. #define INTF_IMP_REFCOUNT(BASE) \
  11. ULONG __stdcall AddRef() { return BASE::_AddRef();} \
  12. ULONG __stdcall Release(){ return BASE::_Release();}
  13. //---------------------------------------------------------------------------
  14. class TForm1 : public TForm, IShowAsNormal, IShowAsModal
  15. {
  16. __published: // IDE-managed Components
  17. TEdit *Edit1;
  18. TMemo *Memo1;
  19. private: // User declarations
  20. public: // User declarations
  21. __fastcall TForm1(TComponent* Owner);
  22. int __stdcall showAsModal(void);
  23. void __stdcall showAsNormal(void);
  24. INTF_IMP_REFCOUNT(TForm);
  25. // ULONG __stdcall AddRef()
  26. // {
  27. // return TForm::_AddRef();
  28. // }
  29. //
  30. // ULONG __stdcall Release()
  31. // {
  32. // return TForm::_Release();
  33. // }
  34. };
  35. //---------------------------------------------------------------------------
  36. extern PACKAGE TForm1 *Form1;
  37. //---------------------------------------------------------------------------
  38. #endif