12#if !defined(OWL_TABBED_H)
16#if defined(BI_HAS_PRAGMA_ONCE)
23#include <owl/tabbed.rh>
26#if !defined(RC_INVOKED)
79 int Add(
TWindow& wnd, LPCTSTR titles = 0);
84 TWindow* GetPage(
int index = -1);
85 void SelectPage(
int index,
bool shouldFocusPage =
true);
88 void EvTabControlSelChange(
TNotify& tcn);
89 bool EvTabControlSelChanging(
TNotify& tcn);
91 virtual void AdjustPage(
TWindow& page);
123 void ResizeTabControl(
int newHeight);
126 auto Create() ->
bool override;
155 auto SetDocTitle(LPCTSTR docname,
int index) ->
bool override;
160 bool VnIsWindow(HWND hWnd);
176 return _T(
"Tabbed View");
184 || Doc->NextView(
nullptr) !=
this || Doc->CanClose());
194 return static_cast<TWindow*
>(
this);
TEventHandler is a base class from which you can derive classes that handle messages.
TLayoutWindow(TWindow *parent, LPCTSTR title=0, TModule *module=0)
Creates a TLayoutWindow object with specified parent, window caption, and library ID.
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.
TTabbedBase implements a tabbed window, designed to be mixed in with TWindow derived.
int Add(TWindow &wnd, const tstring &titles)
TTabbedBase(TWindow *self, int x, int y, int w, int h, TTabPosition=tpBottom, TNoteTab *tab=0)
DECLARE_RESPONSE_TABLE(TTabbedBase)
TNoteTab * GetTabControl()
auto CanClose() -> bool override
Only query document if this is the last view open to it.
TTabbedView(TDocument &doc, TWindow *parent=0)
auto GetViewName() -> LPCTSTR override
auto SetDocTitle(LPCTSTR docname, int index) -> bool override
static LPCTSTR StaticName()
auto GetWindow() -> TWindow *override
Tabbed windows it is used in tabbed window.
int AddPage(TWindow &wnd, const tstring &titles)
TTabbedWindow(TWindow *parent=0, LPCTSTR title=0, TModule *module=0)
int AddPage(TWindow &wnd, LPCTSTR titles=0)
Add a new tab page.
friend class TDocument
needs access to NextView
TView(TDocument &doc)
Constructs a TView object of the document associated with the view.
virtual LPCTSTR GetViewName()=0
Pure virtual function that returns 0.
virtual TWindow * GetWindow()
Returns the TWindow instance associated with the view, or 0 if no view exists.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
virtual bool SetDocTitle(LPCTSTR docname, int index)
Default behavior for updating document title is to pass it to parent frame.
virtual bool CanClose()
Use this function to determine if it is okay to close a window.
Definition of classes TDocument, TView, TWindowView, TStream, TInStream, TOutStream.
#define DECLARE_RESPONSE_TABLE(cls)
@ alTop
Refers to top edge of frame.
@ alRight
Refers to right edge of frame.
@ alBottom
Refers to bottom edge of frame.
@ alLeft
Refers to left edge of frame.
Definition of classes TLayoutMetrics & TLayoutWindow.
Object Windows Library (OWLNext Core).
Definition of class TNoteTab.