Solved

Using ON_REGISTERED_MESSAGE in a dialog

Posted on 1998-06-23
3
658 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
ID: 1318353
Adjusted points to 100
0
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 100 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: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

828 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