9#if !defined(OWL_GLYPHBTN_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
19#if !defined(OWL_GLYPHBTN)
21# define OWL_GLYPHBTN L"OWL_GlyphBtn"
23# define OWL_GLYPHBTN "OWL_GlyphBtn"
27#if !defined(RC_INVOKED)
59 const TColor& fromColor,
int width,
int height);
98 int X,
int Y,
int W,
int H,
99 TBtnType type = btCustom,
100 bool isDefault =
false,
107 int X,
int Y,
int W,
int H,
108 TBtnType type = btCustom,
109 bool isDefault =
false,
131 void SetGlyph(
const TIcon&, TGlyphType = gtUp);
132 void SetGlyph(
TResId resId,
TModule* module = 0, TGlyphType = gtUp);
159 void SetLayoutStyle(TLayoutStyle style);
160 void SetTextOrigin(
int x,
int y);
161 void SetGlyphOrigin(
int x,
int y);
166 void SetupWindow()
override;
167 void Paint(
TDC&,
bool erase,
TRect&)
override;
168 void GetWindowClass(WNDCLASS&)
override;
173 virtual void LayoutTextGlyph(
const TRect& faceRect,
TRect& textRect,
181 void InitGlyp(TBtnType type);
203 bool IsSet(
int t)
const;
208 bool EvEraseBkgnd(HDC);
209 void EvSetFocus(THandle hWndLostFocus);
210 void EvKillFocus(THandle hWndGetFocus);
212 void EvSetFont(HFONT hFont,
bool redraw);
213 uint EvGetDlgCode(
const MSG* msg);
214 void EvLButtonDown(
uint modKeys,
const TPoint& point);
215 void EvLButtonDblClk(
uint modKeys,
const TPoint& point);
216 void EvLButtonUp(
uint modKeys,
const TPoint& point);
217 void EvMouseMove(
uint modKeys,
const TPoint& point);
220 void EvEnable(
bool enabled);
222 void EvSysColorChange();
231 void PaintButton(
TDC& dc);
232 virtual void PaintFrame(
TDC& dc,
TRect& rect);
233 virtual void PaintDefaultRect(
TDC& dc,
TRect& rect);
234 virtual void PaintFace(
TDC& dc,
const TRect& rect);
235 virtual void PaintFocusRect(
TDC& dc,
const TRect& faceRect);
237 virtual void BuildCelArray(
const TBitmap* cell);
251 TLayoutStyle LayStyle;
271 return Flags.Clear(t);
289 return Flags.IsSet(t);
Definition of a bit set and a character set.
TBitmap is the GDI bitmap class derived from TGdiObject.
TBitmap(HBITMAP handle, TAutoDelete autoDelete=NoAutoDelete)
Construct an alias TBitmap for an existing bitmap handle.
static void MapColor(TDC &dc, TDC &srcDC, const TColor &toColor, const TColor &fromColor, int width, int height)
Helper routine used to map the face color of the underlying bitmap.
TBtnBitmap(HINSTANCE hInstance, TResId resId, const TColor &faceColor=TColor::LtGray)
Loads the specified bitmap and updates the face color, if necessary.
void UpdateFaceColor()
Updates the face color of the associated bitmap to the current system setting.
TColor FaceColor
Current face color of bitmap.
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.
static const TColor LtGray
Static TColor object with fixed Value set by RGB(192, 192, 192).
TDC is the root class for GDI DC wrappers.
TFont derived from TGdiObject provides constructors for creating font objects from explicit informati...
TIcon, derived from TGdiObject, represents the GDI object icon class.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
@ Disabled
Disabled or Unavailable state (embossed 3d no color).
Type-safe encapsulation of a Windows class name, a union between ATOM and LPCTSTR.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
Definition of windowing system color classes.
#define DECLARE_RESPONSE_TABLE(cls)
TAutoDelete
Flag for Handle ctors to control Handle deletion in dtor.
Object Windows Library (OWLNext Core).
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
LRESULT TResult
Result type.
Definition of the UI Helper Classes: TUIHandle, TUIBorder, TUIFace, TUIPart.