summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorleo2005-07-14 05:47:26 +0000
committerleo2005-07-14 05:47:26 +0000
commitd27ac8d8a7678356c32a3c07e4c59217546bc6f3 (patch)
treea93baa05803bef5071e2ee2890aa83798b275bc8 /win
parente3b7ec77734b8f415f9c756f0d7bf90ff202e71e (diff)
Made the pieces combo handle the delete key better.
git-svn-id: http://svn.leocad.org/trunk@415 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win')
-rw-r--r--win/Piececmb.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/win/Piececmb.cpp b/win/Piececmb.cpp
index 0bb3b31..4da474d 100644
--- a/win/Piececmb.cpp
+++ b/win/Piececmb.cpp
@@ -125,7 +125,9 @@ BOOL CPiecesCombo::PreTranslateMessage(MSG* pMsg)
int nVirtKey = (int) pMsg->wParam;
if (nVirtKey == VK_DELETE || nVirtKey == VK_BACK)
{
+ CEdit* Edit = (CEdit*)GetWindow(GW_CHILD);
m_bAutoComplete = FALSE;
+ Edit->ReplaceSel("");
}
else if (nVirtKey == VK_RETURN)
{