CListCtrl::GetEditControl

更新 : 2007 年 11 月

リスト ビュー アイテムのテキストを編集するために使うエディット コントロールのハンドルを取得します。

CEdit* GetEditControl( ) const;

戻り値

正常終了した場合はアイテム テキストの編集に使用する CEdit オブジェクトへのポインタを返します。それ以外の場合は NULL を返します。

使用例

// The string replacing the text in the edit control.
LPCTSTR lpszmyString = _T("custom label!");

// If possible, replace the text in the label edit control.
CEdit* pEdit = m_myListCtrl.GetEditControl();

if (pEdit != NULL)
{
   pEdit->SetWindowText(lpszmyString);
}

必要条件

ヘッダー : afxcmn.h

参照

参照

CListCtrl クラス

階層図

CListCtrl::EditLabel

その他の技術情報

CListCtrl のメンバ