12#if !defined(OWL_COMMVIEW_H)
16#if defined(BI_HAS_PRAGMA_ONCE)
50 auto SetDocTitle(LPCTSTR docname,
int index) ->
bool override;
55 bool VnIsWindow(HWND hWnd);
83 auto SetDocTitle(LPCTSTR docname,
int index) ->
bool override;
88 bool VnIsWindow(HWND hWnd);
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)
TListViewCtrl(TWindow *parent, int id, int x, int y, int w, int h, TModule *module=0)
Constructor that simply passes the parameters to the parent TControl::TControl(TWindow*,...
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()
TListViewCtrlView(TDocument &doc, TWindow *parent=0, int id=-1)
auto GetWindow() -> TWindow *override
TTreeViewCtrl(TWindow *parent, int id, int x, int y, int w, int h, uint32 style=0, TModule *module=0)
auto CanClose() -> bool override
auto GetWindow() -> TWindow *override
TTreeViewCtrlView(TDocument &doc, TWindow *parent=0, int id=-1)
virtual ~TTreeViewCtrlView() override
static LPCTSTR StaticName()
auto GetViewName() -> LPCTSTR override
auto SetDocTitle(LPCTSTR docname, int index) -> bool override
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.
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.
TTreeViewCtrlView TTreeWindowView
Definition of TListViewCtrl class.
Object Windows Library (OWLNext Core).
TListViewCtrlView TListWindowView
Declares TTreeViewCtrl, TTreeNode, and TTvItem.