Solved

Using ON_REGISTERED_MESSAGE in a dialog

Posted on 1998-06-23
3
653 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
function returning CString in a regular win32 DLL 8 177
Detect file exist or not 3 156
unix example issues 18 89
"Black Box" Testing of Control System Software 2 49
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

776 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