Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VK_RETURN problems in a CListCtrl

29 views
Skip to first unread message

Klaus Hagen

unread,
Mar 2, 1998, 3:00:00 AM3/2/98
to

I can't seem to find a way to filter out a VK_RETURN in a CListCtrl control.
I have tried to map the WM_KEYDOWN message, and this works fine with fx.
VK_INSERT, but not VK_RETURN.

I have a similar problem with the VK_UP & VK_DOWN in a CEdit control.

Does anyone know how to figure these problems out ?

Thanks
Klaus Hagen


David Lowndes

unread,
Mar 2, 1998, 3:00:00 AM3/2/98
to

>I can't seem to find a way to filter out a VK_RETURN in a CListCtrl control.
>I have tried to map the WM_KEYDOWN message, and this works fine with fx.
>VK_INSERT, but not VK_RETURN.

Klaus,

The VK_RETURN is probably getting translated into the default button
action if the control in a dialog.

I think you should be able to trap the WM_KEYDOWN message in
PreTranslateMessage.

Dave
----
Address is altered to discourage junk mail.
Remove ".---" for the real address.

0 new messages