12#if !defined(OWL_NOTETAB_H)
16#if defined(BI_HAS_PRAGMA_ONCE)
22#if !defined(OWL_NOTETAB)
24# define OWL_NOTETAB L"OWL_Notetab"
26# define OWL_NOTETAB "OWL_Notetab"
30#if !defined(RC_INVOKED)
74 int x,
int y,
int w,
int h,
123 bool Delete(
int index);
128 int GetCount()
const;
130 int SetSel(
int index);
131 void SetWindowFace(
bool);
132 bool GetWindowFace()
const;
133 void SetStyle3d(
bool);
134 bool GetStyle3d()
const;
135 void EnableThemes(
bool);
137 int GetFirstVisibleTab()
const;
138 void SetFirstVisibleTab(
int index);
139 bool EnsureVisible(
int index);
144 int GetMinimalHeight();
150 void SetMargin(
const TSize&);
156 void SetLabelMargin(
const TSize&);
162 void SetLabelImageMargin(
int);
168 void SetFocusMargin(
const TSize&);
174 void SetTabSpacing(
int);
180 void SetTabTapering(
int);
186 void SetSelectedTabProtrusion(
int);
188 const TFont& GetTabFont()
const;
189 void SetTabFont(
const TFont&);
191 const TFont& GetSelectedTabFont()
const;
192 void SetSelectedTabFont(
const TFont&);
198 void SetTabColor(
const TColor&);
205 void SetSelectedTabColor(
const TColor&);
211 void SetEdgeColor(
const TColor&);
218 bool IsVisible(
int index)
const;
219 bool IsFullyVisible(
int index)
const;
224 void SetCelArrayTransparentColor(
const TColor&);
225 TColor GetCelArrayTransparentColor()
const;
229 HWND GetBuddy()
const;
241 void SetupWindow()
override;
254 bool EvEraseBkgnd(
HDC);
260 void InvalidateTab(
int index);
261 void SetTabSize(
int index);
262 int TabFromPoint(
const TPoint&
pt)
const;
263 TRect GetScrollingTabsArea()
const;
264 TRect GetScrollerArea()
const;
265 bool NotifyAndSelect(
int index);
271 bool ShouldUseThemes;
274 int LabelImageMargin;
278 int SelectedTabProtrusion;
279 std::unique_ptr<TFont> TabFont;
280 std::unique_ptr<TFont> SelectedTabFont;
295 typedef std::vector<TNoteTabItem> TNoteTabItemArray;
296 TNoteTabItemArray TabList;
300 std::unique_ptr<TCelArray> OwnedCelArray;
302 TRect LastClientRectPainted;
303 TRect EffectiveTabsArea;
307 typedef std::vector<TRect> TRects;
311 template <
class TPartRenderer>
398 ShouldUseThemes =
st;
408 return FirstVisibleTab;
434 return TransparentColor;
Definition of a bitmap Cel array class.
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.
TControl unifies its derived control classes, such as TScrollBar, TControlGadget, and TButton.
TDC is the root class for GDI DC wrappers.
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...
TNoteTab encapsulates a tab control with each tab item along the bottom of the window.
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
The tagSIZE struct is defined as.
TUpDown encapsulates an up-down control, which is a window with a pair of arrow buttons that the user...
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 classes for CommonControl encapsulation.
Definition of class TControl.
#define DECLARE_RESPONSE_TABLE(cls)
Definition of abstract GDI object class and derived classes.
TAutoDelete
Flag for Handle ctors to control Handle deletion in dtor.
TRect Rect
Location of tab [client-area base coords].
TSize LabelSize
Width and height of label.
int GetLabelImageMargin() const
Returns the horizontal spacing between image and text in the label.
TNoteTabItem()
Default constructor of Notetab Item object.
INT_PTR ClientData
User-defined data associated with item.
void SetWindowFace(bool)
Specifies whether active tab should use the system's window color.
TSize GetLabelMargin() const
Returns the amount of padding around the tab label.
TColor GetCelArrayTransparentColor() const
Returns the color assigned to denote transparency in the bitmaps used for the tabs (see SetCelArray).
int Add(const tstring &txt, INT_PTR clientData=0, int imageIdx=-1, TAbsLocation imageLoc=alLeft, bool shouldSelect=true)
int ImageIdx
Index of tab image.
TColor GetEdgeColor() const
Returns the pen color used to draw the edges of the tabs.
TSize GetFocusMargin() const
Returns the margin around the focus rectangle for the selected tab.
TSize GetMargin() const
Returns the amount of vertical space above the tabs.
TAbsLocation GetScrollLocation() const
Get the scroller location.
bool GetStyle3d() const
Returns the flag specifying whether the notetab control should draw a 3D border.
bool AreThemesEnabled() const
int GetTabTapering() const
Returns the amount of narrowing on each side of the tab towards the bottom.
void SetStyle3d(bool)
Specifies whether the note tab should draw a 3D edge.
TColor GetTabColor() const
Returns the fill color used to paint the tabs.
int GetSelectedTabProtrusion() const
Returns the amount of extra height of the selected tab.
int GetTabSpacing() const
Returns the horizontal distance between two tabs.
bool GetWindowFace() const
Returns the flag specifying whether the active tab should use the system's window color.
TAbsLocation ImageLoc
Placement of tab image.
TCelArray * GetCelArray()
Get a pointer to the array of bitmaps used for the tabs.
int GetFirstVisibleTab() const
Returns FirstVisibleTab.
void EnableThemes(bool)
Specifies whether the note tab should use Windows visual styles (themes).
int Insert(const tstring &txt, int index, INT_PTR clientData=0, int imageIdx=-1, TAbsLocation imageLoc=alLeft, bool shouldSelect=true)
tstring Label
Label of tab.
TColor GetSelectedTabColor() const
Returns the fill color used to paint the selected tab.
TAbsLocation
General use absolute 2-D rectangular location enum.
@ alLeft
Refers to left edge of frame.
TTransferDirection
The TTransferDirection enum describes the constants that the transfer function uses to determine how ...
Object Windows Library (OWLNext Core)
TNoteTabItem holds information about each tab in a notetab control.