204 Flags = drawItem.itemState;
206 TDC dc(drawItem.hDC);
207 TRect rect(drawItem.rcItem);
223 measureItem.itemWidth = textSize.cx + btnSize.cx;
224 measureItem.itemHeight = std::max(textSize.cy,btnSize.cy);
265 font = Proxy->GetFont();
283 TRect textRect, btnRect;
285 Layout(rect, textRect, btnRect);
337 textRect =
TRect(faceRect.left,faceRect.bottom-textSize.cy,
338 faceRect.right,faceRect.bottom);
355 font = Proxy->GetFont();
361 uint format = DT_SINGLELINE|DT_EXPANDTABS;
376 format |= DT_VCENTER;
379 format |= DT_VCENTER;
382 format |= DT_VCENTER;
408 btnSize =
TSize(0,0);
411 TCelArray* celArray = CelArray ? CelArray : Proxy->GetCelArray();
430 if((Style&
sBitmap)==0 || Index < 0)
435 TCelArray& celArray = CelArray ? *CelArray : *Proxy->GetCelArray();
437 celArray.
BitBlt(Index, dc, rect.left, rect.top);
475 size.cy = std::max((
int)size.cy, 16);
483 btnSize =
TSize(0,0);
486 TCelArray* celArray = CelArray ? CelArray : Proxy->GetCelArray();
519 if(((Style&
sBitmap)==0 || Index < 0) && CheckPainter==0)
528 (this->*CheckPainter)(dc, rect);
538 TCelArray& celArray = CelArray ? *CelArray : *Proxy->GetCelArray();
586 font = Proxy->GetFont();
592 uint format = DT_SINGLELINE|DT_EXPANDTABS;
607 format |= DT_VCENTER;
610 format |= DT_VCENTER;
613 format |= DT_VCENTER;
620 size_t t_pos = cs.find(
_T(
"\t"));
627 if (t_pos == cs.npos)
628 t_pos = cs.find(
_T(
"\b"));
630 if (t_pos != cs.npos)
632 cs1 = cs.substr(t_pos+1);
633 cs = cs.substr(0, t_pos);
689static TColor SelectColor(
bool enabled)
713 TPoint point(rect.left+3,rect.top+2);
730 dc.
SetPixel(point.x + 3, point.y + 0, color);
731 dc.
SetPixel(point.x + 3, point.y + 1, color);
732 dc.
SetPixel(point.x + 3, point.y + 2, color);
733 dc.
SetPixel(point.x + 3, point.y + 3, color);
734 dc.
SetPixel(point.x + 3, point.y + 4, color);
735 dc.
SetPixel(point.x + 3, point.y + 5, color);
736 dc.
SetPixel(point.x + 3, point.y + 6, color);
737 dc.
SetPixel(point.x + 4, point.y + 1, color);
738 dc.
SetPixel(point.x + 4, point.y + 2, color);
739 dc.
SetPixel(point.x + 4, point.y + 3, color);
740 dc.
SetPixel(point.x + 4, point.y + 4, color);
741 dc.
SetPixel(point.x + 4, point.y + 5, color);
742 dc.
SetPixel(point.x + 5, point.y + 2, color);
743 dc.
SetPixel(point.x + 5, point.y + 3, color);
744 dc.
SetPixel(point.x + 5, point.y + 4, color);
745 dc.
SetPixel(point.x + 6, point.y + 3, color);
760 dc.
SetPixel(point.x + 3, point.y + 7, clr);
761 dc.
SetPixel(point.x + 4, point.y + 6, clr);
762 dc.
SetPixel(point.x + 5, point.y + 5, clr);
763 dc.
SetPixel(point.x + 6, point.y + 4, clr);
785 TPoint point(rect.left+4,rect.top+2);
803 dc.
SetPixel(point.x + 0, point.y + 3, color);
804 dc.
SetPixel(point.x + 1, point.y + 3, color);
805 dc.
SetPixel(point.x + 2, point.y + 3, color);
806 dc.
SetPixel(point.x + 3, point.y + 0, color);
807 dc.
SetPixel(point.x + 3, point.y + 1, color);
808 dc.
SetPixel(point.x + 3, point.y + 2, color);
809 dc.
SetPixel(point.x + 3, point.y + 3, color);
810 dc.
SetPixel(point.x + 3, point.y + 4, color);
811 dc.
SetPixel(point.x + 3, point.y + 5, color);
812 dc.
SetPixel(point.x + 3, point.y + 6, color);
813 dc.
SetPixel(point.x + 4, point.y + 1, color);
814 dc.
SetPixel(point.x + 4, point.y + 2, color);
815 dc.
SetPixel(point.x + 4, point.y + 3, color);
816 dc.
SetPixel(point.x + 4, point.y + 4, color);
817 dc.
SetPixel(point.x + 4, point.y + 5, color);
818 dc.
SetPixel(point.x + 5, point.y + 2, color);
819 dc.
SetPixel(point.x + 5, point.y + 3, color);
820 dc.
SetPixel(point.x + 5, point.y + 4, color);
821 dc.
SetPixel(point.x + 6, point.y + 3, color);
836 dc.
SetPixel(point.x + 3, point.y + 7, clr);
837 dc.
SetPixel(point.x + 4, point.y + 6, clr);
838 dc.
SetPixel(point.x + 5, point.y + 5, clr);
839 dc.
SetPixel(point.x + 6, point.y + 4, clr);
861 TPoint point(rect.left+4,rect.top+2);
879 dc.
TextRect(point.x + 1, point.y + 1, point.x + 7, point.y + 7, color);
897 dc.
MoveTo(point.x + 2, point.y + 8);
898 dc.
LineTo(point.x + 8, point.y + 8);
899 dc.
MoveTo(point.x + 8, point.y + 2);
900 dc.
LineTo(point.x + 8, point.y + 9);
923 TPoint point(rect.left+3,rect.top+1);
941 dc.
SetPixel(point.x + 1, point.y + 4, color);
942 dc.
SetPixel(point.x + 2, point.y + 3, color);
943 dc.
SetPixel(point.x + 2, point.y + 4, color);
944 dc.
SetPixel(point.x + 2, point.y + 5, color);
945 dc.
SetPixel(point.x + 3, point.y + 2, color);
946 dc.
SetPixel(point.x + 3, point.y + 3, color);
947 dc.
SetPixel(point.x + 3, point.y + 4, color);
948 dc.
SetPixel(point.x + 3, point.y + 5, color);
949 dc.
SetPixel(point.x + 3, point.y + 6, color);
950 dc.
SetPixel(point.x + 4, point.y + 1, color);
951 dc.
SetPixel(point.x + 4, point.y + 2, color);
952 dc.
SetPixel(point.x + 4, point.y + 3, color);
953 dc.
SetPixel(point.x + 4, point.y + 4, color);
954 dc.
SetPixel(point.x + 4, point.y + 5, color);
955 dc.
SetPixel(point.x + 4, point.y + 6, color);
956 dc.
SetPixel(point.x + 4, point.y + 7, color);
957 dc.
SetPixel(point.x + 5, point.y + 2, color);
958 dc.
SetPixel(point.x + 5, point.y + 3, color);
959 dc.
SetPixel(point.x + 5, point.y + 4, color);
960 dc.
SetPixel(point.x + 5, point.y + 5, color);
961 dc.
SetPixel(point.x + 5, point.y + 6, color);
962 dc.
SetPixel(point.x + 6, point.y + 3, color);
963 dc.
SetPixel(point.x + 6, point.y + 4, color);
964 dc.
SetPixel(point.x + 6, point.y + 5, color);
965 dc.
SetPixel(point.x + 7, point.y + 4, color);
981 dc.
SetPixel(point.x + 4, point.y + 8, clr);
982 dc.
SetPixel(point.x + 5, point.y + 7, clr);
983 dc.
SetPixel(point.x + 6, point.y + 6, clr);
984 dc.
SetPixel(point.x + 7, point.y + 5, clr);
1007 TPoint point(rect.left+4,rect.top+2);
1025 TPen pen(color, 0, PS_SOLID);
1028 dc.
MoveTo(point.x + 1, point.y + 2);
1029 dc.
LineTo(point.x + 1, point.y + 5);
1030 dc.
MoveTo(point.x + 2, point.y + 1);
1031 dc.
LineTo(point.x + 2, point.y + 6);
1032 dc.
MoveTo(point.x + 3, point.y + 0);
1033 dc.
LineTo(point.x + 3, point.y + 7);
1034 dc.
MoveTo(point.x + 4, point.y + 0);
1035 dc.
LineTo(point.x + 4, point.y + 7);
1036 dc.
MoveTo(point.x + 5, point.y + 1);
1037 dc.
LineTo(point.x + 5, point.y + 6);
1038 dc.
MoveTo(point.x + 6, point.y + 2);
1039 dc.
LineTo(point.x + 6, point.y + 5);
1055 dc.
SetPixel(point.x + 3, point.y + 7, clr);
1056 dc.
SetPixel(point.x + 4, point.y + 7, clr);
1057 dc.
SetPixel(point.x + 5, point.y + 6, clr);
1058 dc.
SetPixel(point.x + 6, point.y + 5, clr);
1116 TPoint point(rect.left+4,rect.top+2);
1134 TPen Pen(color, 0, PS_SOLID);
1137 dc.
MoveTo(point.x + 3, point.y + 1);
1138 dc.
LineTo(point.x + 3, point.y + 7);
1139 dc.
MoveTo(point.x + 4, point.y + 1);
1140 dc.
LineTo(point.x + 4, point.y + 7);
1141 dc.
MoveTo(point.x + 1, point.y + 3);
1142 dc.
LineTo(point.x + 7, point.y + 3);
1143 dc.
MoveTo(point.x + 1, point.y + 4);
1144 dc.
LineTo(point.x + 7, point.y + 4);
1160 dc.
SetPixel(point.x + 3, point.y + 7, clr);
1161 dc.
SetPixel(point.x + 4, point.y + 7, clr);
1162 dc.
SetPixel(point.x + 5, point.y + 7, clr);
1163 dc.
SetPixel(point.x + 5, point.y + 6, clr);
1164 dc.
SetPixel(point.x + 5, point.y + 5, clr);
1165 dc.
SetPixel(point.x + 6, point.y + 5, clr);
1188 TPoint point(rect.left+4,rect.top+2);
1206 dc.
SetPixel(point.x + 0, point.y + 2, color);
1207 dc.
SetPixel(point.x + 0, point.y + 3, color);
1208 dc.
SetPixel(point.x + 0, point.y + 4, color);
1209 dc.
SetPixel(point.x + 1, point.y + 3, color);
1210 dc.
SetPixel(point.x + 1, point.y + 4, color);
1211 dc.
SetPixel(point.x + 1, point.y + 5, color);
1212 dc.
SetPixel(point.x + 2, point.y + 4, color);
1213 dc.
SetPixel(point.x + 2, point.y + 5, color);
1214 dc.
SetPixel(point.x + 2, point.y + 6, color);
1215 dc.
SetPixel(point.x + 3, point.y + 3, color);
1216 dc.
SetPixel(point.x + 3, point.y + 4, color);
1217 dc.
SetPixel(point.x + 3, point.y + 5, color);
1218 dc.
SetPixel(point.x + 4, point.y + 2, color);
1219 dc.
SetPixel(point.x + 4, point.y + 3, color);
1220 dc.
SetPixel(point.x + 4, point.y + 4, color);
1221 dc.
SetPixel(point.x + 5, point.y + 1, color);
1222 dc.
SetPixel(point.x + 5, point.y + 2, color);
1223 dc.
SetPixel(point.x + 5, point.y + 3, color);
1224 dc.
SetPixel(point.x + 6, point.y + 0, color);
1225 dc.
SetPixel(point.x + 6, point.y + 1, color);
1226 dc.
SetPixel(point.x + 6, point.y + 2, color);
1241 dc.
SetPixel(point.x + 2, point.y + 7, clr);
1242 dc.
SetPixel(point.x + 3, point.y + 6, clr);
1243 dc.
SetPixel(point.x + 4, point.y + 5, clr);
1244 dc.
SetPixel(point.x + 5, point.y + 4, clr);
1245 dc.
SetPixel(point.x + 6, point.y + 3, clr);
1284 TPoint point(rect.left+4,rect.top+2);
1285 dc.
SetPixel(point.x + 0, point.y + 1, color);
1286 dc.
SetPixel(point.x + 1, point.y + 1, color);
1287 dc.
SetPixel(point.x + 1, point.y + 2, color);
1288 dc.
SetPixel(point.x + 2, point.y + 2, color);
1289 dc.
SetPixel(point.x + 2, point.y + 3, color);
1290 dc.
SetPixel(point.x + 3, point.y + 3, color);
1291 dc.
SetPixel(point.x + 3, point.y + 4, color);
1292 dc.
SetPixel(point.x + 4, point.y + 4, color);
1293 dc.
SetPixel(point.x + 4, point.y + 5, color);
1294 dc.
SetPixel(point.x + 5, point.y + 5, color);
1295 dc.
SetPixel(point.x + 5, point.y + 6, color);
1296 dc.
SetPixel(point.x + 6, point.y + 6, color);
1297 dc.
SetPixel(point.x + 5, point.y + 1, color);
1298 dc.
SetPixel(point.x + 6, point.y + 1, color);
1299 dc.
SetPixel(point.x + 4, point.y + 2, color);
1300 dc.
SetPixel(point.x + 5, point.y + 2, color);
1301 dc.
SetPixel(point.x + 1, point.y + 5, color);
1302 dc.
SetPixel(point.x + 2, point.y + 5, color);
1303 dc.
SetPixel(point.x + 0, point.y + 6, color);
1304 dc.
SetPixel(point.x + 1, point.y + 6, color);
1319 dc.
SetPixel(point.x + 6, point.y + 2, clr);
1320 dc.
SetPixel(point.x + 4, point.y + 3, clr);
1321 dc.
SetPixel(point.x + 3, point.y + 5, clr);
1322 dc.
SetPixel(point.x + 2, point.y + 6, clr);
1323 dc.
SetPixel(point.x + 1, point.y + 7, clr);
1337 NONCLIENTMETRICS ncm;
1338 ncm.cbSize =
sizeof(NONCLIENTMETRICS);
1339 SystemParametersInfo(SPI_GETNONCLIENTMETRICS,
sizeof(NONCLIENTMETRICS), &ncm, 0);
1340 return new TFont(ncm.lfMenuFont);
1364 for(
int i = 0; i < (int)barRes.
GetCount(); i++){
1365 if(barRes.
GetIds()[i] >0)
1387 for(
int i = 0; i < (int)items.
Size(); i++){
1410 int nItem = ::GetMenuItemCount(hMenu);
1411 while ((--nItem)>=0) {
1412 uint itemId = ::GetMenuItemID(hMenu, nItem);
1413 if (itemId == (
uint) -1){
1414 HMENU pops = ::GetSubMenu(hMenu, nItem);
1419 if (::GetMenuString(hMenu, nItem, buffer,
MAX_PATH, MF_BYPOSITION) > 0){
1421 ::ModifyMenu(hMenu, nItem, MF_BYPOSITION|MF_OWNERDRAW, (
uint)-1, (LPCTSTR)item);
1426 uint oldState = ::GetMenuState(hMenu, nItem, MF_BYPOSITION);
1427 if (!(oldState&MF_OWNERDRAW) && !(oldState&MF_BITMAP)) {
1428 if ((oldState&MF_SEPARATOR) || itemId == 0){
1434 if (::GetMenuString(hMenu, nItem, buffer,
MAX_PATH, MF_BYPOSITION) > 0){
1436 ::ModifyMenu(hMenu, nItem, MF_BYPOSITION|MF_OWNERDRAW|oldState,
1437 (LPARAM)itemId, (LPCTSTR)item);
1453 int count = ::GetMenuItemCount(hMenu);
1455 uint itemId = ::GetMenuItemID(hMenu, count);
1458 if(::GetMenuItemInfo(hMenu, count,
true, &itemInfo)){
1459 if(itemInfo.fType & MFT_OWNERDRAW){
1493 if (index != items.
NPOS)
1494 return items[index];
1496 const auto n =
static_cast<int>(items.
Size());
1497 for (index = 0; index != n; ++index)
1500 if (m && m->GetCmdId() ==
static_cast<int>(cmdId))
1503 return index < n ? items[index] :
nullptr;
Definition of a bitmap Cel array class.
#define PRECONDITION(condition)
TBitmap is the GDI bitmap class derived from TGdiObject.
int Height() const
Returns the height of this bitmap using GDI's GetObject.
TBtnBitmap is an enhanced version of TBitmap with the ability to update the face color of a bitmap to...
TBtnBitmap(HINSTANCE hInstance, TResId resId, const TColor &faceColor=TColor::LtGray)
Loads the specified bitmap and updates the face color, if necessary.
virtual void Measure(MEASUREITEMSTRUCT &drawItem)
Calculates the area required to display the button and text.
virtual int Compare(COMPAREITEMSTRUCT &drawItem)
Does an lstrcmp on Text from the instances contained in drawItem.
bool IsSelected()
Returns true if (Flags & ODS_SELECTED)==0; false otherwise.
@ lTextTop
Text top, bitmap bottom.
@ lTextRight
Text right, bitmap left.
@ lTextBottom
Text bottom, bitmap top.
@ lTextLeft
Text left, bitmap right.
virtual void PaintBitmap(TDC &rc, TRect &rect)
Paint the bitmap.
TStyle GetStyle() const
Returns Style: Bitmap only, Text only, or Bitmap and Text.
virtual void PaintText(TDC &rc, TRect &rect)
Paint the text.
bool IsChecked()
Returns true if (Flags & ODS_CHECKED)==0; false otherwise.
void SetFont(TFont *font)
Deletes Font and then assigns font to Font.
bool IsGrayed()
Returns true if (Flags & ODS_GRAYED)==0; false otherwise.
virtual void PaintBorder(TDC &rc, TRect &rect)
Paint the border of the gadget based on the BorderStyle member.
virtual TColor GetBkColor()
If selected returns TColor::SysActiveCaption; otherwise returns TColor::SysWindow.
virtual void Layout(const TRect &src, TRect &textRect, TRect &bmpRect)
Layout Text and Bitmap.
bool IsFocused()
Returns true if (Flags & ODS_FOCUS)==0; false otherwise.
~TButtonTextDrawItem()
Destroys a TButtonTextDrawItem object. If DeleteCel is true, deletes CelArray.
TButtonTextDrawItem(TDrawItemProxy *proxy=0)
Constructs a TButtonTextDrawItem with proxy as it's parent.
virtual void Draw(DRAWITEMSTRUCT &drawItem)
Extracts information from drawItem and calls Paint.
void SetText(LPCTSTR text)
Deletes Text and clears the text style.
virtual TColor GetTextColor()
If selected, returns TColor::Sys3dHilight if a 3d User interface is in use or TColor::SysGrayText oth...
void SetCelArray(TCelArray *celarray, TAutoDelete del=AutoDelete)
If DeleteCel is true, CelArray is deleted.
@ aRight
Aligns the text at the right edge of the bounding rectangle.
@ 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.
@ sText
Only text is displayed.
@ sBitmap
Only the bitmap is displayed.
@ sNone
Neither text or bitmap is displayed.
int GetIndex() const
Returns Index, the index of Bitmap in the Proxy CellArray or -1.
virtual void Paint(TDC &rc, TRect &rect)
Paint function.
bool IsEnabled()
Returns true if (Flags & ODS_DISABLED)==0; false otherwise.
LPCTSTR GetText() const
Returns Text, the text do display on the button.
virtual void GetTextSize(TSize &size)
Calculates the size of the rectangle need to paint the text.
virtual void GetButtonSize(TSize &btnSize)
Calculates the size of button.
void SetIndex(int index)
Index is set to index and the sBitmap style is cleared from Style.
TCelArray is a horizontal array of cels (a unit of animation) created by slicing a portion of or an e...
TSize CelSize() const
Return the size of the celarray.
TCelArray(TBitmap *bmp, int numCels, TSize celSize=TSize(), TPoint offset=TPoint(), int numRows=1, TAutoDelete=AutoDelete)
Constructs a TCelArray from a bitmap by slicing the bitmap into a horizontal array of cels of a speci...
bool BitBlt(int index, TDC &dc, int x, int y, uint32 rop=SRCCOPY)
Draws the cel at index onto the DC at position x and y.
TRect CelRect(int cel) const
Returns the upper left and lower right corner of a given cell from the current row,...
Class wrapper for management of color values.
static const TColor SysMenuText
The symbolic system color value for the text shown on menus.
static const TColor SysActiveCaption
The symbolic system color value for the caption of the active window.
static const TColor Sys3dHilight
The symbolic system color value for highlighted 3-dimensional display elements (for edges facing the ...
static const TColor LtGray
Static TColor object with fixed Value set by RGB(192, 192, 192).
static const TColor SysWindowText
The symbolic system color value for text in every window.
static const TColor SysMenu
The symbolic system color value for the background of menus.
static const TColor SysWindow
The symbolic system color value for the background of each window.
TDC is the root class for GDI DC wrappers.
bool MoveTo(int x, int y)
Moves the current position of this DC to the given x- and y-coordinates or to the given point.
TColor SetPixel(int x, int y, const TColor &color)
Sets the color of the pixel at the given location to the given color and returns the pixel's previous...
void SelectObject(const TBrush &brush)
Selects the given GDI brush object into this DC.
bool GetTextExtent(const tstring &str, int stringLen, TSize &size) const
Computes the extent (width and height) in logical units of the text line consisting of stringLen char...
bool FillRect(int x1, int y1, int x2, int y2, const TBrush &brush)
Fills the given rectangle on this DC using the specified brush.
void RestorePen()
Restores the original GDI pen object to this DC.
bool TextRect(int x1, int y1, int x2, int y2)
Fills the given rectangle, clipping any text to the rectangle.
bool DrawFocusRect(int x1, int y1, int x2, int y2)
Draws the given rectangle on this DC in the style used to indicate focus.
virtual TColor SetBkColor(const TColor &color)
Sets the current background color of this DC to the given color value or the nearest available.
virtual void RestoreFont()
Restores the original GDI font object to this DC.
bool LineTo(int x, int y)
Draws a line on this DC using the current pen object.
virtual TColor SetTextColor(const TColor &color)
Sets the current text color of this DC to the given color value.
Proxy parent for TDrawItem.
void SetCelArray(TCelArray *celarray, TAutoDelete del=AutoDelete)
If DeleteCel is true, deletes CelArray.
void SetFont(TFont *font)
Deletes Font and sets it to font.
void RegisterItem(TDrawItem *item)
For automatic deletion of items.
virtual ~TDrawItemProxy()
Deletes Font. If DeleteCel is true, delets CelArray.
TIPtrArray< TDrawItem * > TDrawItemArray
TDrawItemArray & GetItems()
Returns ItemArray.
TDrawItemProxy(TFont *font=0)
Constructs a TDrawItemProxy object using the specified font.
TFont derived from TGdiObject provides constructors for creating font objects from explicit informati...
TFont(HFONT handle, TAutoDelete autoDelete=NoAutoDelete)
TFont encapsulates an HFONT.
Derived from TFont, TGadgetWindowFont is the default font used by TGadgetWindow.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TPen is derived from TGdiObject.
TPoint is a support class, derived from tagPOINT.
TPoint & Offset(int dx, int dy)
Offsets this point by the given delta arguments.
TRect is a mathematical class derived from tagRect.
int Height() const
Returns the height of this rectangle (bottom - top).
TRect & Inflate(int dx, int dy)
Inflates a rectangle inflated by the given delta arguments.
const TPoint & TopLeft() const
Returns the upperleft point.
int Width() const
Returns the width of this rectangle (right - left).
TRect()
Default constructor that does nothing.
Derived from TWindowDC, TScreenDC is a DC class that provides direct access to the screen bitmap.
The tagSIZE struct is defined as.
TSize()
Default constructor that does nothing.
TEdge
Enumeration describing the type of edge to be drawn.
@ RaisedInner
Raised inner edge only.
@ SunkenInner
Sunken inner edge only.
@ Recessed
Status field style recessed.
TUIBorder(const TRect &frame, TStyle style, uint flags=0)
Constructs a UIBorder object given a frame and a high-level style type.
TUIFace assists in painting UI elements in various states.
static THatch8x8Brush & GetDitherBrush()
Internal static helper function that can be used alone.
@ Disabled
Disabled or Unavailable state (embossed 3d no color).
@ Indeterm
Indeterminant, or mixed-value state.
void Paint(TDC &dc, const TPoint &dstPt, TState state, bool pressed, bool fillFace=true)
Paint the face of a button onto a DC.
Definitions of classes TDrawItemProxy, TDrawItem,TButtonTextDrawItem, TDrawMenuItem,...
Definition of TGadgetList, TGadgetWindow & TGadgetWindowFont A list holding gadgets,...
Definition of class TGlyphButton.
TAutoDelete
Flag for Handle ctors to control Handle deletion in dtor.
char * strnewdup(const char *s, size_t minAllocSize=0)
Object Windows Library (OWLNext Core).
uint32 MkUint32(uint16 lo, uint16 hi)
LPARAM TParam2
Second parameter type.
#define TYPESAFE_DOWNCAST(object, toClass)
Defines classes handling Windows resources.
Definition of container classes used and made available by OWL.
Definition of the UI Helper Classes: TUIHandle, TUIBorder, TUIFace, TUIPart.
Definition of TUIMetric, a UI metrics provider class.