13#if !defined(OWL_DRAWITEM_H)
17#if defined(BI_HAS_PRAGMA_ONCE)
53 TDrawItemArray& GetItems();
61 TDrawItemArray* ItemArray;
108 int GetIndex()
const;
109 void SetIndex(
int index);
110 TStyle GetStyle()
const;
111 void SetStyle(
const TStyle style);
112 TAlign GetAlign()
const;
113 void SetAlign(
const TAlign
align);
114 TLayoutStyle GetLayoutStyle()
const;
115 void SetLayoutStyle(
const TLayoutStyle style);
135 virtual TColor GetBkColor();
136 virtual TColor GetTextColor();
154 virtual void GetTextSize(
TSize& size);
164 TLayoutStyle LayoutStyle;
196 virtual void GetTextSize(
TSize& size);
198 virtual TColor GetBkColor();
199 virtual TColor GetTextColor();
203 void SetCheckPainter(TCheckPainter
painter);
219 TCheckPainter CheckPainter;
243 int GetIndex(
int cmdId);
245 static TFont* CreateProxyMenuFont();
335 Index = CheckPainter ? -3 : -1;
Definition of a bitmap Cel array class.
bool IsSelected()
Returns true if (Flags & ODS_SELECTED)==0; false otherwise.
TLayoutStyle
TLayoutStyle contains values that defines how a bitmap and text will be layed out.
@ lTextTop
Text top, bitmap bottom.
@ lTextRight
Text right, bitmap left.
@ lTextLeft
Text left, bitmap right.
virtual TFont * GetFont()
TStyle GetStyle() const
Returns Style: Bitmap only, Text only, or Bitmap and Text.
TAlign GetAlign() const
Returns Align.
bool IsChecked()
Returns true if (Flags & ODS_CHECKED)==0; false otherwise.
void SetText(const tstring &text)
void SetStyle(const TStyle style)
Sets Style to style.
virtual TCelArray * GetCelArray()
bool IsGrayed()
Returns true if (Flags & ODS_GRAYED)==0; false otherwise.
bool IsFocused()
Returns true if (Flags & ODS_FOCUS)==0; false otherwise.
TLayoutStyle GetLayoutStyle() const
Returns LayoutStyle.
void SetLayoutStyle(const TLayoutStyle style)
Sets LayoutStyle to style.
TAlign
TAlign contains values that defines how text will be layed out.
@ aLeft
Aligns the text at the left edge of the bounding rectangle.
@ aCenter
Aligns the text horizontally at the center of the bounding rectangle.
TStyle
TStyle contains values that defines how the button will be displayed.
int GetIndex() const
Returns Index, the index of Bitmap in the Proxy CellArray or -1.
bool IsEnabled()
Returns true if (Flags & ODS_DISABLED)==0; false otherwise.
void SetAlign(const TAlign align)
Sets Align to align.
LPCTSTR GetText() const
Returns Text, the text do display on the button.
TCelArray is a horizontal array of cels (a unit of animation) created by slicing a portion of or an e...
Class wrapper for management of color values.
TDC is the root class for GDI DC wrappers.
Proxy parent for TDrawItem.
virtual TCelArray * GetCelArray()
virtual TFont * GetFont()
TIPtrArray< TDrawItem * > TDrawItemArray
TDrawItemArray & GetItems()
Returns ItemArray.
TFont derived from TGdiObject provides constructors for creating font objects from explicit informati...
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TRect is a mathematical class derived from tagRect.
The tagSIZE struct is defined as.
Definition of GDI DC encapsulation classes: TDC, TWindowDC, TScreenDC, TDesktopDC,...
Definition of abstract GDI object class and derived classes.
TAutoDelete
Flag for Handle ctors to control Handle deletion in dtor.
Object Windows Library (OWLNext Core)
LPARAM TParam2
Second parameter type.
TModule & GetGlobalModule()
Classes for window system structure and type encapsulation.