Initial commit

This commit is contained in:
2026-06-13 00:10:11 +08:00
commit 2191c1aed4
535 changed files with 184587 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
//---------------------------------------------------------------------------
#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