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

"Igor Tandetnik" <[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
izm_ka wrote:
> Maybe this question has been answered somewhere on forums, but I could not find. Basically, I want to filter chars in the
> in-place edit box to allow entering only digits (for integer). I thought that PreTranslateMessage can help, but the method is
> never called.

Did you actually register your message filter? Something like

CMessageLoop* pLoop = _Module.GetMessageLoop();
 pLoop->AddMessageFilter(this);

-- 
With best wishes,
    Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925



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

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.