PreTranslateMessage(MSG* pMsg)
-
Wie kann ich bei der funktion PreTranslateMessage(MSG* pMsg)
sagen dass er nur dann was macht wenn er in einem bestimmten Edit sich befindet
ich hab schon mit das versucht aber es geht irgendwie nicht
Kann mir da jemand helfen? Danke im voraus!!
BOOL Cblabla::PreTranslateMessage(MSG* pMsg)
{
CWnd* pWnd = GetDlgItem(cbAusdruck);
if (pMsg->message == WM_KEYDOWN)
{
if (pMsg->hwnd == pWnd->m_hWnd)//oder m_cbAusdruck.m_hWnd
{
int nVirtKey = (int) pMsg->wParam;
if (nVirtKey == 13)
{
//mach was
}
}
}return CDialog::PreTranslateMessage(pMsg);
}
-
- Keine Code-Tags
- Falsches Forum