OWLNext
7.0
Borland's Object Windows Library for the modern age
Toggle main menu visibility
Loading...
Searching...
No Matches
pager.cpp
Go to the documentation of this file.
1
//----------------------------------------------------------------------------
2
// ObjectWindows
3
// Copyright (c) 1998 by Bidus Yura, All Rights Reserved
4
//
5
/// \file
6
/// Implementation of the TPageScroller class
7
//----------------------------------------------------------------------------
8
#include <
owl/pch.h
>
9
10
#include <
owl/pager.h
>
11
12
13
namespace
owl
{
14
15
OWL_DIAGINFO
;
16
DIAG_DECLARE_GROUP
(OwlCommCtrl);
// CommonCtrl Diagnostic group
17
18
//
19
//
20
//
21
TPageScroller::TPageScroller
(
TWindow
* parent,
int
id
,
TWindow
* child,
int
x,
int
y,
22
int
w,
int
h,
TModule
* module)
23
:
24
TControl
(parent,id,
_T
(
""
),x,y,w,h,module),
25
ChildWindow
(child)
26
{
27
InitializeCommonControls
(ICC_PAGESCROLLER_CLASS);
28
}
29
30
31
//
32
//
33
//
34
TPageScroller::TPageScroller
(
TWindow
* parent,
int
resourceId,
TWindow
* child,
35
TModule
* module)
36
:
37
TControl
(parent, resourceId, module),
38
ChildWindow
(child)
39
{
40
InitializeCommonControls
(ICC_PAGESCROLLER_CLASS);
41
DisableTransfer
();
42
}
43
44
//
45
//
46
//
47
TPageScroller::~TPageScroller
()
48
{
49
}
50
51
52
// Return the proper class name.
53
// Windows class: WC_PAGESCROLLER is defined in commctrl.h
54
auto
TPageScroller::GetWindowClassName
() ->
TWindowClassName
55
{
56
return
TWindowClassName
{WC_PAGESCROLLER};
57
}
58
59
//
60
//
61
//
62
void
63
TPageScroller::SetChild
(
TWindow
* child)
64
{
65
ChildWindow
= child;
66
if
(child &&
GetHandle
()){
67
if
(!child->
GetHandle
())
68
child->
Create
();
69
SendMessage
(PGM_SETCHILD,0,
TParam2
(child->
GetHandle
()));
70
}
71
}
72
73
void
74
TPageScroller::SetupWindow
()
75
{
76
TControl::SetupWindow
();
77
if
(
ChildWindow
)
78
SetChild
(
ChildWindow
);
79
}
80
}
// OWL namespace
81
/* ========================================================================== */
owl::TControl::TControl
TControl(TWindow *parent, int id, LPCTSTR title, int x, int y, int w, int h, TModule *module=nullptr)
Invokes TWindow's constructor, passing it parent (parent window), title (caption text),...
Definition
control.cpp:43
owl::TModule
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
Definition
module.h:78
owl::TPageScroller::~TPageScroller
~TPageScroller()
Definition
pager.cpp:47
owl::TPageScroller::TPageScroller
TPageScroller(TWindow *parent, int id, TWindow *child, int x, int y, int w, int h, TModule *module=0)
Definition
pager.cpp:21
owl::TPageScroller::SetChild
void SetChild(TWindow *child)
Definition
pager.cpp:63
owl::TPageScroller::ChildWindow
TWindow * ChildWindow
Definition
pager.h:78
owl::TPageScroller::GetWindowClassName
virtual auto GetWindowClassName() -> TWindowClassName
Definition
pager.cpp:54
owl::TPageScroller::SetupWindow
void SetupWindow()
Definition
pager.cpp:74
owl::TWindowClassName
Type-safe encapsulation of a Windows class name, a union between ATOM and LPCTSTR.
Definition
module.h:50
owl::TWindow
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
Definition
window.h:414
owl::TWindow::Create
virtual bool Create()
Creates the window interface element to be associated with this ObjectWindows interface element.
Definition
window.cpp:2399
owl::TWindow::DisableTransfer
void DisableTransfer()
Disables (for the interface object) the transfer mechanism, which allows state data to be transferred...
Definition
window.h:1835
owl::TWindow::SendMessage
TResult SendMessage(TMsgId, TParam1=0, TParam2=0) const
Sends a message (msg) to a specified window or windows.
Definition
window.cpp:3288
owl::TWindow::SetupWindow
virtual void SetupWindow()
Performs setup following creation of an associated MS-Windows window.
Definition
window.cpp:2575
owl::TWindow::GetHandle
HWND GetHandle() const
Returns the handle of the window.
Definition
window.h:2020
_T
#define _T(x)
Definition
cygwin.h:51
pch.h
owl
Object Windows Library (OWLNext Core).
Definition
animctrl.h:22
owl::InitializeCommonControls
void InitializeCommonControls(uint controlFlags)
Wrapper for the Windows API function InitCommmonControlsEx.
Definition
commctrl.cpp:19
owl::TParam2
LPARAM TParam2
Second parameter type.
Definition
dispatch.h:55
owl::OWL_DIAGINFO
OWL_DIAGINFO
Definition
animctrl.cpp:14
owl::DIAG_DECLARE_GROUP
DIAG_DECLARE_GROUP(OwlThread)
pager.h
Definition of class TPageScroller.
source
owlcore
pager.cpp
Generated by
1.18.0