Public Boolean = AddTelegraphWire(TelegraphWire, Boolean)
Adds a TelegraphWire to the Telegraph Pole list.
Parameters
Wire
A reference to a user created TelegraphWire class.
WireChildren
Set this value true to loop all child windows, automatically adding a new
TelegraphWire for each.
Returns
Returns True if successful. If the wired windows parent window handle
was available, the returned reference's hWndParent will be populated.
Example
TelegraphWire tw = new TelegraphWire();
tw.ListenTohWnd = Control1hWnd;
tw.Name = "Control1";
tw.WireEvent += new TelegraphWire.WireEventHandler(MsgEvents);
if (Telegraph.AddTelegraphWire(ref tw, false))
{
// store a local copy of the wire for future use
telegraphwirearray.Add(tw);
}
See Also
PoleWires;
RemoveTelegraphWire;