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);
}**
-
Hallo.
[code type="C++"
if (pMsg->message==WM_KEYDOWN && pMsg->wParam==VK_RETURN)
{
CWnd* pWnd = GetFocus ();// Wenn Edit1 focussiert dann
if (pWnd->GetDlgCtrlID () == IDC_EDIT1)
}
[/code]Cu
Oli
-
DAs funktioniert auch nicht !!!!!!!!!!!!!!!!!!
Aber danke für deine bemühungen!
-
Kann mir jemand helfen bitte!