home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue29 / art_tips / ART_TIPS.ZIP / Tips / BCBuilder / BitLBox.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-13  |  1.8 KB  |  56 lines

  1. //----------------------------------------------------------------------------
  2. // BitLBox.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
  3. // From: BitLBox.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef BitLBoxHPP
  6. #define BitLBoxHPP
  7. //----------------------------------------------------------------------------
  8. #include <Controls.hpp>
  9. #include <Forms.hpp>
  10. #include <Menus.hpp>
  11. #include <StdCtrls.hpp>
  12. #include <Graphics.hpp>
  13. #include <Classes.hpp>
  14. #include <Messages.hpp>
  15. #include <Windows.hpp>
  16. #include <SysUtils.hpp>
  17. #include <System.hpp>
  18. namespace Bitlbox
  19. {
  20. //-- type declarations -------------------------------------------------------
  21. class __declspec(delphiclass) TBitListBox;
  22. class __declspec(pascalimplementation) TBitListBox : public Stdctrls::TListBox
  23. {
  24.     typedef Stdctrls::TListBox inherited;
  25.     
  26. private:
  27.     Graphics::TBitmap* FGlyph;
  28.     void __fastcall SetGlyph(Graphics::TBitmap* p0);
  29.     
  30. protected:
  31.     virtual void __fastcall MeasureItem(int p0, int &p1);
  32.     virtual void __fastcall DrawItem(int p0, const Windows::TRect &BitLBox_, Stdctrls::TOwnerDrawState 
  33.         p2);
  34.     
  35. public:
  36.     __fastcall virtual TBitListBox(Classes::TComponent* p0);
  37.     __fastcall virtual ~TBitListBox(void);
  38.     
  39. __published:
  40.     __property Graphics::TBitmap* Glyph = {read=FGlyph, write=SetGlyph, nodefault};
  41. public:
  42.     /* TWinControl.CreateParented */ __fastcall TBitListBox(HWND ParentWindow) : Stdctrls::TListBox(ParentWindow
  43.         ) { }
  44.     
  45. };
  46.  
  47. //-- var, const, procedure ---------------------------------------------------
  48. extern void __fastcall Register(void);
  49.  
  50. }    /* namespace Bitlbox */
  51. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  52. using namespace Bitlbox;
  53. #endif
  54. //-- end unit ----------------------------------------------------------------
  55. #endif    // BitLBox
  56.