21static void setWindowLayoutMetrics(TLayoutMetrics&
lm, TNoteTab*
tab,
33 lm.Width.RightOf(
tab);
150 for(
int i = 0;
i< count;
i++){
153 if (!
wnd->IsWindow())
161 if(Item.
Label.empty()){
243void TTabbedWindow::Init()
254 for(
i = 0;
i < count;
i++){
304 for(
i = 0;
i < count;
i++)
337 if(!
wnd1->IsWindow())
353 for(
uint i = 0;
i < count;
i++){
#define PRECONDITION(condition)
static const TColor Transparent
a non-painting color
An abstract base class, TDocument is the base class for all document objects and serves as an interfa...
When specifying the layout metrics for a window, four layout constraints are needed.
Derived from TWindow, TLayoutWindow provides functionality for defining the layout metrics for a wind...
virtual void Layout()
Causes the window to resize and position its children according to the specified metrics.
bool GetChildLayoutMetrics(const TWindow &child, TLayoutMetrics &metrics)
Gets the layout metrics of the child window.
void SetChildLayoutMetrics(TWindow &child, const TLayoutMetrics &metrics)
Sets the metrics for the window and removes any existing ones.
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.
TNotify is a thin wrapper around the NMHDR structure.
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
TTabbedBase implements a tabbed window, designed to be mixed in with TWindow derived.
virtual void AdjustPage(TWindow &page)
TTabbedBase(TWindow *self, int x, int y, int w, int h, TTabPosition=tpBottom, TNoteTab *tab=0)
int Add(TWindow &wnd, LPCTSTR titles=0)
Add a new tab page.
void EvTabControlSelChange(TNotify &tcn)
void SelectPage(int index, bool shouldFocusPage=true)
Hides the current page and shows the page at the given index.
TWindow * GetPage(int index=-1)
TNoteTab * GetTabControl()
bool EvTabControlSelChanging(TNotify &tcn)
TTabbedView(TDocument &doc, TWindow *parent=0)
Tabbed windows it is used in tabbed window.
auto Create() -> bool override
bool DeletePage(TWindow &wnd)
TTabbedWindow(TWindow *parent=0, LPCTSTR title=0, TModule *module=0)
int AddPage(TWindow &wnd, LPCTSTR titles=0)
Add a new tab page.
void ResizeTabControl(int newHeight)
Sets the height of the tab control to the given value, then updates the layout of the window and inva...
Abstract base class for view access from document.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
void SetBkgndColor(TColor color, bool shouldUpdate=true)
Sets the background color for the window.
virtual bool Create()
Creates the window interface element to be associated with this ObjectWindows interface element.
TWindow * GetParentO() const
Return the OWL's parent for this window.
bool IsChild(HWND hWnd) const
Returns true if the window is a child window or a descendant window of this window.
void GetWindowRect(TRect &rect) const
Gets the screen coordinates of the window's rectangle and copies them into rect.
bool ModifyStyle(uint32 offBits, uint32 onBits, uint swpFlags=0)
Modifies the style bits of the window.
virtual void Invalidate(bool erase=true)
Invalidates (mark for painting) the entire client area of a window.
HWND GetHandle() const
Returns the handle of the window.
#define EV_TCN_SELCHANGE(id, method)
void method(TNotify&)
#define EV_TCN_SELCHANGING(id, method)
bool method(TNotify&)
Definition of class TDocManager.
#define DEFINE_RESPONSE_TABLE2(cls, base1, base2)
Macro to define a response table for a class with two bases.
#define DEFINE_RESPONSE_TABLE1(cls, base)
Macro to define a response table for a class with one base.
#define lmParent
Use to represent the parent in layout metrics.
@ lmTop
The top edge of the window.
@ lmBottom
The bottom edge of the window.
@ lmRight
The right edge of the window.
@ lmLeft
The left edge of the window.
int Add(LPCTSTR txt, INT_PTR clientData=0, int imageIdx=-1, TAbsLocation imageLoc=alLeft, bool shouldSelect=true)
Adds a new tabitem to the notetab control.
int GetSel() const
Returns the index of the selected tabitem.
INT_PTR ClientData
User-defined data associated with item.
bool GetItem(int index, TNoteTabItem &item) const
Retrieve information about the tab item at the specified index.
int SetSel(int index)
Selects the tabitem at the specified index.
bool Delete(int index)
Remove the tabitem at the specified 'index'.
bool SetItem(int index, const TNoteTabItem &item)
Updates information about the tab item at the specified index.
int GetCount() const
Return the number of tab items in the notetab control.
tstring Label
Label of tab.
int GetMinimalHeight()
Returns the minimal control height for which tabs are not clipped.
Definition of classes TLayoutMetrics & TLayoutWindow.
Object Windows Library (OWLNext Core)
General definitions used by all ObjectWindows programs.
#define TYPESAFE_DOWNCAST(object, toClass)
TNoteTabItem holds information about each tab in a notetab control.
Class definition for TTabbedBase .