OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
commview.cpp
Go to the documentation of this file.
1//----------------------------------------------------------------------------
2// ObjectWindows
3// OWL NExt
4// Copyright © 1999 by Yura Bidus . All Rights Reserved.
5//
6/// \file
7/// Source file for implementation of TTreeViewCtrlView (TTreeViewCtrl).
8/// Source file for implementation of TListViewCtrlView (TListViewCtrl).
9//
10//----------------------------------------------------------------------------
11#include <owl/pch.h>
12
13#include <owl/commview.h>
14
15namespace owl {
16
17//----------------------------------------------------------------------------
18// TTreeViewCtrlView Implementation
19//
20
21//
22// Build a response table for all messages/commands handled
23// by TTreeViewCtrlView derived from TTreeViewCtrl.
24//
25DEFINE_RESPONSE_TABLE1(TTreeViewCtrlView, TTreeViewCtrl)
28
29
31:
32 TTreeViewCtrl(parent, id, 0, 0, 0, 0),
33 TView(doc)
34{
35}
36#if OWL_PERSISTENT_STREAMS
37/*
38//
39//
40void*
41TTreeViewCtrlView::Streamer::Read(ipstream& is, uint32 version) const
42{
43 ReadBaseObject((TTreeViewCtrl*)GetObject(), is);
44 ReadBaseObject((TView*)GetObject(), is);
45 return GetObject();
46}
47
48//
49//
50//
51void
52TWindowView::Streamer::Write(opstream& os) const
53{
54 WriteBaseObject((TTreeViewCtrl*)GetObject(), os);
55 WriteBaseObject((TView*)GetObject(), os);
56}
57*/
58#endif
59
60//----------------------------------------------------------------------------
61// TListViewCtrlView Implementation
62//
63
64//
65// Build a response table for all messages/commands handled
66// by TListViewCtrlView derived from TListViewCtrl.
67//
71
72
74:
75 TListViewCtrl(parent, id, 0, 0, 0, 0),
76 TView(doc)
77{
78}
79#if OWL_PERSISTENT_STREAMS
80/*
81//
82//
83void*
84TListViewCtrlView::Streamer::Read(ipstream& is, uint32 version) const
85{
86 ReadBaseObject((TListViewCtrl*)GetObject(), is);
87 ReadBaseObject((TView*)GetObject(), is);
88 return GetObject();
89}
90
91//
92//
93//
94void
95TListViewCtrlView::Streamer::Write(opstream& os) const
96{
97 WriteBaseObject((TListViewCtrl*)GetObject(), os);
98 WriteBaseObject((TView*)GetObject(), os);
99}
100*/
101#endif
102
103
104} // OWL namespace
105
106
107//==============================================================================
An abstract base class, TDocument is the base class for all document objects and serves as an interfa...
Definition docview.h:187
Encapsulates the ListView control, a window that displays a collection of items, each item consisting...
TListViewCtrlView(TDocument &doc, TWindow *parent=0, int id=-1)
Definition commview.cpp:73
Encapsulates the TreeView common control.
Abstract base class for view access from document.
Definition docview.h:397
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
Definition window.h:414
Class definition for TTreeViewCtrlView (TTreeViewCtrl).
#define DEFINE_RESPONSE_TABLE1(cls, base)
Macro to define a response table for a class with one base.
Definition eventhan.h:492
Object Windows Library (OWLNext Core)
Definition animctrl.h:22
EV_VN_ISWINDOW
Definition commview.cpp:26
END_RESPONSE_TABLE
Definition button.cpp:26