?
Solved

Using ON_REGISTERED_MESSAGE in a dialog

Posted on 1998-06-23
3
Medium Priority
?
667 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Author Comment

by:b2pi
ID: 1318353
Adjusted points to 100
0
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 200 total points
ID: 1318354
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
ID: 1318355
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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…
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.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

764 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