26 lines
883 B
C++
26 lines
883 B
C++
//---------------------------------------------------------------------------
|
|
#ifndef PopMenuUnitH
|
|
#define PopMenuUnitH
|
|
|
|
#define SHOW_STAGE_VAR 0x10000
|
|
|
|
class TPopMenu : public TPopupMenu
|
|
{
|
|
private:
|
|
TBitmap *m_pPicNormal, *m_pPicHover, *m_pPicChecked;
|
|
TFont *m_pFntText;
|
|
COLORREF m_clrNormal, m_clrHover, m_clrBreak, m_clrFrame;
|
|
|
|
public:
|
|
__fastcall TPopMenu(TComponent* Owner);
|
|
__fastcall ~TPopMenu();
|
|
|
|
void CreateCustomMenuItem( String strCaption, TNotifyEvent aClickEvent=NULL,
|
|
int subIndex=-1, bool bEnbaled=true, bool bChecked=false, int iTag=-1 );
|
|
void ClearMenuItem();
|
|
void __fastcall OwnerDrawItem(TObject* Sender, TCanvas* ACanvas, const TRect &ARect, TOwnerDrawState State);
|
|
void __fastcall OwnerMeasureItem(TObject* Sender, TCanvas* ACanvas, int &Width, int &Height);
|
|
};
|
|
//---------------------------------------------------------------------------
|
|
#endif
|