9#if !defined(OWL_COOLBAR_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
55 bool operator < (
const TCoolBand& band) {
return this < &band; }
56 bool operator ==(
const TCoolBand& band) {
return this == &band;}
59 void BeginDrag(
const TPoint& point);
60 void DragMove(
const TPoint& point);
62 void Maximize(
bool ideal);
65 bool ShowBand(
bool show);
67 void GetBorders(
TRect& rect);
68 void GetRect(
TRect& rect);
73 void SetupData(
TCoolBar* parent, REBARBANDINFO& info);
353 return reinterpret_cast<HWND
>(
SendMessage(RB_GETTOOLTIPS,0,0));
397 return static_cast<int>(
SendMessage(RB_IDTOINDEX,
id));
#define PRECONDITION(condition)
Class wrapper for management of color values.
TControl(TWindow *parent, int id, LPCTSTR title, int x, int y, int w, int h, TModule *module=nullptr)
Invokes TWindow's constructor, passing it parent (parent window), title (caption text),...
void GetBorders(TRect &rect)
void Maximize(bool ideal)
TProperty< uint > Width
Width of the band: don't use -1.
void GetRect(TRect &rect)
TObjProperty< TBitmap > Bitmap
The band's background bitmap.
TObjProperty< TColor > FgColor
Band colors -.
TProperty< TWindow * > Child
Handle of the band's child window.
void DragMove(const TPoint &point)
TProperty< int > Id
The band's ID number: don't use -1.
TObjProperty< TSize > MinSize
Minimum size of the band's child window don't use TSize(-1,-1).
TProperty< uint > Style
Band style flags.
TObjProperty< tstring > Text
Band text label.
TProperty< uint > Mask
Mask indicating which other members are valid.
TProperty< int > ImageIndex
Band image index (into rebar image list): don't use -1.
TObjProperty< TColor > BgColor
void BeginDrag(const TPoint &point)
This simple implementation does no more than encapsulte the messages which can be sent to the rebar c...
void SetBgColor(const TColor &clr)
bool Insert(TCoolBand *band, uint index=-1)
bool GetInfo(TRebarInfo &info)
void SetPalette(TPalette *palette)
TFuncPropertyVarPut< TPalette * > Palette
void SetTextColor(const TColor &clr)
TDropTarget GetDropTarget()
TFuncProperty< bool > Unicode
void SetBuddy(TWindow *buddy)
TColorScheme & GetColorScheme()
void SetImageList(TImageList *list, TAutoDelete=AutoDelete)
TFuncObjPropertyGet< TCoolBandArray > Bands
TFuncObjProperty< TColorScheme > ColorScheme
TFuncObjProperty< TColor > TextColor
void SetUnicode(bool unicode)
bool SetRect(const TRect &rec)
bool Delete(uint index=0)
void SetColorScheme(const TColorScheme &clr)
bool SetInfo(TRebarInfo &info)
void SetTooltip(TTooltip *tip)
TColorScheme * FColorScheme
uint HitTest(TRbHitTestInfo &tst)
TCoolBandArray & GetBands()
TCoolBar(TWindow *parent, int id, int x, int y, int w, int h, TModule *module=0)
virtual auto GetWindowClassName() -> owl::TWindowClassName
TImageList * GetImageList()
TFuncPropertyVarPut< TTooltip * > Tooltip
TFuncObjProperty< TColor > BgColor
TFuncPropertyVarPut< TWindow * > Buddy
"Parent" for notification messages
uint GetRowHeight(int index)
Wraps the IDropTarget interface (currently lightweight).
TDropTarget(IDropTarget *iface=0)
Default constructor for TDropTarget.
TPtrArrayIterator< TCoolBand *, TIPtrArray< TCoolBand * > > Iterator
TImageList is a wrapper class for the ImageList common "control".
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
Property container for object.
TPalette is the GDI Palette class derived from TGdiObject.
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
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...
TResult SendMessage(TMsgId, TParam1=0, TParam2=0) const
Sends a message (msg) to a specified window or windows.
HWND GetHandle() const
Returns the handle of the window.
Definition of classes for CommonControl encapsulation.
Definition of class TControl.
TAutoDelete
Flag for Handle ctors to control Handle deletion in dtor.
TIPtrArray< TCoolBand * > TCoolBandArray
TCoolBandArray::Iterator TCoolBandArrayIter
Object Windows Library (OWLNext Core).
uint32 MkUint32(uint16 lo, uint16 hi)
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
Credits: The Property pattern is taken from "Patterns in Practice: A PropertyTemplate for C++",...
Definitions of Win95 Shell Clases: TShellItem, TShellItemIterator, TPidl, TShellMalloc.
Definition of container classes used and made available by OWL.