12#if !defined(OWL_COMMVIEW_H)
16#if defined(BI_HAS_PRAGMA_ONCE)
44 auto CanClose() ->
bool override;
48 auto GetViewName() ->
LPCTSTR override;
49 auto GetWindow() ->
TWindow*
override;
77 auto CanClose() ->
bool override;
81 auto GetViewName() ->
LPCTSTR override;
82 auto GetWindow() ->
TWindow*
override;
112 return _T(
"TreeWindow View");
120 (Doc->NextView(
this) ||
121 Doc->NextView(
nullptr) !=
this ||
132 return static_cast<TWindow*
>(
this);
137inline bool TTreeViewCtrlView::VnIsWindow(
HWND hWnd)
157 return _T(
"ListWindow View");
165 (Doc->NextView(
this) ||
166 Doc->NextView(
nullptr) !=
this ||
177 return static_cast<TWindow*
>(
this);
182inline bool TListViewCtrlView::VnIsWindow(
HWND hWnd)
An abstract base class, TDocument is the base class for all document objects and serves as an interfa...
Encapsulates the ListView control, a window that displays a collection of items, each item consisting...
virtual ~TListViewCtrlView()
auto GetViewName() -> LPCTSTR override
auto SetDocTitle(LPCTSTR docname, int index) -> bool override
auto CanClose() -> bool override
Only query document if this is the last view open to it.
static LPCTSTR StaticName()
auto GetWindow() -> TWindow *override
Encapsulates the TreeView common control.
auto CanClose() -> bool override
auto GetWindow() -> TWindow *override
virtual ~TTreeViewCtrlView() override
static LPCTSTR StaticName()
auto GetViewName() -> LPCTSTR override
auto SetDocTitle(LPCTSTR docname, int index) -> bool override
Abstract base class for view access from document.
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.
bool IsChild(HWND hWnd) const
Returns true if the window is a child window or a descendant window of this window.
virtual bool CanClose()
Use this function to determine if it is okay to close a window.
HWND GetHandle() const
Returns the handle of the window.
Definition of classes TDocument, TView, TWindowView, TStream, TInStream, TOutStream.
#define DECLARE_RESPONSE_TABLE(cls)
TTreeViewCtrlView TTreeWindowView
Definition of TListViewCtrl class.
Object Windows Library (OWLNext Core)
TListViewCtrlView TListWindowView
Declares TTreeViewCtrl, TTreeNode, and TTvItem.