OWLNext
7.0
Borland's Object Windows Library for the modern age
Toggle main menu visibility
Loading...
Searching...
No Matches
commview.cpp
Go to the documentation of this file.
1
//----------------------------------------------------------------------------
2
// ObjectWindows
3
// OWL NExt
4
// Copyright (c) 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
15
namespace
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
//
25
DEFINE_RESPONSE_TABLE1
(
TTreeViewCtrlView
,
TTreeViewCtrl
)
26
EV_VN_ISWINDOW
,
27
END_RESPONSE_TABLE
;
28
29
30
TTreeViewCtrlView
::
TTreeViewCtrlView
(
TDocument
& doc,
TWindow
* parent,
int
id
)
31
:
32
TTreeViewCtrl
(parent,
id
, 0, 0, 0, 0),
33
TView
(doc)
34
{
35
}
36
#if OWL_PERSISTENT_STREAMS
37
/*
38
//
39
//
40
void*
41
TTreeViewCtrlView::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
//
51
void
52
TWindowView::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
//
68
DEFINE_RESPONSE_TABLE1
(
TListViewCtrlView
,
TListViewCtrl
)
69
EV_VN_ISWINDOW
,
70
END_RESPONSE_TABLE
;
71
72
73
TListViewCtrlView::TListViewCtrlView
(
TDocument
& doc,
TWindow
* parent,
int
id
)
74
:
75
TListViewCtrl
(parent, id, 0, 0, 0, 0),
76
TView
(doc)
77
{
78
}
79
#if OWL_PERSISTENT_STREAMS
80
/*
81
//
82
//
83
void*
84
TListViewCtrlView::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
//
94
void
95
TListViewCtrlView::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
//==============================================================================
owl::TListViewCtrl
Encapsulates the ListView control, a window that displays a collection of items, each item consisting...
Definition
listviewctrl.h:586
owl::TListViewCtrl::TListViewCtrl
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*,...
Definition
listviewctrl.cpp:1107
owl::TListViewCtrlView
Definition
commview.h:68
owl::TListViewCtrlView::TListViewCtrlView
TListViewCtrlView(TDocument &doc, TWindow *parent=0, int id=-1)
Definition
commview.cpp:73
owl::TTreeViewCtrl
Encapsulates the TreeView common control.
Definition
treeviewctrl.h:340
owl::TTreeViewCtrl::TTreeViewCtrl
TTreeViewCtrl(TWindow *parent, int id, int x, int y, int w, int h, uint32 style=0, TModule *module=0)
Definition
treeviewctrl.cpp:632
owl::TTreeViewCtrlView
Definition
commview.h:35
owl::TTreeViewCtrlView::TTreeViewCtrlView
TTreeViewCtrlView(TDocument &doc, TWindow *parent=0, int id=-1)
Definition
commview.cpp:30
owl::TView::TDocument
friend class TDocument
needs access to NextView
Definition
docview.h:477
owl::TView::TView
TView(TDocument &doc)
Constructs a TView object of the document associated with the view.
Definition
view.cpp:34
owl::TWindow
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
Definition
window.h:414
commview.h
Class definition for TTreeViewCtrlView (TTreeViewCtrl).
DEFINE_RESPONSE_TABLE1
#define DEFINE_RESPONSE_TABLE1(cls, base)
Macro to define a response table for a class with one base.
Definition
eventhan.h:492
pch.h
owl
Object Windows Library (OWLNext Core).
Definition
animctrl.h:22
owl::EV_VN_ISWINDOW
EV_VN_ISWINDOW
Definition
commview.cpp:26
owl::END_RESPONSE_TABLE
END_RESPONSE_TABLE
Definition
button.cpp:26
source
owlcore
commview.cpp
Generated by
1.18.0