Reorganize sources into Src/ and add README

This commit is contained in:
2026-09-13 10:47:56 +08:00
parent 2191c1aed4
commit 1c935b424d
163 changed files with 1131 additions and 307 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