]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/ddeclint.tex
Made wxLayoutAlgorithm more general (copes with nested sash windows)
[wxWidgets.git] / docs / latex / wx / ddeclint.tex
CommitLineData
a660d684
KB
1\section{\class{wxDDEClient}}\label{wxddeclient}
2
a660d684 3A wxDDEClient object represents the client part of a client-server DDE
e2a6f233 4(Dynamic Data Exchange) conversation.
a660d684
KB
5
6To create a client which can communicate with a suitable server,
7you need to derive a class from wxDDEConnection and another from wxDDEClient.
8The custom wxDDEConnection class will intercept communications in
9a `conversation' with a server, and the custom wxDDEServer is required
10so that a user-overriden \helpref{wxDDEClient::OnMakeConnection}{wxddeclientonmakeconnection} member can return
11a wxDDEConnection of the required class, when a connection is made.
12
e2a6f233
JS
13This DDE-based implementation is
14available on Windows only, but a platform-independent, socket-based version
15of this API is available using \helpref{wxTCPClient}{wxtcpclient}.
16
a660d684
KB
17\wxheading{Derived from}
18
e2a6f233
JS
19wxClientBase\\
20\helpref{wxObject}{wxobject}
a660d684
KB
21
22\wxheading{See also}
23
e2a6f233
JS
24\helpref{wxDDEServer}{wxddeserver}, \helpref{wxDDEConnection}{wxddeconnection},
25\helpref{Interprocess communications overview}{ipcoverview}
a660d684
KB
26
27\latexignore{\rtfignore{\wxheading{Members}}}
28
29\membersection{wxDDEClient::wxDDEClient}
30
31\func{}{wxDDEClient}{\void}
32
33Constructs a client object.
34
35\membersection{wxDDEClient::MakeConnection}\label{wxddeclientmakeconnection}
36
e2a6f233 37\func{wxConnectionBase *}{MakeConnection}{\param{const wxString\& }{host}, \param{const wxString\& }{service}, \param{const wxString\& }{topic}}
a660d684
KB
38
39Tries to make a connection with a server specified by the host
40(machine name under UNIX, ignored under Windows), service name (must
41contain an integer port number under UNIX), and topic string. If the
42server allows a connection, a wxDDEConnection object will be returned.
43The type of wxDDEConnection returned can be altered by overriding
44the \helpref{wxDDEClient::OnMakeConnection}{wxddeclientonmakeconnection} member to return your own
45derived connection object.
46
47\membersection{wxDDEClient::OnMakeConnection}\label{wxddeclientonmakeconnection}
48
e2a6f233 49\func{wxConnectionBase *}{OnMakeConnection}{\void}
a660d684
KB
50
51The type of \helpref{wxDDEConnection}{wxddeconnection} returned from a \helpref{wxDDEClient::MakeConnection}{wxddeclientmakeconnection} call can
52be altered by deriving the {\bf OnMakeConnection} member to return your
e2a6f233 53own derived connection object. By default, a wxDDEConnection
a660d684
KB
54object is returned.
55
56The advantage of deriving your own connection class is that it will
57enable you to intercept messages initiated by the server, such
58as \helpref{wxDDEConnection::OnAdvise}{wxddeconnectiononadvise}. You may also want to
59store application-specific data in instances of the new class.
60
61\membersection{wxDDEClient::ValidHost}
62
63\func{bool}{ValidHost}{\param{const wxString\& }{host}}
64
65Returns TRUE if this is a valid host name, FALSE otherwise. This always
66returns TRUE under MS Windows.
67
68