mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-04-30 17:11:40 -04:00
fixed duplicated script operations in last fix .
This commit is contained in:
parent
1f2d77f711
commit
b094b04acb
2 changed files with 0 additions and 16 deletions
|
@ -1024,8 +1024,6 @@ BOOL CScriptTypes::PreTranslateMessage(MSG* pMsg)
|
|||
int ret = -1;
|
||||
if (pMsg->message == WM_KEYDOWN) {
|
||||
ret = onMessageKeyDown(pMsg);
|
||||
} else if (pMsg->message == WM_LBUTTONUP) {
|
||||
ret = onMessageKeyUp(pMsg);
|
||||
}
|
||||
|
||||
return ret < 0 ? this->CDialog::PreTranslateMessage(pMsg) : ret;
|
||||
|
@ -1051,17 +1049,4 @@ BOOL CScriptTypes::onMessageKeyDown(MSG* pMsg)
|
|||
}
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
BOOL CScriptTypes::onMessageKeyUp(MSG* pMsg)
|
||||
{
|
||||
if (pMsg->hwnd == this->GetDlgItem(IDC_SCRIPT_COPY)->GetSafeHwnd()) {
|
||||
this->OnBnClickedScriptCopy();
|
||||
} else if (pMsg->hwnd == this->GetDlgItem(IDC_COPYACTION)->GetSafeHwnd()) {
|
||||
this->OnBnClickedCopyaction();
|
||||
} else if (pMsg->hwnd == this->GetDlgItem(IDC_ADDACTION)->GetSafeHwnd()) {
|
||||
this->OnAddaction();
|
||||
} else if (pMsg->hwnd == this->GetDlgItem(IDC_ADD)->GetSafeHwnd()) {
|
||||
this->OnAdd();
|
||||
}
|
||||
return -1;
|
||||
}
|
|
@ -159,7 +159,6 @@ protected:
|
|||
CString getCurrentTypeID();
|
||||
void insertAction(int curSel, const CString& scriptTypeId, const CString& value);
|
||||
BOOL onMessageKeyDown(MSG* pMsg);
|
||||
BOOL onMessageKeyUp(MSG* pMsg);
|
||||
|
||||
CEdit m_Description;
|
||||
CComboBox m_Template;
|
||||
|
|
Loading…
Add table
Reference in a new issue