diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-03 16:21:11 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-03 16:21:11 (GMT) |
commit | 81996dc4de3dbd8d4bf71b41872accb3899d5355 (patch) | |
tree | a20df752f6e07a34040fb98f0e3312b03b8c209f | |
parent | d5cce9f0b55f54b3a4ec1a9766d0449fb3a81e81 (diff) | |
download | CMake-81996dc4de3dbd8d4bf71b41872accb3899d5355.zip CMake-81996dc4de3dbd8d4bf71b41872accb3899d5355.tar.gz CMake-81996dc4de3dbd8d4bf71b41872accb3899d5355.tar.bz2 |
ENH: allow edit of file text directly
-rw-r--r-- | Source/MFCDialog/PropertyList.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Source/MFCDialog/PropertyList.cpp b/Source/MFCDialog/PropertyList.cpp index 259964a..731e870 100644 --- a/Source/MFCDialog/PropertyList.cpp +++ b/Source/MFCDialog/PropertyList.cpp @@ -332,7 +332,31 @@ void CPropertyList::OnSelchange() } else + { DisplayButton(rect); + m_nLastBox = 1; + m_prevSel = m_curSel; + rect.bottom -= 3; + rect.right -= 25; + if (m_editBox) + { + m_editBox.MoveWindow(rect); + } + else + { + m_editBox.Create(ES_LEFT | ES_AUTOHSCROLL | WS_VISIBLE + | WS_CHILD | WS_BORDER, + rect,this,IDC_PROPEDITBOX); + m_editBox.SetFont(&m_SSerif8Font); + } + + lBoxSelText = pItem->m_curValue; + + m_editBox.ShowWindow(SW_SHOW); + m_editBox.SetFocus(); + //set the text in the edit box to the property's current value + m_editBox.SetWindowText(lBoxSelText); + } } void CPropertyList::DisplayButton(CRect region) |