\r
BOOL CHistoryCombo::PreTranslateMessage(MSG* pMsg)\r
{\r
+\r
if (pMsg->message == WM_KEYDOWN)\r
{\r
bool bShift = !!(GetKeyState(VK_SHIFT) & 0x8000);\r
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
return TRUE;\r
}\r
}\r
+\r
return CComboBoxEx::PreTranslateMessage(pMsg);\r
}\r
\r
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