OSDN Git Service

Add Stash Save Command Handle.
[tortoisegit/TortoiseGitJp.git] / src / Utils / MiscUI / HistoryCombo.cpp
index 98a108d..1ea9e51 100644 (file)
@@ -52,6 +52,7 @@ BOOL CHistoryCombo::PreCreateWindow(CREATESTRUCT& cs)
 \r
 BOOL CHistoryCombo::PreTranslateMessage(MSG* pMsg)\r
 {\r
+\r
        if (pMsg->message == WM_KEYDOWN)\r
        {\r
                bool bShift = !!(GetKeyState(VK_SHIFT) & 0x8000);\r
@@ -65,7 +66,7 @@ BOOL CHistoryCombo::PreTranslateMessage(MSG* pMsg)
                        return TRUE;\r
                }\r
        }\r
-       if (pMsg->message == WM_MOUSEMOVE) \r
+       if (pMsg->message == WM_MOUSEMOVE && this->m_bDyn \r
        {\r
                if ((pMsg->wParam & MK_LBUTTON) == 0)\r
                {\r
@@ -76,6 +77,7 @@ BOOL CHistoryCombo::PreTranslateMessage(MSG* pMsg)
                        return TRUE;\r
                }\r
        }\r
+\r
        return CComboBoxEx::PreTranslateMessage(pMsg);\r
 }\r
 \r
@@ -315,7 +317,13 @@ void CHistoryCombo::SetMaxHistoryItems(int nMaxItems)
        for (int n = m_nMaxHistoryItems; n < nNumItems; n++)\r
                DeleteString(m_nMaxHistoryItems);\r
 }\r
-\r
+void CHistoryCombo::AddString(STRING_VECTOR &list)\r
+{\r
+       for(unsigned int i=0;i<list.size();i++)\r
+       {\r
+               AddString(list[i]);\r
+       }\r
+}\r
 CString CHistoryCombo::GetString() const\r
 {\r
        CString str;\r