OWLNext
7.0
Borland's Object Windows Library for the modern age
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Typedefs
_
b
c
d
h
i
j
m
o
p
r
s
t
u
y
Enumerations
a
o
s
t
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
y
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Typedefs
c
d
e
i
l
p
r
s
t
v
Enumerations
c
h
p
q
s
t
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Related Symbols
d
g
i
o
s
t
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Functions
_
c
d
g
i
m
o
s
t
w
Variables
Typedefs
Enumerations
Enumerator
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
▼
OWLNext
►
Overview of ObjectWindows
Accessing application objects
Finding the object
Creating a small application
Using WinMain and OwlMain
►
About command enabling
►
ObjectWindows Exception Handling
Todo List
►
Topics
►
Namespaces
►
Classes
▼
Files
▼
File List
►
documentation
▼
include
►
ocf
▼
owl
►
private
animctrl.h
►
appdict.h
►
applicat.h
►
bardescr.h
bitmapga.h
►
bitset.h
btntextg.h
button.h
buttonga.h
celarray.h
checkbox.h
►
checklst.h
►
chooseco.h
►
choosefo.h
clipboar.h
clipview.h
cmdline.h
►
codepages.h
►
colmnhdr.h
►
color.h
►
combobex.h
combobox.h
►
commctrl.h
commdial.h
►
commview.h
configfl.h
►
contain.h
control.h
controlb.h
controlg.h
►
coolbar.h
►
date.h
►
datetime.h
dc.h
►
decframe.h
►
decmdifr.h
►
defs.h
dialog.h
dibitmap.h
►
dispatch.h
►
docking.h
►
docmanag.h
►
doctpl.h
►
docview.h
draglist.h
drawitem.h
edit.h
editfile.h
editsear.h
editview.h
►
eventhan.h
►
exbase.h
►
except.h
►
file.h
filedoc.h
►
filename.h
►
findrepl.h
►
fixedpnt.h
flatctrl.h
floatfra.h
►
framewin.h
fscroll.h
►
functor.h
►
gadget.h
►
gadgetwi.h
gauge.h
►
gdibase.h
►
gdiobjec.h
►
gdiplus.h
►
geometry.h
►
glyphbtn.h
groupbox.h
►
hlpmanag.h
hotkey.h
imagelst.h
inputdia.h
ipaddres.h
►
layoutco.h
layoutwi.h
►
lclstrng.h
listbox.h
listboxview.h
►
listview.h
►
listviewctrl.h
►
listwind.h
►
mailer.h
►
mci.h
►
mdi.h
►
mdichild.h
►
memcbox.h
►
menu.h
menugadg.h
►
messageb.h
►
metafile.h
modegad.h
►
module.h
monthcal.h
►
msgthred.h
►
notetab.h
►
objstrm.h
►
opensave.h
owlall.h
owlcore.h
►
owlvcl.h
pager.h
►
panespli.h
pch.h
►
picker.h
picklist.h
pictwind.h
►
pointer.h
popupgad.h
posclass.h
preclass.h
preview.h
prevwin.h
►
printdia.h
►
printer.h
profile.h
progressbar.h
►
property.h
►
propsht.h
psview.h
radiobut.h
►
rcntfile.h
►
registry.h
►
resource.h
►
richedit.h
richedpr.h
richedv.h
rolldial.h
►
scrollba.h
►
scroller.h
►
serialze.h
►
shddel.h
►
shellitm.h
►
shelwapi.h
signatur.h
►
slider.h
►
splashwi.h
►
splitter.h
►
static.h
►
statusba.h
►
streambl.h
►
string.h
syslink.h
►
system.h
►
tabbed.h
►
tabctrl.h
►
template.h
►
textgadg.h
►
theme.h
►
thread.h
►
time.h
►
timegadg.h
tinycapt.h
►
toolbox.h
►
tooltip.h
►
transfer.h
►
transferbuffer.h
►
trayicon.h
►
treeviewctrl.h
►
treewind.h
►
uihelper.h
►
uimetric.h
►
updown.h
►
validate.h
►
window.h
►
windowev.h
►
winsock.h
►
wskaddr.h
►
wskerr.h
►
wskhostm.h
►
wskservm.h
►
wsksock.h
►
wsksockd.h
►
wsksockm.h
►
wsyscls.h
►
wsysinc.h
►
source
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
appdict.h
Go to the documentation of this file.
1
//----------------------------------------------------------------------------
2
// ObjectWindows
3
// Copyright (c) 1991, 1996 by Borland International, All Rights Reserved
4
//
5
/// \file
6
/// Definition of class TAppDictionary. This class manages associations between
7
/// processes/tasks and TApplication pointers.
8
//----------------------------------------------------------------------------
9
10
#if !defined(OWL_APPDICT_H)
11
#define OWL_APPDICT_H
12
13
#include <
owl/private/defs.h
>
14
#if defined(BI_HAS_PRAGMA_ONCE)
15
# pragma once
16
#endif
17
18
#include <
owl/defs.h
>
19
20
namespace
owl
{
21
22
class
_OWLCLASS
TApplication;
23
24
#include <
owl/preclass.h
>
25
26
/// \addtogroup module
27
/// @{
28
/// \class TAppDictionary
29
// ~~~~~ ~~~~~~~~~~~~~~
30
class
_OWLCLASS
TAppDictionary
{
31
public
:
32
33
/// An application dictionary entry that associates a process ID (Pid) with an
34
/// application (App). The dictionary is indexed by Pid and can have only 1 entry
35
/// per process ID.
36
struct
TEntry
{
37
uint
Pid
;
38
TApplication
*
App
;
39
};
36
struct
TEntry
{
…
};
40
41
/// A dictionary iterator function pointer type that receives a reference to an
42
/// entry. You can supply a function of this type to the Iterate function to iterate
43
/// through the entries in the dictionary.
44
typedef
void
(*TEntryIterator)(
TEntry
&);
45
46
public
:
47
TAppDictionary
();
48
~TAppDictionary
();
49
50
TApplication
* GetApplication(
uint
pid
= 0);
// default to current pid
51
52
void
Add(
TApplication
*
app
,
uint
pid
= 0);
53
void
Remove(
TApplication
*
app
);
54
void
Remove(
uint
pid
);
55
void
Condemn(
TApplication
*
app
);
56
57
bool
DeleteCondemned();
58
void
Iterate(TEntryIterator
iter
);
59
60
private
:
61
class
TAppDictImp* Imp;
62
};
30
class
_OWLCLASS
TAppDictionary
{
…
};
63
64
/// @}
65
66
#include <
owl/posclass.h
>
67
68
69
/// Global exported TAppDictionary in Owl. User Component DLLs should have a
70
/// similar 'AppDictionary'.
71
//
72
extern
_OWLFUNC
(
TAppDictionary
&)
OWLGetAppDictionary
();
73
74
//
75
/// Global function that calls GetApplication() on owl's app-dictionary.
76
/// Used by EXEs, or DLLs statically linking Owl. Never returns 0, will make
77
/// an alias app if needed. Primarily for compatibility
78
//
79
_OWLFUNC
(
TApplication
*)
GetApplicationObject
(
uint
pid
= 0);
80
81
82
}
// OWL namespace
83
84
85
//
86
/// Convenient macro to define a 'AppDictionary' ref and object as needed
87
/// for use in component DLLs and EXEs
88
//
89
#if defined(BI_APP_DLL) && defined(_OWLDLL)
90
# define DEFINE_APP_DICTIONARY(AppDictionary) \
91
::owl::TAppDictionary AppDictionary
92
#else
93
# define DEFINE_APP_DICTIONARY(AppDictionary) \
94
::owl::TAppDictionary& AppDictionary = ::owl::OWLGetAppDictionary()
93
# define DEFINE_APP_DICTIONARY(AppDictionary) \
…
95
#endif
96
97
98
#endif
// OWL_APPDICT_H
VarType
Definition
safearray.h:14
owl::TAppDictionary
TAppDictionary implementation for DLLs only.
Definition
appdict.h:30
owl::TApplication
Derived from TModule and TMsgThread and virtually derived from TEventHandler, TApplication acts as an...
Definition
applicat.h:141
owl
Object Windows Library (OWLNext Core)
Definition
animctrl.h:22
owl::GetApplicationObject
TApplication * GetApplicationObject(uint pid=0)
Global function that calls GetApplication() on owl's app-dictionary.
Definition
appdict.cpp:298
owl::OWLGetAppDictionary
TAppDictionary & OWLGetAppDictionary()
Global exported TAppDictionary in Owl.
Definition
appdict.cpp:35
owl::uint
unsigned int uint
Definition
number.h:25
defs.h
General definitions used by all ObjectWindows programs.
defs.h
_OWLFUNC
#define _OWLFUNC(p)
Definition
defs.h:341
_OWLCLASS
#define _OWLCLASS
Definition
defs.h:338
posclass.h
preclass.h
owl::TAppDictionary::TEntry
An application dictionary entry that associates a process ID (Pid) with an application (App).
Definition
appdict.h:36
owl::TAppDictionary::TEntry::App
TApplication * App
Definition
appdict.h:38
owl::TAppDictionary::TEntry::Pid
uint Pid
Definition
appdict.h:37
include
owl
appdict.h
Generated by
1.10.0