//--------------------------------------------------------------------------- #ifndef SystemMenuUnitH #define SystemMenuUnitH class TSystemMenu : public TPopupMenu { private: TBitmap *m_pPicTop, *m_pPicBottom, *m_pPicSide, *m_pPicNormal, *m_pPicHover; TFont *m_pFntText; COLORREF m_clrNormal, m_clrHover, m_clrBreak; public: __fastcall TSystemMenu(TComponent* Owner); __fastcall ~TSystemMenu(); void CreateCustomMenuItem( String strCaption, TNotifyEvent aClickEvent=NULL, int subIndex=-1 ); int GetMenuItemIndex( String strCaption ); TMenuItem* GetMainMenuItem( int index ); void DeleteSubMenu(int index); void EnabledMenuItem(int index, bool bEnabled); void __fastcall OwnerDrawItem(TObject* Sender, TCanvas* ACanvas, const TRect &ARect, TOwnerDrawState State); void __fastcall OwnerMeasureItem(TObject* Sender, TCanvas* ACanvas, int &Width, int &Height); }; //--------------------------------------------------------------------------- #endif