OWLNext
7.0
Borland's Object Windows Library for the modern age
Toggle main menu visibility
Loading...
Searching...
No Matches
decmdifr.h
Go to the documentation of this file.
1
//----------------------------------------------------------------------------
2
// ObjectWindows
3
// Copyright (c) 1992, 1996 by Borland International, All Rights Reserved
4
//
5
/// \file
6
/// Definition of TDecoratedMDIFrame class
7
//----------------------------------------------------------------------------
8
9
#if !defined(OWL_DECMDIFR_H)
10
#define OWL_DECMDIFR_H
11
12
#include <
owl/private/defs.h
>
13
#if defined(BI_HAS_PRAGMA_ONCE)
14
# pragma once
15
#endif
16
17
#include <
owl/mdi.h
>
18
#include <
owl/decframe.h
>
19
#include <memory>
20
21
namespace
owl
{
22
23
#include <
owl/preclass.h
>
24
25
/// \addtogroup decor
26
/// @{
27
/// \class TDecoratedMDIFrame
28
// ~~~~~ ~~~~~~~~~~~~~~~~~~
29
/// Derived from both TMDIFrame and TDecoratedFrame, TDecoratedMDIFrame is an MDI
30
/// frame that supports decorated child windows.
31
/// TDecorated MDIFrame supports custom toolbars. You can insert one set of
32
/// decorations (for example, toolbars and rulers) into a decorated frame. When a
33
/// different set of tools is needed, you can remove the previous set and reinsert
34
/// another set of decorations. However, be sure to remove all of the unwanted
35
/// decorations from the adjusted sides (that is, the top, left, bottom, and right)
36
/// before reinserting a new set.
37
//
38
class
_OWLCLASS
TDecoratedMDIFrame
:
public
TMDIFrame
,
39
public
TDecoratedFrame
{
40
public
:
41
42
TDecoratedMDIFrame
(
43
LPCTSTR title,
44
TResId
menuResId,
45
std::unique_ptr<TMDIClient> clientWnd =
nullptr
,
46
bool
trackMenuSelection =
false
,
47
TModule
* = 0);
48
49
TDecoratedMDIFrame
(
50
const
tstring
& title,
51
TResId
menu,
52
std::unique_ptr<TMDIClient> clientWnd =
nullptr
,
53
bool
trackMenuSelection =
false
,
54
TModule
* module = 0);
55
56
#if defined(OWL5_COMPAT)
57
58
TDecoratedMDIFrame
(LPCTSTR title,
59
TResId
menuResId,
60
TMDIClient
& clientWnd,
61
bool
trackMenuSelection =
false
,
62
TModule
* module = 0);
63
64
TDecoratedMDIFrame
(
65
const
tstring
& title,
66
TResId
menu,
67
TMDIClient
& clientWnd,
68
bool
trackMenuSelection =
false
,
69
TModule
* module = 0);
70
71
#endif
72
73
virtual
TResult
DefWindowProc
(
TMsgId
,
TParam1
,
TParam2
);
74
75
private
:
76
// Hidden to prevent accidental copying or assignment
77
//
78
TDecoratedMDIFrame
(
const
TDecoratedMDIFrame
&);
79
TDecoratedMDIFrame
& operator =(
const
TDecoratedMDIFrame
&);
80
81
DECLARE_RESPONSE_TABLE(
TDecoratedMDIFrame
);
82
DECLARE_STREAMABLE_OWL
(
TDecoratedMDIFrame
, 1);
83
};
84
/// @}
85
86
DECLARE_STREAMABLE_INLINES
(
owl::TDecoratedMDIFrame
);
87
88
#include <
owl/posclass.h
>
89
90
typedef
TDecoratedMDIFrame
TDecoratedMdiFrame
;
91
92
93
}
// OWL namespace
94
95
96
#endif
// OWL_DECMDIFR_H
97
owl::TDecoratedFrame::TDecoratedFrame
TDecoratedFrame(TWindow *parent, LPCTSTR title, TWindow *clientWnd, bool trackMenuSelection=false, TModule *module=0)
Constructs a TDecoratedFrame object with the specified parent window (parent), window caption (title)...
Definition
decframe.cpp:62
owl::TDecoratedMDIFrame
Derived from both TMDIFrame and TDecoratedFrame, TDecoratedMDIFrame is an MDI frame that supports dec...
Definition
decmdifr.h:39
owl::TDecoratedMDIFrame::DefWindowProc
virtual TResult DefWindowProc(TMsgId, TParam1, TParam2)
Overrides TWindow::DefWindowProc .
Definition
decmdifr.cpp:80
owl::TDecoratedMDIFrame::TDecoratedMDIFrame
TDecoratedMDIFrame(LPCTSTR title, TResId menuResId, std::unique_ptr< TMDIClient > clientWnd=nullptr, bool trackMenuSelection=false, TModule *=0)
Constructs a decorated MDI frame of the specified client window with the indicated menu resource ID.
Definition
decmdifr.cpp:29
owl::TMDIClient
Multiple Document Interface (MDI) client windows (represented by a TMDIClient object) manage the MDI ...
Definition
mdi.h:37
owl::TMDIFrame::TMDIFrame
TMDIFrame(LPCTSTR title, TResId menuResId, std::unique_ptr< TMDIClient > clientWnd=nullptr, TModule *=nullptr)
Constructs an MDI frame window object using the caption (title) and resource ID (menuResId).
Definition
mdiframe.cpp:36
owl::TModule
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
Definition
module.h:78
owl::TResId
Definition
wsyscls.h:206
decframe.h
Definition of class TDecoratedFrame, a TFrameWindow that can manage decorations around the client win...
DECLARE_STREAMABLE_OWL
#define DECLARE_STREAMABLE_OWL(cls, ver)
Definition
objstrm.h:1529
DECLARE_STREAMABLE_INLINES
#define DECLARE_STREAMABLE_INLINES(cls)
Definition
objstrm.h:1538
mdi.h
Definition of TMDIClient and TMDIFrame classes.
owl
Object Windows Library (OWLNext Core).
Definition
animctrl.h:22
owl::TDecoratedMdiFrame
TDecoratedMDIFrame TDecoratedMdiFrame
Definition
decmdifr.h:90
owl::TMsgId
UINT TMsgId
Message ID type.
Definition
dispatch.h:53
owl::TParam2
LPARAM TParam2
Second parameter type.
Definition
dispatch.h:55
owl::TParam1
WPARAM TParam1
First parameter type.
Definition
dispatch.h:54
owl::TResult
LRESULT TResult
Result type.
Definition
dispatch.h:52
owl::tstring
std::string tstring
Definition
defs.h:79
defs.h
_OWLCLASS
#define _OWLCLASS
Definition
defs.h:338
posclass.h
preclass.h
include
owl
decmdifr.h
Generated by
1.18.0