All Forums
 Microsoft Windows CE
 eVC Application Development
 Dialog not routing custom messages
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

vta

14 Posts

Posted - 03 Feb 2004 :  10:22:12  Show Profile  Email Poster
Is there a way to use PostThreadMessage() to send a custom application message (WM_APP) to a dialog class and have the class route the message to the approperate handler (though use of the ON_MESSAGE or ON_THREAD_MESSAGE macros)? I can intercept the message in PreTranslateMessage, but I don't like having a big switch in the dialog that maps every message to a handler. The message is coming from a CWinThread instance and is being sent to the dialog by specifing the dialog's thread id. I don't have any trouble compiling and running my application, only in the dialog class ignoring a "non-input event" (in CWnd::PreTranslateInput).
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000