OWLNext    7.0
Borland's Object Windows Library for the modern age
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
21namespace 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//
39 public TDecoratedFrame {
40 public:
41
43 LPCTSTR title,
44 TResId menuResId,
45 std::unique_ptr<TMDIClient> clientWnd = nullptr,
46 bool trackMenuSelection = false,
47 TModule* = 0);
48
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
65 const tstring& title,
66 TResId menu,
67 TMDIClient& clientWnd,
68 bool trackMenuSelection = false,
69 TModule* module = 0);
70
71#endif
72
74
75 private:
76 // Hidden to prevent accidental copying or assignment
77 //
79 TDecoratedMDIFrame& operator =(const TDecoratedMDIFrame&);
80
81 DECLARE_RESPONSE_TABLE(TDecoratedMDIFrame);
83};
84/// @}
85
87
88#include <owl/posclass.h>
89
91
92
93} // OWL namespace
94
95
96#endif // OWL_DECMDIFR_H
97
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
Derived from both TMDIFrame and TDecoratedFrame, TDecoratedMDIFrame is an MDI frame that supports dec...
Definition decmdifr.h:39
virtual TResult DefWindowProc(TMsgId, TParam1, TParam2)
Overrides TWindow::DefWindowProc .
Definition decmdifr.cpp:80
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
Multiple Document Interface (MDI) client windows (represented by a TMDIClient object) manage the MDI ...
Definition mdi.h:37
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
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
Definition module.h:78
Definition of class TDecoratedFrame, a TFrameWindow that can manage decorations around the client win...
#define DECLARE_STREAMABLE_OWL(cls, ver)
Definition objstrm.h:1529
#define DECLARE_STREAMABLE_INLINES(cls)
Definition objstrm.h:1538
Definition of TMDIClient and TMDIFrame classes.
Object Windows Library (OWLNext Core).
Definition animctrl.h:22
TDecoratedMDIFrame TDecoratedMdiFrame
Definition decmdifr.h:90
UINT TMsgId
Message ID type.
Definition dispatch.h:53
LPARAM TParam2
Second parameter type.
Definition dispatch.h:55
WPARAM TParam1
First parameter type.
Definition dispatch.h:54
LRESULT TResult
Result type.
Definition dispatch.h:52
std::string tstring
Definition defs.h:79
#define _OWLCLASS
Definition defs.h:338