msctf.h (ITfCoNtext 介面)

ITfCoNtext介面是由 TSF 管理員所實作,並由應用程式和文字服務用來存取編輯內容。

繼承

ITfCoNtext介面繼承自IUnknown介面。 ITfCoNtext 也有下列類型的成員:

方法

ITfCoNtext介面具有這些方法。

 
ITfCoNtext::CreateRangeBackup

ITfCoNtext::CreateRangeBackup 方法
ITfCoNtext::EnumProperties

ITfCoNtext::EnumProperties 方法
ITfCoNtext::GetActiveView

ITfCoNtext::GetActiveView 方法
ITfCoNtext::GetAppProperty

ITfCoNtext::GetAppProperty 方法
ITfCoNtext::GetDocumentMgr

ITfCoNtext::GetDocumentMgr 方法
ITfCoNtext::GetEnd

ITfCoNtext::GetEnd 方法
ITfCoNtext::GetProperty

ITfCoNtext::GetProperty 方法
ITfCoNtext::GetSelection

ITfCoNtext::GetSelection 方法
ITfCoNtext::GetStart

ITfCoNtext::GetStart 方法
ITfCoNtext::GetStatus

ITfCoNtext::GetStatus 方法
ITfCoNtext::InWriteSession

ITfCoNtext::InWriteSession 方法
ITfCoNtext::RequestEditSession

ITfCoNtext::RequestEditSession 方法
ITfCoNtext::SetSelection

ITfCoNtext::SetSelection 方法
ITfCoNtext::TrackProperties

ITfCoNtext::TrackProperties 方法

備註

編輯內容物件是藉由呼叫 ITfDocumentMgr::CreateCoNtext來建立。 文字服務通常會使用目前作用中的編輯內容。 目前使用中的編輯內容是使用中檔管理員堆疊頂端的編輯內容。

範例


HRESULT         hr;
ITfDocumentMgr  *pFocusDoc;

hr = pThreadMgr->GetFocus(&pFocusDoc);
if(SUCCEEDED(hr))
{
    ITfContext *pContext;

    hr = pFocusDoc->GetTop(&pContext);
    if(SUCCEEDED(hr))
    {
        //Use the context. 
        
        pContext->Release();
    }

    pFocusDoc->Release();
}

需求

   
最低支援的用戶端 Windows 2000 專業版 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows 2000 Server [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 msctf.h
可轉散發套件 Windows 2000 專業版上的 TSF 1.0

另請參閱

編輯內容

ITfDocumentMgr::CreateCoNtext

IUnknown