Re: PreTranslateMessage is not called in CMessageFilter and CEdit derived class
"Konstantin Mironovich" <[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Organization | ixbt.com |
| Message-ID | <0D75C04BCBEA4BAAB767590681DEF2A7@klm> |
ES_NUMBER style does not work? -km ----- Original Message ----- From: izm_ka To: [email protected] Sent: Wednesday, November 18, 2009 6:53 AM Subject: [wtl] PreTranslateMessage is not called in CMessageFilter and CEdit derived class 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. My in-place control is derived as: class CMyInPlaceEdit : public CWindowImpl<CMyInPlaceEdit, CEdit> , public CMessageFilter , public CUpdateUI<CMyInPlaceEdit> { public: DECLARE_WND_SUPERCLASS(_T("inplaceEdit"), CEdit::GetWndClassName()) virtual BOOL PreTranslateMessage(MSG* pMsg); ... Please help... [Non-text portions of this message have been removed] ------------------------------------ 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/