Solved

Using ON_REGISTERED_MESSAGE in a dialog

Posted on 1998-06-23
3
646 Views
Last Modified: 2013-11-20
Given a dialog application, control wizard won't offer me the choice of adding a message handler within the CDialog class for ON_REGISTERED_MESSAGE.  Any ideas?  I'd prefer not to add it to the message map manually, and, if I did, am not sure that it would get past the dialogue message filtering.

The message is being sent by an associated DLL.
0
Comment
Question by:b2pi
  • 2
3 Comments
 
LVL 5

Author Comment

by:b2pi
Comment Utility
Adjusted points to 100
0
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 100 total points
Comment Utility
You will have to do it by hand. It isn't too hard:

  ON_REGISTERED_MESSAGE(WUM_MYMESSAGE, OnMyFunc)

Then have this as the function:

  LRESULT CMyDialog::OnMyFunc(WPARAM wp, LPARAM lp)
  {
    return 0;
  }
0
 
LVL 5

Author Comment

by:b2pi
Comment Utility
That's within the

BEGIN_MESSAGE_MAP(CFTrackDlg, CDialog)
      //{{AFX_MSG_MAP(CFTrackDlg)
      ON_WM_PAINT()
      ON_WM_QUERYDRAGICON()
      ON_BN_CLICKED(IDC_Acquire, OnAcquire)
      //}}AFX_MSG_MAP
END_MESSAGE_MAP()

section?
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now