Export (0) Print
Expand All

ITfSpeechUIServer interface

The ITfSpeechUIServer interface manages the speech-related user interface on the TSF language bar.

Members

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

Methods

The ITfSpeechUIServer interface has these methods.

MethodDescription
Initialize

Initializes the speech-related user interface elements on the TSF language bar.

ShowUI

Sets the visibility state of the speech-related user interface elements on the TSF language bar.

UpdateBalloon

Sets the style and text of the speech balloon on the TSF language bar.

 

Remarks

The user interface elements on the TSF language bar managed by this interface include the microphone button, the speech configuration menu button, the dictation button, the command button, and the speech balloon. The standard speech text service usually manages these user interface elements in an application, including initialization. This type of application does not require the ITfSpeechUIServer interface.

An application that does not use the speech text service might require use of the features provided by the speech-related interface elements. In that case, the following code example shows how an application can obtain a pointer to the ITfSpeechUIServer interface by calling the CoCreateInstance function with the CLSID_SpeechUIServer CLSID.



HRESULT hr;
ITfSpeechUIServer* piSpeechUIServer;

hr = CoCreateInstance(CLSID_SpeechUIServer,
                      NULL,
                      CLSCTX_INPROC_SERVER,
                      IID_ITfSpeechUIServer,
                      (void**)&piSpeechUIServer);


Subsequently, the application can use the ITfSpeechUIServer::Initialize method to initialize the user interface and the other methods of the ITfSpeechUIServer interface to manage the user interface.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Redistributable

TSF 1.0 on Windows 2000 Professional

Header

Ctfutb.h

IDL

Ctfutb.idl

DLL

Sptip.dll

See also

CoCreateInstance

 

 

Community Additions

ADD
Show:
© 2014 Microsoft