Re: Re: PreTranslateMessage is not called in CMessageFilter and CEdit derived class

"Jim Barry" <[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <5284E3A92AB84918A3ED44263CB864CF@jbarry>
"izm_ka" wrote:
> The code I'm converting from MFC is handling many other keys including 
> Crtl+C, Ctrl+V, VK_DOWN, VK_TAB, VK_RETURN, VK_PRIOR, etc. Do you think 
> they all can be handled in OnChar or OnKeyDown functions?

If the edit control is in a dialog then you will have trouble with VK_TAB 
and VK_RETURN, as the dialog manager intercepts those keystrokes. In that 
case you have to handle the WM_GETDLGCODE message and return an appropriate 
value to indicate that you want the control to receive the keystrokes.

- Jim 



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.