9#if !defined(OWL_LISTBOXVIEW_H)
10#define OWL_LISTBOXVIEW_H
13#if defined(BI_HAS_PRAGMA_ONCE)
19#include <owl/listboxview.rh>
37 auto GetViewName() ->
LPCTSTR override;
38 auto GetWindow() ->
TWindow*
override;
40 using TView::SetDocTitle;
44 auto AddString(
LPCTSTR) ->
int override;
45 using TListBox::AddString;
49 auto CanClose() ->
bool override;
50 auto Create() ->
bool override;
55 long GetOrigin()
const;
56 void SetOrigin(
long origin);
58 int GetMaxWidth()
const;
61 void SetExtent(
const tstring& str);
62 bool LoadData(
int top,
int sel);
78 bool VnDocClosed(
int omode);
79 bool VnCommit(
bool force);
80 bool VnRevert(
bool clear);
109 return _T(
"List View");
125 return static_cast<TWindow*
>(
this);
146 (Doc->NextView(
this) ||
147 Doc->NextView(
nullptr) !=
this ||
192 return DirtyFlag != 0;
An abstract base class, TDocument is the base class for all document objects and serves as an interfa...
An interface object that represents a corresponding list box element.
Provides views for list boxes.
auto GetViewName() -> LPCTSTR override
Overrides TView's virtual GetViewName function and returns the descriptive name of the class (StaticN...
auto SetDocTitle(LPCTSTR docname, int index) -> bool override
Overrides TView's virtual SetDocTitle function and stores the document title.
bool VnIsDirty()
Returns a nonzero value if changes made to the data in the view have not been saved to the document; ...
int GetMaxWidth() const
Returns the maximum width of the strings.
void SetMaxWidth(int maxwidth)
Sets the maximum width of the strings.
bool VnIsWindow(HWND hWnd)
Returns a nonzero value if the window's handle passed in hWnd is the same as that of the view's displ...
long GetOrigin() const
Returns the origin position on the persistent stream.
auto CanClose() -> bool override
Return true if both the listbox and the document can close.
auto GetWindow() -> TWindow *override
Overrides TView's virtual GetWindow function and returns the list view object as a TWindow.
static LPCTSTR StaticName()
put in resource
void SetOrigin(long origin)
Sets the position of the object.
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.
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 class TDocManager.
#define DECLARE_RESPONSE_TABLE(cls)
#define DECLARE_STREAMABLE_OWL(cls, ver)
#define DECLARE_STREAMABLE_INLINES(cls)
Definition of class TListBox and TlistBoxData.
Object Windows Library (OWLNext Core)