Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IForegroundTransfer interface

Transfers the foreground window to the process hosting the COM server.

When to implement

You do not need to implement this interface. The transfer of the foreground window to the COM server process is automatically done when IOleObject::DoVerb and IAdviseSink::OnClose are called. However, during an OLE drag and drop operation, the window corresponding to a drop target is allowed to take focus.

When to use

Yielding the foreground window is useful when the client and server interact visually. The CoAllowSetForegroundWindow can be useful when a client and server communicate using an interface other than IOleObject or IAdviseSink and want the server application to take focus.

Members

The IForegroundTransfer interface inherits from the IUnknown interface. IForegroundTransfer also has these types of members:

Methods

The IForegroundTransfer interface has these methods.

MethodDescription
AllowForegroundTransfer

Yields the foreground window to the COM server process.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

ObjIdl.h

IDL

ObjIdl.idl

IID

IID_IForegroundTransfer is defined as 00000145-0000-0000-C000-000000000046

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.